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
2
votes
3answers
1k views

How to get Selenium 3.0.1 to work on a Mac with IntelliJ

I am using a Mac as well as IntelliJ. I am trying to update Selenium from 2.53 as the website I am testing has functions that no longer work with older versions of Firefox (version 46). I am trying to ...
0
votes
2answers
2k views

How to reliably click bootstrap dropdown with no button element?

I am using Selenium to try and select an element in a bootstrap dropdown menu, but there is no button element present. The website uses all JavaScript to enable the dropdown. The HTML code for the ...
0
votes
1answer
16 views

when am executing the below code am getting <terminated> WriteExcelFile[java application] error

package seleniumpackage; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import org.apache.poi.hssf.usermodel.HSSFWorkbook; ...
-1
votes
1answer
27 views

Can any one suggest how to test leaflet maps using Selenium?

I want to test fleet management software using selenium core java. But i have no idea how to test maps and live tracking scenarios using selenium. can anyone give us best solution?
0
votes
1answer
78 views

Permissions error trying to run Appium test on Android

I am not able to run my automation testing with Appium server using Eclipse with Selenium. The error I get is: Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Unable to ...
0
votes
0answers
33 views

How do I deal with a Gmail CAPTCHA during automation? [duplicate]

My test suite involves me logging into a website with 4 specified social logins: - MS Live - Facebook - LinkedIn - Google Now the problem is that many of these social logins sometimes give me a ...
0
votes
2answers
87 views

Unable to navigate to the URL in Microsoft Edge

I am trying to launch Microsoft Edge browser and navigate to google.com but as soon as the browser launches the execution stops and the browser closes. I am getting the below error in the console. ...
0
votes
1answer
37 views

How to read the excel (Later enter test data in application based on particular test script name)

I need your help, I want to read test data based on the Test script. And after reading data it should enter in the application. I am using selenium Java + Apache POI Below is the code please help. ...
0
votes
1answer
57 views

How To do update/edit on selenium script got in JAR file format from other location

I have a Runnable JAR file of selenium script forwarded from other location, now I want to use that same script for my project with some minor updates. How to do that? Can we open that in Eclipse and ...
0
votes
1answer
60 views

I am unable to identify element of edit text in table

I am unable to identify element. please find my below code. WebElement editorFrame = dr.findElement(By.id("1536219451331-0-uiGrid-000L-cell"));
0
votes
1answer
25 views

How to click on the menu buttons in tinymce editor using selenium

I need to click on Insert menu in the tiny mce editor , i have switched to frame and was able to enter text in it but couldn't perform any click action on the menu. Any help is much appreciated
10
votes
7answers
69k views

Can I use Selenium to do Desktop Application testing?

Is it possible to test desktop applications using selenium? Suppose we have a simple application like gtalk. A desktop application, can we automate that application with selenium.
0
votes
1answer
95 views

Not able to add Bug from Testlink to JIRA (Required Version Number)

I have Integrated JIRA from testlink using REST API. I was also able to link the failed testcase to a bug in JIRA. But while trying to create issue in testlink there is a validation happening for ...
0
votes
1answer
30 views

gitignore of Selenium WebDriver TestNG

For selenium webdriver testng using git, what should be part of gitignore so my scripts can run on any computer without any conflict. Thanks!
0
votes
1answer
20 views

Selenium to test Dygraphs

Is it possible to use selenium(C# bindings) to write automated tests for testing Dygraph charts? If selenium does not support this? Are there any other tools which can be used? http://dygraphs.com/ ...
1
vote
3answers
61 views

How to select option in a dropdown when the html-tag has a random id

I have a problem how to select a desired option (e.g. From, To...etc.) from list if 'datalist id' and 'select name' are randomly generated. This means that the ID and name has another value after ...
1
vote
3answers
52 views

locating element by id or css, which is faster?

If there is an id available for an object in a page, find element by ID or CSS - which is faster? element(by.id("btnButtonID")) OR element(by.css("#btnButtonID") Since we can identify any objects ...
0
votes
1answer
16 views

How to get text from header having separator

How to fetch text for <h1 _ngcontent-gtj-c13=""> Site-2 <span _ngcontent-gtj-c13="" class="seprator">|</span> Building-1 <!----> </h1> I have used attribute ...
1
vote
1answer
19 views

Run Selenium test case in time interval from a console application c#

how to create a console app - a batch file which will hit my Automation testing application and runs selected test cases. I have test case with code coverage and it runs from my visual studio . and ...
0
votes
2answers
24 views

Save variable from java test class 1 and use variable in java test class 2

I have written the Selenium scripts (page object model) to navigate a website, fill in form data, and submit the form. I next need to verify that the form data was indeed saved in the database. My ...
0
votes
2answers
24 views

Unable to upload file even using autoit as my IE browser taking long to open upload windows popup

Unable to upload file even using autoit as my IE browser taking long to open upload popup once we click on the browse button but my script runs when i execute manually. Also my objective is, i need ...
0
votes
2answers
92 views

How to write the XPath for this

I am trying to write the XPath for the below element but unable to do. I want to write for the Individual. I wrote like this //h3[contains(text(),'Individual')] <h3 class="dashboradh"> ...
7
votes
5answers
2k views

Page Object Model or External property file for Selenium Object Repository

I am a beginner in Selenium WebDriver (Java with TestNg). I'm trying to create a framework of my own. My question here is what would be the better option to store my objects (basically all the ...
0
votes
2answers
35 views

How to Handle Dynamic Changing IDs inside a span

How to Handle Dynamic Changing IDs inside a span In XPath? for example : <span id="listv2_f40a0e90dbcc089cae10d48a489619ee_total_rows" style="margin-left: 1px;">2000</span> In this ...
1
vote
3answers
1k views

Python selenium grid parallel execution

How do I run parallel selenium scraper in grid? I wanted to crawl 10 urls , and if I start two Firefox nodes, how do I request the nodes to crawl 5 urls in parallel? I have gone through google, but ...
0
votes
1answer
76 views

Unable to launch Firefox driver using selenium

I'm getting error like Exception in thread main java. NoClassDefFoundError:com/google/common/collect/immutableMap and above are the full screen shots:
0
votes
0answers
35 views

Selenium - Question about how to traverse and select/copy specific texts

In this example, I would like to find all span class of "server-error". I think I am able to do that and store in an array. But here is where it gets tricky for me... Is there a way of appending the ...
1
vote
3answers
2k views

How to resolve NoSuchElementException in Selenium with java?

CODE: driver.findElement(By.name("USER")).sendKeys("XYZ"); driver.findElement(By.name("PASSWORD")).sendKeys("abc"); I have tried various ways not just name but by xpath, css selectors but every time ...
4
votes
2answers
10k views

Order of execution for Tests in TestNg, If Priority set only for few Test Methods

I have three methods as mentioned below, two with priority ( 0 , 1 ) and third method(Test) with no priority attribute. What is the order of execution. Code snippet given below.. @Test(priority = 1) ...
0
votes
1answer
39 views

Can Selenium automate iOS Safari webpage tests on a real iPhone?

I want to automate a website on a real iPhone with Selenium. Is that possible or do I need Appium? Ideally I will launch my tests from my Windows machine via RemoteWebDriver edit: it looks like it ...
1
vote
2answers
370 views

Python Selenium unable to login by clicking on Button inside a form

website:https://www.etoro.com/login <button automation-id="login-sts-btn-sign-in" ng-click="loginCtrl.login(loginForm)" class="e-btn-big wide dark pointer">Sign in</button> I am trying ...
-1
votes
1answer
46 views

Text field clear automatically after entering the value as sendkeys

I tried to login on my mobile webbrowser. After passing my username as string, it clears automatically. My code is loginId.click(); loginId.sendKeys(userName); The script fails only with the ...
9
votes
4answers
9k views

How to disable infobar from Chrome

The option to disable infobar "Chrome is being controlled by automated test software" was removed from Chrome. Chrome version: 65.0.3325.146 Chrome driver: 2.36 OS: Windows 10 I used the ...
1
vote
2answers
185 views

Using Fluent Wait When Finding List WebElements

I have a fluent wait class that works pretty well for locating my page elements, however, when I am locating elements for lists I don't appear to be using the same wait. I currently need to add ...
1
vote
3answers
51 views

How to find the Xpath of <Td> tag from text which lie under <a> tag of that <td> in selenium c#

I have to find text on a page, which I did. Now I need to find the xpath of the <td> element containing that text so that I can use the <td> xpath to find other elements like the image ...
1
vote
1answer
64 views

What tools will let me analyze automation reporting results?

I'm looking for a tool that stores the history of automated test runs performed on Jenkins and allows analysis to be performed to the desired level of detail. Today we have several Jenkins jobs that ...
9
votes
11answers
27k views

Is mail testing with selenium possible?

We have merely just had a kick off meeting for a new project that I am required to automate ASAP. The project is essentially a "mailbox project", if you will, and I have no idea as to where to start ...
7
votes
3answers
8k views

Automate verification of emails being received

One of the applications that I have to do an enhancement to soon has a number of emails that are sent from the application. To the point of verification, I need to see the delivery failure ...
9
votes
1answer
9k views

Faking system time/date with Selenium Webdriver?

Is webdriver capable to run a browser with a faked time, date or time zone? Such ability would be highly useful for my automation purposes. Yet, I did not find any such ability in the webdriver ...
1
vote
1answer
1k views

“org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: exited abnormally” issue on jenkins(openshift) chrome node

I've been trying to run selenium codes over Jenkins (server/openshift). There is chrome node in the jenkins machine for Test Automation - Selenium. I'm getting this error: org.openqa.selenium....
-1
votes
2answers
60 views

Selenium Testing

Can anyone please help me how to use 'contains' in my xpath while selecting a date from datepicker. This is my xpath : //*[@id="UserDetails.EffectiveDate_DDD_C_mt"]/tbody/tr/td[contains(text(), '2')] ...
4
votes
4answers
114 views

What is best approach to run regression Automation in Agile

We are following agile methods in manual testing. We had not done any automation until sprint 10. Our current sprint is 15. After sprint 10, We started automation using Java, Maven, and Selenium ...
0
votes
2answers
62 views

How do I select a random checkbox on the web page?

I have 3 checkboxes on the webpage. Each time, I want to select checkboxes randomly.
0
votes
1answer
42 views

Getting Stale element exception when iterating over a dropdown in Selenium

List<WebElement> dropdownlist = driver.findElements(By.xpath("//* [contains(@class,'mat-option ng-star-inserted')]//span")); int count = dropdownlist.size(); for (int j=0; j<=dropdownlist....
0
votes
2answers
48 views

How do I find total number of links on a web page using selenium and java 11?

package exsc; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.By; public class S1 { public static void main(String[] args) { ...
0
votes
3answers
219 views

Sharing static class variables data between two Selenium classes c#

I have two Selenium C# test case classes, ClassA and ClassB. I would like to reuse a static variable VarA, defined in another static non-test ClassC. After ClassA has made a change to the variable, I ...
0
votes
2answers
8k views

Clicking a cell in a dynamic data table C# WebDriver

The HTML I'm trying working with is below, <div id="enquiry-header-grid-SalesTransactionEnquiry-enquiry-header-grid-wrapper" class="enquiry-kendo-grid-wrapper k-grid k-widget" data-role="grid" ...
1
vote
0answers
35 views

Issue with switching to the new window in Selenium + Python (chromedriver)

I'm having an issue when I try to switch the new opened window. Every time I execute a test case, my chromedriver opens with a window named "data:,". My code: def test_case(self): reg = Register(...