Questions tagged [selenium-webdriver]

Used for questions about using Selenium WebDriver, a browser automation framework frequently used to automate testing in a browser.

Filter by
Sorted by
Tagged with
1
vote
1answer
21 views

Selenium-webdriver

I am trying to send email from rediffmail, but it failed to pass values in the "TO" field. Here is my code: System.setProperty("webdriver.chrome.driver", "F:\\chromedriver.exe"); ChromeDriver ...
1
vote
0answers
23 views

Class not found - no tests were found - InteliJ

I have a problem with running my Selenium tests in IntelliJ. I import project as Maven, all libraries looks like imported, but when I try to run tests, the following errors appear: Class not found: "...
-2
votes
0answers
9 views

no such element: Unable to locate element: I am getting this error but it also works sometimes. Please help [closed]

I am getting no such element: Unable to locate element even it was working fine before.
-1
votes
0answers
13 views

Katalon - how to make an embedded test case data-driven?

Hello I need to login to an app with many different profiles (a data driven script). This login script will be used by other test cases - using Katalon. The test suite only gives option to map excel ...
3
votes
1answer
234 views

Exception in thread “main” java.lang.AssertionError: expected [3] but found [3]

System.setProperty("webdriver.chrome.driver", "C:\\Users\\srajendran\\Documents\\chromedriver.exe"); WebDriver driver=new ChromeDriver(); driver.get("http://qaclickacademy.com/practice.php"); ...
-2
votes
1answer
38 views

Automation Testing using selenium webDriver on a javaScript based application

I am having a JavaScript-based application to automate using Selenium WebDriver. Can I automate a Javascript based application using Java with Selenium WebDriver OR do I have to use protractor (...
0
votes
2answers
23 views

How to validate a successful file download test senario from selenium [duplicate]

I need to automate the following test senario where when I click on a button, a file will be downloaded There will be no message box and no text message. How should I implement this scenario ...
0
votes
3answers
39 views

Can some one please suggest a proper CSS name to find this element

I need to click on the above button just using CSSSelector . I have tried with ; > IWebElement el4m = > Driver.FindElement(By.CssSelector("input[type='button'][contain='Search']")); > ...
-2
votes
0answers
30 views

Cypress vs Selenium [closed]

Which one is better with Support & Performance
0
votes
1answer
27 views

How to generate report using extent reports in Page Object Model in C#

I have created a POM framework using NUnit in C#. I have created Reporting.cs file which creates reports for the test in that class. How I can generate reports for all tests in different classes ...
1
vote
1answer
53 views

How to select a dropdown value in Selenium WebDriver using Java appium?

I am new to Selenium, currently am working on selenium webdriver. I want to select a value from the drop-down. But I am not able to do it because of some error. Also, I want to inform you that in my ...
0
votes
1answer
15 views

how to disable inbuild adfilter using ChromeOptions [closed]

I need to perform various tests with Selenium where need to validate some elements, but the inbuild adFilter in Chrome chrome://settings/content/ads is interfering so I need an advice how to set is to ...
0
votes
0answers
24 views

How do I click buttons on App which is installed on machine but not a Windows application. It opens a chrome instance (not default Chrome browser)

How do I navigate and click buttons on an already open Chrome instance/window. So the scenario is, that an application named "ApplicationNAME" is installed on my Windows machine, but its not a Windows ...
0
votes
4answers
48 views

Not able to find the unique xpath for an element in expedia.com using Selenium

I am trying to find the unique xpath for elements in the "travelers" pop option in the home page of expedia.com When I give the following xpath "//div[contains(@class,'gcw-menu')]/div/div1/div2/div[4]...
0
votes
1answer
40 views

How to read Text in a Tradingview Alert with Python and Selenium

After a very useful help here to login on trading view, i cannot figure out how to access to the text of this following alert and close it selecting OK here is the html code corresponding to that pop ...
0
votes
1answer
30 views

How to find path to filtervalue

Can you help me how to find a path to desired "filtervalue", such as value "Search in active documents"? As you can see in the picture, the class filtervalue is there multiple times. Thank you in ...
1
vote
1answer
34 views

how to get the window title name when its open in new window with document file

Scenario: after click on PDF buttton > new window open with document. Issue: when i used getTitle , its returned the previous page title Question : is it because the PDF page opens its not normal ...
0
votes
1answer
23 views

Automating a desktop app based on Chromium Embedded Framework using Selenium

Background: At work we are passing the --remote-debugging-port=9555 parameter to a CEF based desktop app and launching it using Runtime.getRuntime.exec("path to app"). Then, using selenium, we open an ...
-1
votes
0answers
18 views

Dynamic Calendar_Selenuim_Guru99_demo_Site

Please help me out with jave code used in selenium for testing of dynamic calendar (date picker is a JS widget). I have tried date picker and many more functions, but still I am unable to test the ...
0
votes
0answers
5 views

Protractor console logs when run with directConnect:True

When the config file is executed with directConnect:True flag , i am getting console logs that shows more errors about my angular application. When directconnect flag is removed , there is no warning ...
-2
votes
2answers
39 views

Login to TradingView using Python and Selenium

I am new in Selenium and i don't understand how how to find the way to add my email and password to trading view. I have tried the example shown to connect to facebook and worked fine, but in ...
0
votes
1answer
50 views

Odd behavior noticed during UI tests with Selenium

I want to ask you about the odd behavior I noticed when running multiple tests, using Visual studio, Selenium web-driver and Chrome browser. I have all the tests written as follows: sign in to the ...
0
votes
1answer
33 views

Webdriver setup error in Eclipse, Mac OS X Catalina

After upgrading Mac OS X to Catalina, I have been trying to execute a very basic script written in Java for Firefox in Eclipse IDE 2018. I've installed Gecko driver already through terminal and it's ...
0
votes
0answers
15 views

Unable to locate element using string Actualtext xpath [duplicate]

package Practice_KingAllProg; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; public class ...
0
votes
0answers
37 views

Unable to find the xpath [duplicate]

I am unable to find xpath for the below success message: WebElement successOverlayMsg = findElement(By.xpath("//*[text()='A new app overlay \"APAutomation_Merchant_M32XphDFc\" has been created ...
1
vote
2answers
61 views

CSS vs XPATH vs ID

Selecting an element with unique ID say "sign", which is the preferred method: By.id("sign"); By.xpath("//[@id="sign"]"); By.css('[id="sign"]'); Lets filter out xpath because By.id uses document....
0
votes
0answers
27 views

How to apply a 'Loop' to map the row element where XPath changes whenever page get's loaded [duplicate]

How to map on to a particular row element say " NCC "where the number of the row containing that element changes whenever page get's loaded. Reference website-guru99 for(int i=0;i<19;i++) ...
0
votes
0answers
33 views

Get list of all hover menus and and their all nested hover menus using selenium

@Test public void MedicineList() throws InterruptedException { driver.get(sitedata.getProperty("Medication_url")); WebElement mainmenu = isElementPresentt("dog_xpath"); ...
0
votes
2answers
20 views

detect new element in html using selenium, python

is it possible to detect in selenium, that new dynamic element added in html msg_box = driver.find_element_by_class_name('_3u328') msg_box.send_keys('---') button = driver....
-3
votes
3answers
47 views

what is the difference between //span and //*?

I am learning selenium Xpath. what are the different ways of Xpath ? what is the difference between //span and//*?
1
vote
2answers
64 views

How can I get this 'Version: 0.1.0 - 94" value from the <div> tag in selenium webdriver?

How can I get this Version: 0.1.0 - 94 value from the <div> tag in selenium webdriver? and here is my code: <div _ngcontent-qbk-c3="" style="text-align: center;">Version: 0.1.0 - 94</...
1
vote
1answer
57 views

Keyboard ArrowDown in listbox using Selenium with C#

I'm working in selenium c# automation, I'm trying to traverse down in list box values. <ul> and <li>. I have tried many options in trial and error. The kind of code I'm trying to use is ...
0
votes
2answers
47 views

Avoid default selection when selecting random value from dropdown

I have a method below that selects a random item from a dropdown list. This works well mostly, but on occasion it will reselect the default option which is usually "Please Select" or a blank value. ...
0
votes
3answers
78 views

Unable to click on 'sign out' link

I am trying to click on sign out link, but not able to succeed: I tried the below ways, Click Element class=mat-icon.notranslate.mat-primary.material-icons Click Button name=Sign Out Click ...
1
vote
1answer
51 views

Verifing pdf using Selenium + Java

How can one verify pdf using Selenium + Java? Until recently, I was verifying pdf using Firefox (making sure that the pdf file wasn't empty). This was nice and working fine, but it's not multi-...
-1
votes
3answers
114 views

Selenium automation interview preperation question [closed]

What error does this line return when I pass a URL without HTTPS or HTTP driver.get("www.google.com"); It was asked to a fresher in his interview.
0
votes
3answers
97 views

Exception in thread “main” java.lang.IllegalStateException: The driver executable does not exist: C:\Selenium\chromedriver_win32.exe

package com.selenium; import org.openqa.selenium.*; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; public class MySelenium { public static void main(String[...
0
votes
4answers
68 views

Locate Element using selenium

I am trying to locate an element to click in order to Sign In , not able to succeed. I tried the below steps, Click Element class=mat-raised-button mat-accent Click Element class=mat-focus-...
1
vote
2answers
80 views

How can I handle the chrome Http Authentication popup window in selenium without AutoIT?

I have tried https://{USERNAME}:{PASSWORD}@xyz.com pattern to authenticate URL but it doesn't work for me. Can someone suggest me the best way to handle chrome HTTP authentication popup?
-3
votes
1answer
38 views

Iterating in drop down through selenium web driver

How do I iterate in drop-down using Selenium Webdriver? I have a drop-down like B008124/001, B008124/002, B008124/003, B008124/004. Here I have to select B008124/001 and perform some option like ...
0
votes
2answers
33 views

How to rerun failed test from where they instead of from beginning? (TestNG)

Is there any way to re run the failed testcase from the page where it got failed instead of running the testcase from beginning in Selenium Java ?
0
votes
0answers
51 views

Why doesn't 'this.driver = driver', do the same as 'PageFactory.initElements(driver,this)'?

I have a page object with im trying to instantiate so that I can perform methods on it in my tests like goto etc. But when I try to use it with PageFactory.initElements(driver,this);. The browser ...
0
votes
2answers
45 views

Unable to filter the child elements, using selenium in python

I want to locate all the child element using tag name 'li', and then filter them using id. How to do this. Lets say i have 4 child elements with tag name 'li' and each of them have class. I want to ...
4
votes
1answer
201 views

Selenium PageFactory vs Page Object Model

I've created a framework in C# using the Page Object Model for fun and am now creating a framework in Java to learn Jenkins etc... also for fun. I have come across the PageFactory concept for Java ...
0
votes
2answers
53 views

How to bring elements to view automatically in Protractor or selenium

I have a webpage to be tested which has a button at the footer of the page. When i click it, there should be an error message shown near to it. I was successful in automating this scenario but the ...
1
vote
1answer
43 views

Access is Denied Issue thrown at ChromeDriver Initiation step

Azure DevOps is triggering and running tests on a VM. All my tests are working fine on local machine. On VM, While trying to launch Chrome browser using ChromeDriver and WebDriverManager, tests are ...
1
vote
0answers
33 views

How expected condition 'Isclickable' works in protractor

I am trying to click the below button element: <button _ngcontent-xjt-c6="" class="ef-ui-btn-inline-sm ui-button ui-widget ui-state-default ui-corner-all ui-button-icon-only" icon="pi pi-chevron-...
0
votes
1answer
19 views

Waiting for Masonry grid layout to be ready, before clicking button

Our app uses Masonry grid layout. After page_A opens, the tiles keep moving for a second or two. The test case is: open the page_A and click on the button which opens page_B. While clicking the ...
0
votes
3answers
101 views

Selenium Webdriver sendKeys method sending value twice

I have 6 selenium tests (TestNG) running on chrome and firefox (both up to date versions) which connect to Browser stack to run. the problem is that 1 of the test fails intermittently on Chrome as ...
0
votes
1answer
25 views

Selenium JUnit tests each with different logged in (authenticated) users

I am using Selenium and JUnit to automate tests. Lets say there are two tests and each has to authenticate with a different user and perform an action. Can it be done any smarter than to call an ...