The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
3answers
662 views

How to handle tooltip on onmouseover in selenium java

test case is to show the tooltip message my html code is below <td id="pendingBalance" align="right"> <a onmouseover="displayHelpPopup(this,arrHelp[20][0]);" onmouseout="closePopup();" ...
0
votes
1answer
24 views

How to select a value from dropdown developed using div tag using Selenium and Python?

Like in selenium java we are using ACTION class method or SELECT method to select value from drop down. Is there any method in Python?
0
votes
2answers
383 views

How to maximize browser window irrespective of windows versions

I have some scripts which are running on Firefox browser. Here the problem was I am using driver.manage().window().maximize(); code to maximize the browser. It is perfectly working fine with Windows 7 ...
2
votes
1answer
82 views

Scrape items from an HTML list

When Catalog receives a fragment for a book category, it seems to my eyes, to be just list items. For space, I didn't include that output. How can I ensure that only categories which belong to the ...
1
vote
1answer
58 views

Problem with dropdown (Selenium + Python)

URL = https://www.sephora.com/search?keyword=shaving At the bottom of the page, I'm trying to change from "View 60" to "View All". The problem is that test case passed successfully, but the browser ...
0
votes
2answers
721 views

How to deal with parent and child iframes

I have a sceanrio where I 1st iframe (i.e parent iframe) which has one button on it and clicking on it another iframe gets open (child iframe). I am able to switch to Parent iframe but when I click on ...
1
vote
2answers
54 views

Tests fail when triggered through jenkins

I have upgraded my test suite to latest selenium,Firefox and gekodriver. When I run the tests locally they work fine, when I run them on a remote box executing the command in remote box they work fine....
2
votes
2answers
5k views

Webdriver error: System.Net.WebException: Unable to connect to the remote server

I have noticed in my testing that sometimes I get "System.Net.WebException: Unable to connect to the remote server" when running tests in Selenium. It appears to happen randomly, but specifically ...
2
votes
1answer
66 views

What method should i use to display the country selected from dropdown on console in Selenium Webdriver?

http://demo.guru99.com/test/newtours/register.php For the above site, I am writing a Selenium code to select a country from the drop-down and want to display selected country on the console in ...
2
votes
2answers
28k views

how to proceed after clicking a link to new page in selenium in python

I am clicking a link which takes me to new page, but I don't know how to proceed after that. When I try to find an element by id in the next page it gives me error: selenium.common.exceptions....
1
vote
2answers
82 views

Stale element reference: element is not attached to the page of the document

I would really appreciate if someone could help figure out what the hell is going on with one of my tests. I'm getting Stale element reference: element is not attached to the page of the ...
1
vote
2answers
176 views

Unable to find element with xpath within nested framesets

I'm using driver.findElement(By.xpath("//a[@title='A K T İ V A S Y O N']")); to locate the element given below in the screenshots but getting Unable to find element error. There are nested classes ...
1
vote
1answer
188 views

Logging js console when doing selenium test using firefox driver

I'm writing selenium tests which are launch on the firefox (gecko) driver. If a test fails, I want to retrieve the log present on the firefox js console. In order to do that, I have added the ...
0
votes
1answer
26 views

Selenium chaining IWebElement actions in C# [duplicate]

[FindsBy(How = How.XPath, Using = "//input[@id='Username']")] private IWebElement txtUsername; public void EditTxtUsername(string text) { txtUsername.Clear(); txtUsername.SendKeys(text); } ...
0
votes
2answers
3k views

Button click is not redirecting to next page in selenium webdriver

I am trying to do Bus Search first on Travelyaari.com and then Modify the Bus Search, The Modify Search button seems to be clicked, however, previous Bus search result page is getting loaded and my ...
3
votes
2answers
211 views

How to interact with the radio button if isDisplayed, isEnables are false

Scenario: I am automating a feature where i need to click on the radiio button but after many attempts it didn't work. So I checked with isDisplayed, isEnabled and isSelected.Upon execution it was ...
1
vote
3answers
53 views

is there any possibility to check the button sizes and images are loading or not in selenium?

how can I check frontend button sizes, logos, and images are loading or not?
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
17 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
29 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
83 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
90 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
26 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
96 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
31 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/ ...
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 ...
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
79 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
11k 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) ...
1
vote
2answers
379 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
197 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 ...