Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

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
9
votes
3answers
19k views

Selenium Tests run in the background when TeamCity CI is run as a Windows service

Our test suite is written in Python and makes use of the WebDriver Python bindings. We are looking into moving to TeamCity for continuous integration. The setup I have in mind is a build triggered for ...
8
votes
4answers
55k views

Downloading a file in Internet Explorer through Selenium

I have to automate a case in which I have to download an Excel file using Selenium IDE.I have done this in Firefox by using custom profile feature which automatically downloads file and saves it into ...
7
votes
1answer
7k views

E2E testing of Angular app with Python backend: Protractor/JavaScript vs webdriver/Python

We have extensive Python-based application, with many E2e tests (and of course unit tests), all in Python). We started e2e test in FitNesse (Selenium1, with Python fixtures) many years ago. Recently ...
6
votes
7answers
7k views

I want to learn Selenium but not sure about the language I need to learn for automation

Java or Javascript? or maybe another language? Please help me choose the programming language I should learn for Selenium automation and its benefit over other. Any pro's and con's?
6
votes
1answer
914 views

Performing administrative test cases in Selenium IDE

For a Drupal site, I have written a test script in Selenium IDE that logs in as the administrator, adds a new user and peforms a series of tests on the registration page. Once this user has been ...
5
votes
2answers
7k views

Difference between Selenium and TestNG

Am a beginner in Selenium and am trying to learn selenium on my own by googling. One thing which I noticed was in many of the posts which I read about selenium the name of the framework by name "...
5
votes
3answers
18k views

Selenium + FF : How to fix error, Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms?

My script is not running even by using selenium 2.53.1 and firefox 47.0.1. Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. is the error returned. The script that was tried is, ...
5
votes
3answers
27k views

Compatibility between Selenium WebDriver and the major web browsers

Is Selenium 2.53.1 compatible with Firefox 47? Which version of Safari I need to install MacOs to have it working with Selenium 2.53.x? I've asked myself such question many times and I can see a lot ...
4
votes
3answers
66k views

Webdriver : How to perform scroll down an element (example div) using selenium?

The Scroll element in the page is actually a div with scroll bound to it. Here is the HTML snippet. <div class="slimScrollBar" style="background: none repeat scroll 0% 0% rgb(137, 137, 137); ...
4
votes
1answer
2k views

How to avoid the pop up message while downloading an application (.exe) using selenium

I am trying to download an application and check if it's downloaded into my local system or not. But when I click the download link I have a popup with Save or Cancel options, which is stopping me ...
2
votes
2answers
2k views

Logging every action with custom “debug” method. Good idea?

I'm creating my first full framework using Selenium and TestNG and recently implemented the ability to have logging enabled which will track every action (before and after). public class CustomLogs { ...
2
votes
2answers
802 views

What should be the approach to test styles using Selenium

In my UI tests I would like to verify particular style values for the elements. Below is the example list of the styles I'd like to verify: font style font size padding margin Is there a way to do ...
0
votes
1answer
3k views

Are there GUI test tool better than Selenium? [closed]

I have read and heard from many peple that Selenium is used by many people. Do you know if there is a better tool than Selenium in relation to open source? Thanks!
9
votes
6answers
75k views

Quicker way to assert that an element does not exist

The goal of my test is to assert that a popup does not appear after certain actions. Previously to test if the popup exist, i have used exception handling. try: self.driver.find_element_by_id("...
8
votes
11answers
80k views

Selenium test case fails due to page load time

I run nearly 30-40 test cases twice a day. And everytime some test case fails due to page load time. Infact i have explicitly mentioned Thread.sleep("2000"); wherever i feel it takes more time to load....
7
votes
4answers
3k views

same xpath on the page with dynamic ID selenium java

I have a problem with the two same XPath with dynamic ID on the same page. I have tested for selenium in java, when I need to confirm button on delete upload file. Instead of this, test first submits ...
7
votes
6answers
6k views

Does selenium webdriver capable for database testing?

After reading so many answers and forums it makes me confuse. some people says: Selenium webdriver is browser automation tool and it has nothing to do with the database. And some other showing JARs ...
6
votes
3answers
2k views

What is the best way to handle minor intermittent automation failures during cross browser testing?

I run Web Driver (.Net version) with SpecFlow as my test driver on some fairly general Cross - Browser scenarios so I often am rerunning tests as I add new ones, or clean up old automation. On ...
5
votes
2answers
132 views

Communicating markup changes between developers and testers

From time to time, our end-to-end tests fail because of a markup change made by one of our UI developers - for instance, there was an id on an element but it got removed/replaced, or an Angular ...
5
votes
5answers
62k views

Not able to scroll down page using Selenium webdriver [duplicate]

I want to scroll down a page that is coming inside a form, not on the main page. I tried this code: JavascriptExecutor jse = (JavascriptExecutor)driver; jse.executeScript("window.scrollBy(0,250)", "...
5
votes
5answers
36k views

How to wait for element to be clickable in WebDriver with C#

How can I wait for element to be clickable in Selenium WebDriver? When I execute my tests in Firefox or Internet Explorer I have no problems, but when I try to run it on Chrome, I get an element is ...
4
votes
2answers
22k views

How to take ScreenShot & save it with different filenames by using Selenium & Java? [closed]

I have created screenShot() method to take the screenshot of the web page. When I used this method in my code first time it will capture the screen and it will save the image with image1 name. When I ...
3
votes
2answers
5k views

Unable to open Chrome WebDriver in another language

I'd really like to write a Selenium WebDriver test that verifies text is localized. The localization code bases the strings it displays on navigator.language (or navigator.userLanguage for IE). I ...
3
votes
2answers
8k views

How to capture a series of screenshots in Web Driver using Java

I Just wanted to know that how can we take a series of screenshots / a video recording for a screen using Selenium 2/Web Driver with JAVA ? Please provide the answer or the link where I can get an ...
3
votes
2answers
637 views

How to select an element from a drop down list inside 'svg viewbox' container using Java/WebDriver?

<svg viewBox="0 0 24 24" style="display: inline-block; fill: rgb(224, 224, 224); height: 24px; width: 24px; transition: all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms; position: absolute; right: ...
2
votes
3answers
8k views

What is geckodriver? How to use it in Selenium Webdriver? [closed]

What is geckodriver? How to use it in Selenium Webdriver?
2
votes
3answers
16k views

How to open new tab in browser in selenium 3.0?

I have tried multiple actions but it is not working. It always close the first tab and then it open link in the same page. // Driver is launched package WebBrowserCommands; import org.openqa....
1
vote
2answers
17k views

How to resolve NullPointerException error in my below POM code?

I am getting java.lang.NullPointerException while executing my test case , I am using Page Object Modle with PageFactory ,following are the code snippets LoginPageObjec.java public class ...
1
vote
1answer
45 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-...
0
votes
2answers
4k views

Iterate through dropdown using java

I want to iterate through a dropdown, select the first value, then click search, then again select the second value and again perform search.In this code i have tried selecting only one option,but I ...
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 ...
7
votes
4answers
18k views

How do I handle the login modal dialog created by onLoad in a WebDriver & Java based test automation

I am working on the test automation that uses WebDriver (Selenium 2) and Java. The AUT is web-based application. A modal dialog pops up that requires user authentication before the user can access ...
6
votes
4answers
10k views

Unable to upload a file using selenium/web driver running with java [duplicate]

I have a complicated interface where uploading a file is three step ( The forum is not allowing me to add screenshots of my window so please try to visualise it) step 1 click on browse tab and select ...
5
votes
3answers
2k views

Selenium Webdriver : parent login window closes after login and child window opens

I have a test case with following scenario: 1) Navigate to website. 2) Enter Login Credential. 3) Click on Login. After login in my application, login window is closed by system and new child window ...
4
votes
3answers
3k views

syntax for css selector class attribute combination

I have bunch of elements with class X. some elements have class Y also (ie both X and Y) how do I select set of elements only have X with partial class name? below is my example HTML <td class="...
3
votes
3answers
11k views

Unable to switch to frame which is inside an iframe

I am unable to locate a frame inside an iframe. I have attached the screenshot of the html page. I am able to locate iframe 'content' by xpath //div[@id='pageContentDiv']//iframe which I verified in ...
2
votes
3answers
770 views

(C#) Selenium: How to extract information from html and write to a variable

I want to know how to get the HTML tag information and write to a C# project variable. Remember that I can not change the HTML because I do not have access. In the example below, it is necessary to ...
2
votes
1answer
11k views

How to find dynamically created elements in drop-down list based on input entered using Webdriver and c#?

I'm trying to test a page that has an input but really its a drop down list. The user enters text and then a dropdown appears based on what the user inputted. They are groups that are in the database. ...
2
votes
3answers
5k views

PageObject. Should I initialize all pages at start or not?

Java + Webdriver + PageObject. I have a question about pages organization. At this moment I have class which contains all pages in the project. At start all pages are initializing, and it looks like ...
1
vote
3answers
2k views

I want to select the value from the dropdown

I am testing www.paytm.com In that I have filled in the mobile number but I am not able to focus and select the mobile operator which is present in the dropdown just after the phone number section. ...
0
votes
3answers
1k views

How to tackle the problem of non-static paths/names/ids of DOM elements while automating with Selenium?

I've got not very common task to take care of. We need to create several test suites for some forms in one complex web application. I'm a rookie in this field and Selenium was the first (and pretty ...
0
votes
2answers
8k views

Exception in thread “main” java.lang.NoClassDefFoundError

I am trying to do this: http://www.softwareishard.com/blog/firebug/automate-page-load-performance-testing-with-firebug-and-selenium/ Below is the screenshot taken from eclipse package com.stack....
0
votes
2answers
4k views

Firefox browser opens but URL is not launched

I am working on selenium. I am using linux os. I am using firefox driver for automated testing my app. My firefox version is 53.0.3 (64 bit). When I run the code the Firefox browser open and don't ...
0
votes
2answers
6k views

How to Create “Runnable jar” file for deployment? [closed]

i have one selenium project, i need to deploy as jar file how to do that? i used following tools/api's Selenium Web driver+java poi JXL TestNG AUT Reporter i don't have Main Method. Runnable jar ...
0
votes
1answer
44 views

How to close this dialog

This is the code for an opening specific page and after that popup appear which I am unable to handle. I have used alert, switchTo, etc.. //Open Browser WebDriver driver = new ChromeDriver(); //...
0
votes
2answers
6k views

java + log4j : How to fix “No appenders could be found for logger (org.apache.http.client.protocol.RequestAddCookies)”

Working with selenium + maven project in eclipse. I am facing below warnings: log4j:WARN No appenders could be found for logger(org.apache.http.client.protocol.RequestAddCookies). log4j:WARN ...
0
votes
2answers
256 views

SyntaxError: invalid syntax // SyntaxError: unexpected EOF while parsing

How do I detect text inside of this, this is HTML & this is XPath. I tried HTML <span class="messageText">Hello.</span> XPath //*[@id="liveAgentChatLogText"]/span[22]/span[2] ...
26
votes
16answers
39k views

Under what circumstances is Sikuli better for test automation than Selenium or Watir?

The Sikuli website says: Sikuli is a visual technology to automate and test graphical user interfaces (GUI) using images (screenshots). Under what circumstances is Sikuli a better technology for ...
19
votes
7answers
108k views

Running WebDriver without opening actual browser window

I've heard rumors that Selenium WebDriver can run without opening a real browser window, meaning it runs in the background. I am using the C# Client Drivers, FirefoxDriver within the automated tests, ...
11
votes
7answers
62k views

Is it possible to stop page loading on the browser using selenium web-driver?

I searched online, but couldn't find anything about how to stop page loading over a browser using selenium web-driver. Any idea for the same?