Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [selenium-webdriver]

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

0
votes
0answers
20 views

I need to select check box from item search pop up grid

I need to select check box from item search pop up grid. please find the screenshot below.
0
votes
2answers
29 views

The xpath for clicking edit button is not working in Selenium Java

HTML Code: <button onclick="root.handleOnClick( document, this );" id="Edit_edit::0" title="Edit" name="Edit_edit::0" class="navbar-btn btn btn-default btn-sm cs-btn" type="button">Edit</...
0
votes
1answer
17 views

Use Selenium to select an option from an Input element with multi-select drop-down

I am getting this error message when trying to select a drop-down value: UnexpectedTagNameException with message 'Element should have been "select" but was "input" error' The Error is descriptive ...
0
votes
1answer
20 views

python selenium - waiting for item to load (stale element reference error)

I am executing a script which clicks through a number of pages to retrieve data. After each click the new page obviously has to load and the time to load varies greatly (mostly 2-3 seconds, sometimes >...
0
votes
0answers
32 views

Get a stream video link

I am new in C# and HTTP of course. I want to download the first video(demo) of lynda.com. the video has a hash value in its address. I used the below code to get the video link(via htmlagilitypack) ...
1
vote
1answer
25 views

Selenium webdriver is getting log entries for the server event “500 internal server error” when using GetLog(LogType.Browser)

After I have been doing any automated task with selenium webdriver, I check the javascript log to see if anything unexpected has happened. To do that, I am using browser.Manage().Logs.GetLog(LogType....
0
votes
1answer
29 views

Multithreading: chromedriver does not open url in second window

Java code in thread function, System.setProperty("webdriver.chrome.driver", "/usr/bin/chromedriver"); ChromeOptions chromeOptions = new ChromeOptions(); chromeOptions.addArguments("--no-sandbox"); ...
0
votes
0answers
33 views

How can I upload a file to dropbox using selenium (Java)?

I am trying to upload a file to dropbox (www.dropbox.com) using sendkeys() but my code is just finding and highlighting the "File Upload" web element on webpage but not clicking it and uploading the ...
-1
votes
1answer
29 views

Select a random category from the Homepage

I want to select a random category from the available categories and to select a random sub-category in selenium(java). Please suggest a method to do this. PFB the screenshot for the homepage.
0
votes
0answers
24 views

unable to execute all methods in classes with testsuite in selenium webdriver [on hold]

I have a class with few methods and another class also with few methods.both classes added in testng.xml when i run suite,only first method with priority 1 is executing in class 1 and next jumping to ...
0
votes
1answer
31 views

org.testng.TestNGException: Cannot find class in classpath: com.facebook.qa.testcases.LoginPageTest

[RemoteTestNG] detected TestNG version 6.14.2 org.testng.TestNGException: Cannot find class in classpath: com.facebook.qa.testcases.LoginPageTest at org.testng.xml.XmlClass.loadClass(XmlClass....
1
vote
1answer
33 views

Selenium steps not running in order of promise

I'm writing a test to check our ratequote form on https://militaryvaloan.com/va-rates, I've been mostly successful getting it to work however I'm having trouble keeping the event listeners in order. ...
0
votes
1answer
35 views

Before entering entire text completely, Selenium is saving data

There is a form having only two field name and Code. Code validation criteria is minimum 2 and max six character. As soon as you enter 2 character save button become enable. Now, problem is when ...
0
votes
1answer
36 views

Selenium, data driven testing using NUnit and SQL queries.

I am developing a Selenium Test Automation Framework for the purpose of testing multiple websites. I have currently set up the Framework in Visual Studio using C# and implementing the Page Object ...
1
vote
1answer
34 views

org.openqa.selenium.NoSuchElementException I am getting this error full log is attached below

My code: package com.webdriver; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.firefox.FirefoxDriver; public ...
0
votes
1answer
24 views

Read Data from the Excel file

I have 2 columns in the excel file(Attribute & Value). I have the following rows for the login page(email1-value,password1-value,e-mail2-value and password2-value). I need to store all e-mail in ...
0
votes
0answers
30 views

Why selenium webdriver JAVA cannot locate button in SFDC?

HTML in SFDC: <a href="#" style="text-decoration:none;" onclick="if(typeof jsfcljs == 'function'){jsfcljs(document.getElementById('j_id0:j_id1'),'j_id0:j_id1:j_id3:j_id4:j_id5,j_id0:j_id1:j_id3:...
0
votes
0answers
13 views

Pulling data from knockout model for selenium

I have the below html for an address. I am trying to use Selenium to get the value that was pulled back from the database. I see the value on the screen..say for example it says 123 Main street. The ...
0
votes
1answer
21 views

Can we Verify Contents on the browser PDF print in Selenium Webdriver?

I need to verify PDF contents, when I click on pdf print button on web page, it displays PDF to print. How can I verify? Is it possible?
1
vote
1answer
56 views

How to compare string value with integer in Selenium [closed]

I'm getting the text as string and i need to compare it with a number, If its grater than that number then execute an if statement and if not then else. I'm using following code : string sato = ...
0
votes
0answers
15 views

Cucumber report always generate the same html output

I am using net.masterthought Cucumber reporting in my project. Regardless of how many tests I add, my report always stay the same. I believe this is because of the json file not changing. Below is the ...
0
votes
0answers
23 views

Cannot Get Selenium to select a dropdown menu (PYTHON)

I swear iv'e tried everything so, I'm finally directly asking for some help on this. So basically I am trying to select the 5 value (May) I am able to click on the box to open the dropdown menu but, I ...
0
votes
1answer
30 views

Selenium OnClick identify button C#

How to identify this button in C#: <button class="reward_link_redeem_button_style" onclick="RedeemRPProduct('free_points_1')">REDEEM</button> <button class="...
0
votes
1answer
14 views

Javascript function not found when running UI tests

I'm using Selenium with Visual Studio 2017 on an ASP.NET MVC application. Driver is ChromeDriver 2.42.01. Everything works, however one of my tests involves clicking a div which is wrapped into an ...
0
votes
0answers
6 views

Is it possible to launch multiple instances of safari browsers in Mac and running scripts? [closed]

Is it possible to launch multiple instances of safari browsers in Mac and running scripts ?
0
votes
1answer
22 views

Selenium Python - Unable to find an element, get stale element exception when using element locator

Scenario: 1.Login to a website using script and navigate to the Home page. 2. On the home page, click a link and navigate to a new page. 3. Then navigate back to the home page using the top navigation ...
0
votes
0answers
12 views

Sinnal R on page. Can't click on element

I used C# + Selenium WD + ProTractor. I have a page which contains transactions on grid. I have a feature (live mode - button) and when I click this button i'm getting a new transactions in real time ...
0
votes
1answer
27 views

Close the Popup window using selenium (java)

How to close the popup modal dialog box using selenium (Java) tool for the below screenshot?
0
votes
0answers
18 views

Maven-Extent Reports-Exception in thread “main” java.lang.NoClassDefFoundError: com/aventstack/extentreports/reporter/ExtentHtmlReporter

I am using testng to run automation scripts and ExtentReports for report generation. I have a main method that calls the testng.xml file. When i run the main class->Run as -> Java application-> ...
0
votes
1answer
31 views

Need Some Help in implementing a logic for automating a web element using Selenium

Here is the html I am working on, the concept is to loop through the table and fetch all the td values. And based on the first td value, fetch the second td with tag strong inside the td tag e.g: I ...
1
vote
0answers
43 views

Exception in thread “main” org.openqa.selenium.WebDriverException: Value cannot be null. Help needed

When trying to invoke winium driver for my file upload from local into web, it's showing below error, Exception in thread "main" org.openqa.selenium.WebDriverException: Value cannot be null. Further ...
0
votes
1answer
30 views

How to get only one row from excel which has multiple rows data?

Actually, I have written code for reading data from an excel file. But, I want to read the first row and if required then read the second row which is not happening in my code. I got all rows data ...
0
votes
2answers
53 views

Unable to locate Text element using XPath in Selenium

This is my HTML page and I have some problem with my automation code and it is not able to locate the element and this is the XPath I used: @FindBy(xpath="//div[contains(text(),'Done')]") HTML Code: ...
0
votes
1answer
45 views

How to check if the output value is 4 or not?

Following code isn't working. Please help. WebElement output=driver.findElement(By.id("XLEW_1_3_1")); System.out.print (output.getText()); if (output.getText()=="4") ...
0
votes
0answers
18 views

Junit and Jira Zephyr ticket integration

does anyone knows how I can integrate Junit test scripts to my Zephyr Jira ticket? I have a running script created in Junit and I want to view the execution status in Zephyr. Found some tutorials that ...
0
votes
0answers
31 views

File not found exception is received when generating ExtentReport with Selenium WebDriver

When I tried to generate ExtentReport with version 3.1.3 getting below error. My code is: using AventStack.ExtentReports; using AventStack.ExtentReports.Reporter; using NUnit.Framework; using ...
0
votes
2answers
29 views

Cucumber > Saving State up to a Step

I am using Cucumber through IntelliJ and am working on fixing a broken test. I was wondering when debugging, is there a way to save the state of the system up to a certain step in the feature file, if ...
0
votes
1answer
38 views

Unable to click a delete icon represented in my cart

Here is my HTMLCode: <span onclick="cart_delete('0')"> <i class="fa fa-trash-o" aria-hidden="true"></i> </span> I tried with below code: driver.findElement(By.xpath("//span[...
0
votes
2answers
63 views

I want to enter customer name in search box and click search icon next to search text box

Here is my HTML code, <div class="input-group-btn search-panel dropdown open"> <input type="search" id="footerSearch" class="form-control search-input search-filter-component" name="x" ...
0
votes
1answer
45 views

Finding xpath using tr/td

http://newtours.demoaut.com/mercuryregister.php Find xpath for first name and last name is very difficult. How Xpath can be used if there is no id , tag or class available. ...
0
votes
1answer
20 views

Cucumber Feature on executing throwing "The path to the driver executable must be set by the webdriver.chrome.driver system property;

I am Using Cucumber Selenium Framework for Test Execution. And I have set system Properties correctly because the same script was running fine but now it is throwing "The path to the driver ...
1
vote
0answers
16 views

Is it possible to have different logger paths per cucumber features or scenarios?

So I'm using selenium with cucumber and right now and run my tests sequentially, at the end of the execution I collect the log and the prints. My question is, once I start executing them in parallel, ...
0
votes
0answers
23 views

Appium automation testing a DrawerLayer search box - how to submit?

I am trying to automate typing into a search box in an android app with a virtual keyboard provided through DrawerLayer. I am using Java & Selenium with Appium for running the app itself in ...
1
vote
2answers
41 views

Protractor: Iterate through table <td> and click the link by TEXT

Requirement : link is present inside tabel >td>p>a . i want to Click link the link by TEXT (something like contains(Text)) Tried : by.CssContainsText("a","Text") . did not work, as multiple entry ...
0
votes
1answer
26 views

How do we generate load in the queue using selenium?

We are trying to generate videos(video streaming via Youtube URL's) in the queue. Some of the users will be watching the videos in FIFO Format so we would like to know the process where we can push ...
2
votes
4answers
65 views

How to fetch the text values from the dd tag using selenium

I am automating one Project in my organization and came across one issue. I am very new to automation and selenium. Issue that i am facing: not able to capture the text inside the dd tag in the html ...
0
votes
0answers
29 views

How to keep a single browser window open during multiple search for a website in the code?

I want to search for different items in a website multiple times and add the item to cart after each search and proceed to checkout after last search. Cucumber opens the new browser for every row in ...
0
votes
0answers
19 views

Selenium/C#/Visual Studio- Need to find a way to interact with an external app to grab data

I have a unique problem for which I can find little help. I have automated a web app but I am having a huge problem with respect to the data required for the test to run daily. The test includes a ...
0
votes
3answers
30 views

Running Selenium via command line java.lang.class.notFoundexception

I am trying to run a java file from selenium using cmd. Just adding libraries means that the java command (in command lines) does not work (javac works, the file is compiled). Does anyone know any ...
0
votes
0answers
22 views

Selenium Firefox issue while inserting data in data-input-type=“decimal” text field

Unable to enter value to Estimated Value field in firefox using send keys method. Note : its working fine with Chrome and IE. Tried with java script set attribute value method but with that method ...