Selenium is an open source framework for testing web applications.

learn more… | top users | synonyms

1
vote
1answer
2k 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
554 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
3answers
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
877 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
9k 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
652 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
7k 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
296 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 ...
6
votes
3answers
13k 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 - ...
3
votes
4answers
16k 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
403 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
490 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
8k 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
691 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
2k 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
998 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
596 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
681 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
722 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
649 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
934 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, ...
19
votes
4answers
30k 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
327 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
982 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
371 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 ...
1
vote
1answer
4k views

Question: C# Selenium: Read rows from html table until the last row is found, and Store in array

The following snapshot is what I see when I do a view of class and Ids in using IE Developer tool. It consists of a table and inside the table there are links. I need to read all the link names, and ...
5
votes
2answers
5k views

Solving “SeleneseTestCase is deprecated” issue

I'm working through the "Selenium Simplified" book just to really gain a solid understanding of Selenium and Java. I know the basics of Java, but this one is frustrating me. I must be missing some ...
2
votes
2answers
840 views

Selenium: Ajax Testing

Please brief me about the Ajax testing with selenium RC. As in Ajax element does not reflect on the view-source, but using firebug we can see the changes in HTML source code. There are two methods ...
1
vote
1answer
652 views

Check an element through Selenium RC

Please suggest what logic should be used here through selenium RC. Action Check Close/Remove button. Expected In the upper-right corner of the app is a Close/Remove button. This button only ...
2
votes
1answer
4k views

Selenium:With selelenium RC can we scroll the scrollbar up or down of browser.

Can we use Selenium RC to move the browser's scroll bar up or down?
2
votes
2answers
435 views

Andriod Selenium testing by Python - connecting problem

I'm trying to get the Selenium Android client to run in my emulator: Install SDK Run emulator Install android-server-2.0rc1.apk in the emulator and devices Forward the port by adb forward tcp:8080 ...
1
vote
1answer
1k views

Selenium - Stopping server

Selenium server (ver. 2) has stopped working for me for unknown reasons (see Selenium (RC) stops working...). I'd like to stop Selenium sever and restart it. When I enter ...
4
votes
1answer
566 views

Selenium (RC) hangs when started from Python test

Fairly new to Selenium (but loving it). I'm running a single test in Python on Selenium RC. I've been running it multiple times a day for about 3 weeks. Now when I try to run it, it executes all the ...
12
votes
3answers
8k views

Is there a captureNetworkTraffic implementation in Selenium 2 via webdriver?

If yes, how is it called, or where can I find more info about it? (I'm not talking about using WebDriverBackend.) If not, what alternatives are there?
8
votes
2answers
4k views

Selenium:how to delete single characters from a textbox

Using Selenium how to delete single characters from a textbox using Selenium? I have to delete the last 2 characters from text box. Ex.ABCD to AB
3
votes
2answers
5k views

Selenium: How to set x and y coordinate position

I want to use the Selenium method mouseMoveAt(java.lang.String locator,java.lang.String coordString). How do I set coordString? For example, if coordString is the x,y position (10,20), what does that ...
4
votes
3answers
2k views

Creating test cases for site registration using Selenium IDE

I'd like to know how you can automate the registration process for a site that requires a unique email address or username each time, using Selenium IDE. My only thought would be to insert an ...
3
votes
4answers
5k views

Running Selenium test on TFS

I am currently working on implementing UI tests of .NET web application using Selenium RC. The tests are now coming together and I am beginning to look at how these will be incorporated into TFS. ...
1
vote
2answers
184 views

Selenium Selenium.Core v1.1.4322 - XPath not working

I've got the following XPath expression's working in firebug, that returns the correct element(s): $x("(//input[@class='intervalInput timeInput'])") returns two elements. ...
6
votes
3answers
2k views

What aspects normally differ when developing automation framework in QTP VS Selenium

I have worked in Selenium. For developing Web UI Functional Test automation suite I considered below aspects Using TestNG Framework Using Page Object pattern XML based configuration Logging of ...
5
votes
2answers
532 views

Testing Java or Silverlight plugins embedded in a page using Selenium?

We have a product that defaults to a Java plugin to upload files, and then Silverlight after that if Java's not installed. There is a third fallback of a HTML 4 + JavaScript uploader, but I'd like to ...