Selenium-WebDriver provides the WebDriver API for controlling browsers in different programming languages ("language bindings"). When using this tag, also add a tag for the programming language you are using.

learn more… | top users | synonyms (3)

1
vote
1answer
17 views

Storing Key value pair in C#

In Java , i can use property file as shown below to store the elements ID and implement as the same CountryName=USA driver.findElement(By.name(prop.getProperty("CountryName"))).click(); Is there ...
0
votes
1answer
4 views

Unable to switch between frames in WebDriver

I am working on contacts creation page in www.salesforce.com developer login account. Anybody can create a free developer login account and access this page. I am unable to switch between frames in ...
0
votes
0answers
6 views

Mink “I should be on <page>” step failing silently

I'm having issues with the @Then I should be on "<page>" step definition built into MinkContext. I've been successfully writing Mink steps for several weeks, but I just now discovered that the ...
0
votes
0answers
3 views

Set user-agent with selenium-webdriver and phantomjs in nodejs

I need to change the User-Agent of my PhantomJS browser that's driving selenium-webdriver. I've found methods to change the user agent in C#, Ruby and Java This is what I've tried: var webdriver ...
0
votes
0answers
19 views

Not able to select drop-down option using select : UnexpectedTagNameException selenium : python

I apologize if I am doing very basic mistake, i am still new learning webdriver and python. I am trying to select an option from dropdown using Select Class of python, but i am getting Unexpected ...
0
votes
0answers
17 views

Selenium 2.0 - File Upload not working

I am unable to upload a file using selenium. I employ the below code: Browser.FindElement(By.XPath(XPath)).SendKeys(path); However, all that happens is that the file browse form comes up. The file ...
0
votes
2answers
26 views

Selenium webdriver get text of adjacent column in same row by matching text from other column

I am writing integration tests for an asp.net mvc website using Selenium Webdriver. I am using C# but answers in C# or Java would be appreciated. I have attached the html table and the generated html ...
1
vote
0answers
15 views

Read redirect file from web server (.txt file) and verify response from page (“MalformedURLException: no protocol”)

First time posting, but have used this site more times than I can recall! I'm very new to programming and I've been tasked to write automated test scripts with Selenium WebDriver, which has ...
0
votes
0answers
10 views

Set a custom title for each browser in selenium webdriver

Is there a way to tag a webdriver instance with a name in the title like it used to be in browsers e.g.: "Stackoverflow - Internet Explorer". I want to consecutively number my browsers since I'm ...
0
votes
0answers
24 views

How do I fix 'Source not found' error when debugging in Eclipse, using Selenium WebDriver?

I'm practicing building a test automation framework using Selenium Webdrive in Eclipse with Java, and as part of this I'm debugging through the code I have written so that I have a full understanding ...
1
vote
0answers
27 views

How to Kill Selenium “Click” Thread After Timeout

Currently, I'm utilizing a working method for killing a Selenium get thread after a specified timeout that I found here on Stack Overflow ... String url = "https://www.myurl.me"; Integer timeout = ...
4
votes
1answer
40 views

Unable to click the checkbox via Selenium in Python

Why am I unable to click the following checkbox on the page https://realty.yandex.ru/add via Selenium in Python? import traceback import selenium.webdriver from selenium.webdriver.common.by import ...
0
votes
1answer
14 views

How to take screen shot for the Failed Tests only after 'Retry'

In our current framework we are taking screenshots onTestFailure. And now we have implemented 'IRetryAnalyzer' using which are re-running the failed tests. Here when the test fails for the first ...
0
votes
0answers
15 views

Automatic run testcases using protractor, selenium server with angularjs

I am able to write testcases using protractor, selenium server with angularjs, ...
0
votes
0answers
4 views

How to change the SecurityManager in netx to open a JNLP programatically?

I'm trying to open a jnlp file from junit test using the library netx, but I'm getting an error like this (as a popup window alert): "Unhandled exception found, if this error persist contact the ...
0
votes
1answer
19 views

Null pointer exception due to driver instance is null in onTestFailureMethod

Need help on - I am getting null pointer exception in onTestFailure method. If any of my @Test method fails control goes to onTestFailure but driver is null in that method. my code is like - import ...
0
votes
0answers
21 views

Passing the single instance of the driver object to all other classes (Testng framework)

I have a driver object initialized in class sample.I want to pass the driver object to other classes also but i get a null pointer exception. My code is sample class public class sample { ...
0
votes
0answers
15 views

selenium doesn't click flash upload in an embed tag

I tried to click on it directly and tried switching frame but it doesn't automate it when i manually click on it it works an d open a window popup to upload file but using selenium it doesn't: ...
0
votes
0answers
13 views

second scenario in my cucumber feature file is not executing

I'm trying to learn Cucumber with selenium java . have written two scenario's , when i run my feature file which contains two scenarios , only scenario #1 is executing , for scenario #2 its throwing ...
0
votes
0answers
11 views

PhantomJSDriver FindElements()

I'm using PhantomJSDriver and trying to add some elements to an array with an intention to do something along the lines of var myElements = driver.FindElements(By.Id("bla")); myElements. ? ... ...
2
votes
0answers
31 views

Check if FirefoxDriver or ChromeDriver is installed via system properties?

I have a set of web tests that run in various browsers. I want to skip a test if the corresponding driver isn't installed. However, these tests that will be executed by different machines,meaning OS ...
1
vote
0answers
16 views

passing arguments @factory from testng.xml

I want to pass the parameter to my factory class through testNg.xml. Can you please guide me on how I can do that? I have tried as below but no luck. @Factory @Parameters ({"function"}) // am ...
-1
votes
0answers
30 views

Change IP address every time selenium program runs [on hold]

I am writing a program that needs to view ads from google on the search page, but google will often stop showing ads after you've seen them before. So I was wondering if it was possible to change the ...
0
votes
0answers
9 views

Is it possible to add a date dynamically to your nightwatch.json file?

I need my output_folder to have the date in the name, is there any way to do that without changing the file by hand every day? Is it possible to have a function in the json file somewhere or ...
0
votes
2answers
34 views

Running all selenium tests inside a test case

I have multiple tests inside one test case but I am noticing that it is only running the first test import unittest from selenium import webdriver from selenium.webdriver.common.desired_capabilities ...
1
vote
1answer
27 views

Turning Off Autocorrect on Internet Explorer by passing in parameter in webdriver/protractor?

I am testing on IE11 (Windows7) using Protractor 1.5.0, and my tests are failing because the text that I post on a message forum are being autocorrected. Is there a way to turn off autocorrect by ...
1
vote
4answers
47 views

Not able to find a button with text

<button type="button"><b><em><u>Next</u></em></b></button> In page source I have more than one button. I have only option to find this element with ...
1
vote
1answer
18 views

PhantomJS - connect to GhostDriver error

I am scraping websites with PhantomJS and Selenium. My problem is that after about 50 checked URLs i have an error: selenium.common.exceptions.WebDriverException: Message: Can not connect to ...
-2
votes
0answers
24 views

Using selenium in python, always get the result not match chrome's F12

I just want to get the stores' data from yelp. I am using selenium. But I am confused when I run my code: driver = webdriver.Firefox() driver.implicitly_wait(1) ...
1
vote
2answers
26 views

php web-driver : how to to click a button on a popup page

I wana click on a submit button on a popup page using php web-driver. When I click on a button, its open a boostrap confirmation popup, Now I tying to click on button on this popup.Like this . ...
2
votes
1answer
33 views

how to resolve java.net.SocketPermission

when i have run java code in server it will showing below exception: java.security.AccessControlException: access denied ("java.net.SocketPermission" "localhost:15990" "listen,resolve") here is my ...
0
votes
0answers
27 views

How to find all <!--/noindex--> tags using xpath, ruby & webdriver?

xpath = //comment()[contains(.,'noindex')] is working for me in Selenium IDE, but it won't work using ruby & webdriver. How to find all tags? I'm trying use code: result = ...
0
votes
1answer
35 views

How to wait for all WebElements to disappear in Haskell WebDriver client?

I'm writing a test using Haskell WebDriver client. I have a page, which - when it is initially loaded - contains several "panel loading" animation elements. Before starting interaction with the page, ...
0
votes
1answer
23 views

selenium automation framework, chrome does not load page

We are using phpunit-selenium framework for automation using chrome browser. Everything works fine but few times, 2-3 times in day for uncertain time, chrome does not load page. Framework launch ...
-1
votes
2answers
28 views

How to upload an image in iframe using selenium webdriver

I'm having a browse button after clicking on that button an iframe is opened. Choose file of type file is present on the iframe. I'm unable to click on that choose file. driver.switchTo().frame(0); ...
0
votes
2answers
31 views

not able to click on compose in gmail using selenium web driver

I have tried to compose mail, but I am not able to click on compose. I tried with the following code for compose mail import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import ...
0
votes
0answers
22 views

Unreachable catch block for TimeoutException in WebDriver code

I have below piece of code which checks if a webpage is loaded within 1 min or not. I receive Unreachable catch block for TimeoutException. Could anybody tell me why?. Thanks public class ...
0
votes
1answer
33 views

How to integrate jira with selenium webdriver.?

I am new to automation and I wanted to know how I can integrate jira with selenium webdriver. Actually I wanted to execute test cases and report pass/ fail status for each test cases in jira. Thansk ...
0
votes
1answer
22 views

Unable to click on button in rediff.com website at user login page

Unable to click on button after entering the email address. driver = new ChromeDriver(); driver.get("http://in.rediff.com/"); ...
1
vote
1answer
32 views

element(by.binding('…'),getText() gets a whole block of text instead of only the element

I am testing the result of {{price}}and {{getAdditionalKm}} of my AngularJS Application with Protractor. Here is part of the html I want to test: <h1>{{ price(distance, time, time_standing, ...
0
votes
1answer
43 views

Retry only specific Failed tests with TestNG

How to execute only the specific failed tests. By using 'IRetryAnalyzer' we can re-run the failed tests for x number of time. As mentioned here Restart failed test case automatically. I have also ...
-1
votes
0answers
11 views

Unable to generate xslt report from cmd?

I am unable to generate XSLT report from command prompt. When I give the command "ant makexsltreports" the cmd give error "java.lang.ClassNotFoundException: SaxonLiaison" Please Help me out with ...
1
vote
1answer
44 views

Scrapy with selenium, webdriver failing to instantiate

I am trying to use selenium/phantomjs with scrapy and I'm riddled with errors. For example, take the following code snippet: def parse(self, resposne): while True: try: ...
0
votes
1answer
8 views

PHPUnit Selenium2 Cannot Find Tag on tests

I'm working on testing a site with PHPUnit (3.7.38), Selenium2 (2.43.1-standalone) and Firefox (34.0), and keep running into an intermittent problem with Selenium not being able to find tags on a ...
0
votes
1answer
19 views

How to find out difference behavior between chrome driver and phantomjs

When I want to have automated browser function with selenium-webdriver, I write at first with chrome driver and then make it run with phantomjs. But sometimes the two browsers behave differently and ...
-1
votes
1answer
28 views

how to print the all li items text of dropdown using selenium webdriver?

How I print the all li items text using selenium webdriver. Here I want to some type of single line code that print all li items text like Jackets, protective etc. May by using for loop <div ...
0
votes
1answer
23 views

How to make selenium web driver wait till my firefox plugin is finished executing

I am using Selenium web driver in JAVA to test a functionality. In parallel I have developed a firefox add on to do another functionality. I am facing 500 internal server error when Selenium tries to ...
3
votes
1answer
52 views

Python: command line argument not passing the same way as hard coded lines

I'm working on some Selenium scripts to test sites across different devices, browsers, and platforms. I can get the scripts to work using the same code except for two lines where I define command ...
-1
votes
2answers
24 views

Click on a Different Link (Randomly) From A List of Links Everytime

I am working on Selenium WebDriver using Java. I would like to click on a link randomly from a list of available links on a web page every time I go through that page. Here is the detailed scenario. ...
1
vote
1answer
26 views

Unable to get performance logs

I'm trying to get performance logs using Selenium WebDriver with following code: DesiredCapabilities cap = DesiredCapabilities.firefox(); LoggingPreferences logPrefs = new LoggingPreferences(); ...