Selenium is an open source framework for testing web applications.

learn more… | top users | synonyms

4
votes
2answers
860 views

What's the best approach to asserting values with automation testing test cases from complex business logic?

Suppose you have automation tests (my example uses Selenium) to assert complex business logic for a web site. What is the best way to assert that thousands of different test cases are outputting the ...
-5
votes
2answers
813 views

How to schedule a Selenium application to run periodically?

I am working on a Selenium application. As per our requirement it must run every 5 minutes. How can I achieve this?
4
votes
1answer
2k views

Send keys to no element in particular

The way I know of sending keys using the WebDriver Python bindings is as follows: element.send_keys(value) How can I send a key (specifically the Escape key) to no element in particular, just to ...
3
votes
2answers
3k views

Drag-and-drop failing on complex jQuery UI

Using the Python bindings of Selenium Webdriver, I cannot get drag-and-drop working on a "complex" jQuery UI example with ActionChains.drag_and_drop(). (It does work on a simple example.) My testing ...
3
votes
9answers
5k 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 ...
2
votes
1answer
717 views

Is there a way to disable a JavaScript function of the tested application from Selenium WebDriver automation project?

I need to disable a particular JavaScript function of the main application for which I am creating automated tests using Selenium WebDriver. Is there a way to do this?
6
votes
4answers
4k views

What are recommended scenarios to use Selenium Tests for?

My company is introducing BDD into our projects. Our customers have differents processes-cases wich also may fork at specific points. It is a mostly long and tedious work to test each case and each ...
4
votes
4answers
3k views

Running Selenium tests as a scheduled task

I'm trying to run a Selenium WebDriver script written in Python on a Windows 7 64-bit box as a scheduled task. The test works pretty well when run as a batch file from the command prompt, but when ...
4
votes
1answer
278 views

Selenium Select option from suggest box

I must test an application that you type 3 letters in a text box and pick an option from a generated list. How can I do this with Selenium IDE?
11
votes
4answers
8k views

What are the best beginner tutorials for Selenium IDE

I have gone through the possible duplicate question,it was related to selenium webdriver . I am new to Selenium IDE tool. Could you please suggest me some best PDFs and sites with Selenium tutorials ...
3
votes
2answers
2k views

How to get XPath of a list element generated by AJAX?

When I type a keyword ("Documents 1.xml") driver.findElement(By.id("documentSelect_enter")).sendKeys("Documents 1.xml"); in this field: <input id="documentSelect_enter" type="text" ...
5
votes
3answers
6k views

Drag and drop using Selenium IDE

How do I drag and drop an object from one grid to another in the same page using Selenium IDE. This is a web page, and it is designed in ExtJS. Please help me out doing this using the IDE.
4
votes
3answers
856 views

Does the latest version of QTP have something similar to Selenium Grid?

Does anyone know whether QTP supports parallel test execution on multiple browsers now? I am looking for something similar to Selenium Grid.
4
votes
2answers
244 views

Test isolation and automation

We are using Selenium webservices for our automated functional testing . I have a test which tests creation of some objects. If I run the same test again, I need to make sure that each test has a ...
3
votes
2answers
816 views

How to use TestNG to create multi-user tests scenarios?

What I need to do is to create UI test cases for our application and we have decided to use Selenium with TestNG (we're still open to other options if there are considerable advantages). The tests we ...
2
votes
4answers
5k views

I face a problem while opening Firefox with Selenium script

I face a problem while running Selenium scripts. I try to open Firefox using the following command: import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; public ...
1
vote
1answer
3k 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 { ...
1
vote
1answer
636 views

Some Selenium tests fail on server but pass locally

i'd like to know if anyone faced the following problem with Selenium tests run: when scripts are running locally all tests pass, but when they are ran on server for the same site some of tests fail ...
2
votes
4answers
2k views

Unable to get Selenium Web Driver running with Java

I tried running the following code to start running Selenium WebDriver on Java, using the following code import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import ...
2
votes
1answer
968 views

Web Driver (Selinium Version)

How to add the webdrivers of C# in VS 2005, I was tried the same but the "OpenQA" not found error is shown, Is there is any version problem?
4
votes
3answers
10k views

Can't click this checkbox using WebDriver / Selenium — ElementNotVisibleException

See attached image. The element is visible to me as a user, but I keep getting the ElementNotVisibleException error. It seems to locate the element via multiple methods, but the .click() fails. Is it ...
4
votes
1answer
700 views

Getting nose test runner to execute a test against multiple browsers / configurations?

Surely someone else has run into this problem. I'm trying to figure out how to loop through Firefox, Chrome, and IE in conjunction with nose. Right now I have: "setup.cfg" file that specifies ...
8
votes
3answers
9k views

How do I start the Internet Explorer WebDriver for Selenium in Python?

I had a devil of a time figuring this out. It wasn't documented on the web anywhere I could find. I ended up reading the webdriver init.py to find out.
1
vote
1answer
314 views

Pretty / GUI formatting for the nosetests.xml xUnit report?

Is there a simple tool that will generate pie charts or otherwise "pretty", graphical output based on the .xml file that nose outputs with the --with-xunit switch? I tried googling around for one but ...
7
votes
3answers
15k views

Selenium: reuse existing browser session, instead of opening new windows?

This has been asked a million times on the web, but there's no clear cut answer. I tried "-browserSessionReuse" today without any luck; my tests keep spawning new browser windows. ...
5
votes
4answers
3k views

Do you verify presence of text in your automated tests?

While automating multi locale application I had to stop using - assertTrue(selenium.isTextPresent("success text message")); where success text message would change for each locale. to - ...
4
votes
4answers
20k views

How do I close the browser window at the end of a Selenium test?

I have googled for the answer, but the ".stop()" so frequently mentioned doesn't work for me. The Chrome window the test was running in remains open. def test_getResults(self): sel = ...
4
votes
2answers
432 views

Logging with Selenium Server?

Right now I have several Python Selenium scripts in which I am manually writing results to a text file. Is there a more standardized / centralized way I can log my results without much difficulty? I ...
2
votes
2answers
513 views

Running Selenium as a service with multiple users

I want to run Selenium on a Windows server and have multiple testers connect to it. If two users connect at the same time and both ask to run a test against a browser, will Selenium start two ...
2
votes
2answers
10k views

Selenium - Find exact text match using CSS locators

According to A way to match on text using CSS locators, we should be able to use "^$" to find exact text match using CSS locators. But with div class="item"><div ...
8
votes
1answer
696 views

Why should I move to Selenium 2 from Selenium 1?

What are the real benefits of using Selenium 2 instead of Selenium 1? I've read several posts related to new version but didn't get what are the advantages of Selenium 2.
6
votes
1answer
7k views

What's the difference between Selenium IDE, RC, 2, and WebDriver?

Selenium seems to have a lot of different components and the website does not explain them very well and I'm still a bit confused which is which. What's the difference or purpose between: Selenium ...
3
votes
2answers
2k views

Selenium error in NUnit C#

I got the following error when I try to run this test: TheNewTest : FailedSelenium.SeleniumException : Timed out after 5000ms at Selenium.HttpCommandProcessor.DoCommand(String command, String[] ...
4
votes
1answer
3k views

Need to assertValue of text input field based on data coming from a table td inner HTML (using storeText to store variable) in Selenium IDE script

In Selenium IDE, I need to call the command assertValue of an input field on data coming from a table <td> (which only allows storeText, not storeValue) from a different page. Right now the ...
-1
votes
1answer
1k views

Open SSL / Https url using selenium-rc

Please suggest me, how to open the SSL urls using selenium-rc? I face trouble while opening any https website through selenium RC in IE and FF browser both, as they prompt for accept the SSL ...
6
votes
1answer
6k views

How to use Selenium's PageFactory annotations with dynamic loaded elements?

I'm rewriting some Selenium tests according to the page object design pattern taking advantage of Seleniums' annotations. My problem is that I have some html select elements whose option elements are ...
6
votes
1answer
636 views

PageObjects: Aggregation/Composition vs Inheritance for nested components

I need to refactor my Selenium tests, and was wondering what the best design solution would be for a portal with a hierarchical page organization. We are using tiles, and we have defined a baselayout ...
7
votes
1answer
2k views

Is Selenium's LoadableComponent a good solution as test design pattern?

I need to refactor my Selenium tests, and come across their LoadableComponent wiki page. I began trying to use it, though I couldn't really understand what is it good for. I took a look at their ...
2
votes
1answer
1k views

How to instantiate a .NET FirefoxDriver when FF is installed in non-default location?

My Firefox 5 is installed not at the default location. So, I tried with the following to create a FirefoxDriver: private IWebDriver driver; [SetUp] public void SetupTest() { var ffBinary = new ...
3
votes
1answer
10k views

How to fix “Permission denied to access property 'document'”?

I posted it on stackoverflow.com. Someone suggested me to post it here... While trying to automate testing with selenium rc I ran into this problem. I was just following the steps in the tutorials. ...
2
votes
1answer
4k views

Flex Test Automation Tools Questions

Below tools I figured out for Flex Testing FlexMonkium - Selenium IDE Addon FlexMonkey - http://www.gorillalogic.com/flexmonkey FlexPilot - https://github.com/mde/flex-pilot/wiki FlexUISelenium - ...
4
votes
1answer
691 views

Selenium-2 Webdriver browser support

I have a question about selenium2 (webdriver). As selenium-2 supports following 4 types of web drivers.. 1-IE 2-firefox 3-chrome 4-htmlunit Is there any way to use any other webdriver apart ...
3
votes
2answers
3k views

Selenium IDE clickAndWait command not working for unique LinkButton control

How can I automate clicking this anchor tag with Selenium IDE (in Mozilla Firefox of course)? I tried two different approaches, and neither one worked. Would it matter that this is in a popup window? ...
3
votes
2answers
731 views

Testing a live and staging site with Selenium IDE

I would like to run a test that stores the position of key page elements on a live site, then compares it to a staging site to ensure the two match. The main issue is that the URLs for the live and ...
3
votes
1answer
660 views

Selenium IDE has stopped recognising pop-up windows

I'm relatively new to Selenium and since the update to 1.0.12, when I run my tests, each case with a selectWindow command fails. If I run these steps seperately, by clicking individually, it passes, ...
3
votes
1answer
962 views

Safari test browser doesn't launch with Selenium RC

I've been dabbling with Selenium to do some testing on a site and I'm trying to set up RC so I can run tests in multiple browsers. I can run a simple test I put together in both Chrome and Firefox, ...
22
votes
4answers
34k views

What is the correct way to select an <option> using Selenium's Python WebDriver

I would like to select an <option> child of a <select> using the Python WebDriver. I have a reference to the option WebElement I wish to select and have tried select() and click() methods ...
7
votes
4answers
352 views

How to eliminate \ reduce invalid failures in automation due to GUI changes?

I am into the automation of a web application using Selenium. I write test cases without hard-coding anything in the test cases. There were many invalid failures in the run due to GUI changes such as ...
10
votes
3answers
1k views

Is jQuery faster than CSS/Xpath selectors for IE 8.0 in Selenium1?

I am planning to run my existing Selenium 1.x tests in IE 8.0. After checking few blogs and reading this, I tried to run my tests using jQuery locators with the method mentioned here. My tests uses ...
3
votes
1answer
375 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 ...