WebDriver is a tool for writing automated tests of websites. It aims to mimic the behavior of a real user, and as such interacts with the HTML of the application. Rather than running as a JavaScript application within the browser (with the limitations this brings, such as the "same origin" ...
1
vote
2answers
221 views
Conditional statement for fail and error test outcomes in Selenium?
Say I have this function:
def tearDown(self):
""" clean up by closing the browser window """
self.driver.quit()
I want to skip closing the browser if the test failed or errored out (so ...
1
vote
2answers
1k views
How can I access a site protected with basic HTTP authentication using Python, Selenium2, and Chrome Webdriver
I'm using the Python bindings for Selenium2 with the Chrome webdriver. I need to access a site that is protected with basic HTTP authentication.
from selenium import webdriver
driver = ...
1
vote
1answer
785 views
Iterating through a table : Avoiding stale element exceptions (Webdriver - Python)
Here is an interesting problem (or at least i think so)
As an Admin I have a table with N entries (51 to give a number). Each entry in a row is a recruiter name with a link to 'Login' as that person.
...
1
vote
2answers
3k views
How to specify a Firefox profile name when using webdriver + python
I'm using python 2.7.1 and selenium 2.20.0.
I have a seperate firefox profile called "selenium" which I want to use when running the webdriver.
I managed to do it by specifying the complete path to ...
1
vote
1answer
123 views
Is there a way to shorten the time Selenium2/Webdriver takes to look for an element when a failure is expected?
Selenium2/WebDriver is optimized for positive testing paths. My web application hides elements based on user permissions. I am looking for an element and throwing-catching the exception when it does ...
1
vote
1answer
144 views
Error on command: service: “ecmascript”
I have sucessfully run locator commands in Firefox, Chrome and IE but I have an issue with Opera 12.02.
This code is the source of the issue:
...
1
vote
1answer
1k views
Unable to upload a file using selenium/web driver running with java
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 ...
1
vote
1answer
560 views
JUnit Framework - Selenium Webdriver - Excel Input Output - Apache POI
I would like to know, do we use Apache POI when interacting with Excel Files for Selenium Webdriver (under JUnit framework) or is there any better approach?
Let me know if further clarity is ...
1
vote
1answer
494 views
Choosing framework type for selenium RC/Webdriver
I had opportunity to work in around 3 different projects, where selenium have been used extensively. Among them 2 were based on Data driven (say test cases driven by testng XML for each scenario with ...
1
vote
2answers
1k views
"Element is no longer attached to the DOM” StaleElementReferenceException when selecting HTML table row
I am using Selenium 2/WebDriver for automation. I have a table and am trying to select a row in it. When the test runs, I can see the row become highlighted as if it is clicked, but then immediately I ...
1
vote
3answers
486 views
Unable to get focus back to child window
I have scenario where clicking on some link in parent window opens a new window, after performing the actions on the child window, iam unable get back focus on the parent window, I have used the ...
1
vote
1answer
906 views
Set attribute of an element using webdriver + python
I am trying to automate uploading an image. The uploader is a Flash object and using AutoIt is not an option. So I am trying to work my way around this with just webdriver.
The idea is to 'set' the ...
1
vote
5answers
4k views
How to start a Selenium2 WebDriver window in background?
I have a series of Selenium2 test cases in C#/NUnit that are run sequentially. Each test case runs in a new instance of the WebDriver (and this is necessary) - which means that each time a new test ...
1
vote
0answers
43 views
Fitnesse + WebDriver: any working solution?
Could you please tell me if there were any attempts to integrate Fitnesse and Selenium WebDriver? I'm looking for something like Selenesse (https://github.com/marisaseal/selenesse), but for WebDriver, ...
1
vote
0answers
238 views
Connection refused error when running selenium with chrome and firefox drivers
I am running selenium tests with firefox and chrome drivers. I get a connection refused error when I run the tests in as a block
Test example :
require 'minitest_helper'
headless = Headless.new
...
1
vote
2answers
164 views
Check-box remains checked up after test and impacts another tests
I have created a test case where I shall enter details for a deal to be scheduled for a future date and time. I have a pop up which is listing all existing deals having check boxes for selecting one ...
1
vote
1answer
269 views
parameterized JUnit tests with HtmlUnitDriver leading to test termination
I came across an unusual issue with my automation tests while using the HtmlUnitDriver. I have been using the junit parameterized class to iterate over a list of urls to run some of my tests. The test ...
1
vote
3answers
933 views
Selenium Webdriver cannot locate element for right click event
Hi Guys. I have a problem with right click mouse event in Selenium 2.0. I'm using that method but in a console I've got:
Unable to locate element:
...
1
vote
0answers
119 views
Selenium Webdriver and OpenLayers
I would like to check that the locations asset on map (openLayer) are the same with some asset in a row. What is the best way to do this? I'm using the TestNG framework.
1
vote
0answers
154 views
Dependent methods in the same class run out of order only when included in a “testng suite”; running class independently respects the dependency
I have a class with dependent methods using the TestNG annotation
dependsOnMethods
The test runs fine 100% of the time if I simply run it as a TestNG Test from the package.
When I include the test ...
1
vote
0answers
239 views
Passing session while switching control to a pop-up window
I am trying to choose a date by clicking an image which results in a pop-up window with a date picker in it.But when done through selenium the session expires and the login page appears in the pop-up ...
1
vote
1answer
180 views
Clarification sought on the bindings for Selenium 2 and their interaction if any with Selenium Server standalone JAR
While going through the current download list for Selenium I came across this text
The Java bindings for Selenium 2, including the WebDriver API and the Selenium RC clients. Download this if you ...
1
vote
1answer
1k views
Can't open webpage using Firefox WebDriver using Selenium [duplicate]
Possible Duplicate:
I face a problem while opening Firefox with Selenium script
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class ok {
...
0
votes
2answers
1k views
What's the relation between Selenium WebDriver and these other tools?
I've used Selenium IDE to test Drupal (PHP) sites but want to create more advanced tests with loops and such. I hear Selenium WebDriver is all the rage, but when I google it, all these terms pop up ...
0
votes
3answers
6k views
WebDriver: navigate to new browser window
How do I open a new browser window in Selenium WebDriver? I'm using C# client drivers, but if you know with any language, I should be able to find the correct class/method in C#. On Stack Overflow, ...
0
votes
2answers
649 views
FlexWebDriver does not work with YouTube under FireFox?
I want to make a script that plays all videos of YouTube channel and perform player settings and return status.
Execution of the following command does not create any error on java stacktrace but, ...
0
votes
2answers
1k views
How to open multiple browsers using webdriver?
I want to perform multiple browser testing:
While working on a project i needed to open multiple browsers simultaneously using Webdriver script.
Does anyone have experience in implementing this ?
0
votes
2answers
415 views
How to close pop up window in Selenium webdriver?
Below is my Selenium Webdriver script. When I run this script my website is opened but the popup window is also opened. How do I close this popup window so the script can continue? Take a look on ...
0
votes
1answer
422 views
SSO in Selemium web driver
I am trying to run selenium web driver(Firefox) test cases which will need a single sign on (web). Issue over here is i have to sign in manually with my OTP every time i tear down the test case. So i ...
0
votes
2answers
26 views
How to configure HtmlUnit Driver
I clearly missed a step trying to get HtmlUnit driver working with my app. I am getting the following exception.
OpenQA.Selenium.WebDriverException was unhandled
HResult=-2146233088
...
0
votes
1answer
37 views
Automating tests in EPOS systems
I have recently started working in a team that tests Retail applications such as EPOS (end point of sale - tills) I would like to automate this testing and would like to ask if anyone has any ...
0
votes
1answer
811 views
Unable to add Safari developer certificate in safari
Enviornment: Maz OSX
browser : safari
wedriver: 2.24.1
Created safari extension and safari developer certificate from apple developer site.
tried adding the certificate in safari keychain login .
As ...
0
votes
1answer
597 views
moveToElement function not working on IE when browser is minimized or not active using Selenium Webdriver
I'm trying to automate an application using Selenium Webdriver. The moveToElement function fails when the browser is minimized or not active (keep other app active). It works when I keep AUT browser ...
0
votes
2answers
390 views
Selenium WebDriver and Highchart testing
I know this question has been asked before on S.O. and other websites but I haven't found a definite answer -- most of them say its not easily done but I wanted to make sure that was the final ...
0
votes
1answer
148 views
Unable to locate element (Modal Dialogue Box)
I'm new to Webdriver. I need to automate a scenario on Mozilla,
System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.6.0_27'
I have a scenario to create a user and ...
0
votes
1answer
181 views
How to assert values on a page opened by a link on another page?
A link on page 1 opens a new page "receipt page". It contains only text values. I need to assert or verify values on the receipt page to ensure that this is the correct receipt.
After executing the ...
0
votes
1answer
796 views
How to retrieve INT value from TEXT box using Selenium/Webdriver Python binding?
Hi guys. I have this code
tcost = driver.find_element_by_id("MainContent_txtTotalCost").text
total = int(tcost)
driver.find_element_by_id("MainContent_txtVisa").send_keys(total/2)
...
0
votes
1answer
131 views
Selenium RC is out dated or still in the market after selenium 2.5 release?
I am writing a training course for Selenium automation testing. I am a bit confused comparing Selenium RC to Selenium2/Webdriver, since the latest release of Selenium2/Webdriver has all of the ...
0
votes
2answers
3k views
Running WebDriver tests in parallel using testng.xml
I'm trying to run WebDriver tests in parallel using testng.xml. I'm able to run testng tests in parallel by using parameter parallel="tests" but running with following paramters, "methods", "classes" ...
0
votes
1answer
28 views
How to include passed assertions in the Test NG test resul report
I use Selenium webdriver 2 with Test-NG. Test-NG gives nice report in case an assertion fails. Customer wishes to see the same report in case an assertion passes. Is it possible to do with default ...
0
votes
0answers
46 views
Can we write wrapper class for TestNG and Junit framework
I am writing a framework to run tests using Selenium webdriver which uses the TestNG framework. My requirement is to write a wrapper class to class TestNG framework, however I don't want to directly ...
0
votes
2answers
79 views
Testing Server/Workstation Hardware specs recommendations?
I wanted to reach out and get some opinions of Testing hardware. Should I use VMs or a stand-alone tower? If I use VMs, what would be some recommended hardware specs for the hosting server? If a ...
0
votes
0answers
426 views
Why can't my Selenium Grid VM node get parameters from/register to the hub?
I'm trying to set up a Selenium Grid node on a virtual machine. I am using VirtualBox for the VM and Jenkins (with VirtualBox plugin) to set up the grid. When I try to register the node, I get the ...
0
votes
1answer
159 views
check for value if found before adding it to my drop down list?
i have a drop down list that i add items to it,i ask the user to type in brand name and check first if that brand is already found on the drop down list if yes prints a message if no do some actions.
...
0
votes
0answers
277 views
Chrome driver not working in linux
i have followed following steps in the following link
[http://selftechy.com/2011/08/17/running-selenium-tests-with-chromedriver-on-linux][1]
unable to run tests on chrome browser in linux
getting ...
0
votes
1answer
247 views
SafariDriver is not responding after opening a URL
I am trying to run safaridriver to automate google page as given in https://code.google.com/p/selenium/wiki/SafariDriver
But what I can find is driver open the url and loads the home page, but after ...
0
votes
3answers
428 views
How to automate the action on a canvas object, when the canvas element has no name or ID in Selenium?
I want to automate the testing for a digital signature, which is a canvas element...Can anyone provide me with sample code, which could be used...I have tried, selenium.clickAt(), ...
0
votes
0answers
245 views
Custom error testing: How to find status code after page load/button click? [closed]
How to find status code after page load or button click for custom error testing?
After button click the page crashes. I want to check status code.
0
votes
1answer
512 views
How to access sitemap tree child node navigation link using selenium webdriver [closed]
The website I am trying to automate can be navigated by using sitemap tree.Now in order to access the child nodes from selenium I wrote the following code:
IWebElement menu = ...
-1
votes
3answers
419 views
Launching WebDriver from a servlet.java throws exception
I prepare a web interface that I could launch the WebDriver. I used servlet.java. I'm using JBoss application server, when I try to run it I receive the following exception
13:39:40,779 ERROR ...