Questions tagged [selenium]

Selenium is an open source framework for testing web applications. Use for questions about testing with Selenium 1, Selenium IDE, and to a lesser extent, Selenium WebDriver.

Selenium was developed as an extension for to allow testing of web applications. It is open source and may be downloaded from the project's website.

Selenium offers record and playback through a Firefox Integrated Development Environment (IDE). For automated test cases a variety of languages is supported through multiple Application Programming Interfaces (API's). Browser specific drivers allow for more simple command based browser control. Tests can be run parallel or remotely.

In addition, many popular tools offer Selenium integration.

Related tags are and .

1357 questions
18
votes
7 answers

How do I keep Selenium test cases DRY?

I'm somewhat new to Selenium and I have a problem. Whenever I write a test case, that test case starts with logging in, and it's the same four steps every time. If I change the password for that account, I'll have to change it individually in every…
Jason Swett
  • 281
  • 2
  • 5
14
votes
9 answers

Handling browser level authentication using Selenium

I am automating an application which contains browser level authentication. When I open the application, the browser performs basic authentication, i.e. it prompts for a username and password. How can I handle this scenario using Selenium?
saikrishna
  • 644
  • 3
  • 9
  • 17
10
votes
5 answers

How to scroll to bottom of page in Selenium IDE?

I'm not a QA person, just a front end developer. I'm using the Selenium IDE plugin for the Firefox browser to make some simple tests. The site I'm making the tests for uses ajax to bring in new content via infinite scroll. So each time the user…
JakeRow123
  • 203
  • 1
  • 2
  • 4
7
votes
4 answers

Selenium how to identify an object by its type?

In Selenium is it possible to identify the object by its type? e.g. Here can I identity the above element by its type of "text"?
Dev Perera
  • 71
  • 1
  • 1
  • 6
6
votes
2 answers

Firefox browser launches blank page while running tests via Selenium

I have created a simple test that launches browser and calls a URL. This works fine in IE but when I select Firefox (FF) browser it opens a blank page. See the code snippet below. The issue is similar to this post that concludes one has to change…
Tahir Shabbir
  • 115
  • 1
  • 2
  • 9
6
votes
2 answers

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 IDE Selenium Server Selenium Remote…
persepolis
  • 441
  • 5
  • 11
6
votes
1 answer

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 (which only allows storeText, not storeValue) from a different page. Right now the data is being stored correctly, but I think the assertValue…
JustBeingHelpful
  • 1,243
  • 5
  • 18
  • 25
5
votes
1 answer

Starting selenium always spawns a second window

I am not sure if this is the right place for asking this. Any time I start a selenium test I get two windows. One with the command which are right now been performed and the second one with the test itself. My problem is that in this second window…
Luixv
  • 383
  • 1
  • 4
  • 10
5
votes
1 answer

Selenium testing using checksums of html

I am new at selenium testing and am writing a bunch of tests for a webpage that relies heavily on javascript user interaction. At first I wrote a lot of assertions of the style If I press button A then assert number of visible rows = x, …
Peter
  • 151
  • 6
5
votes
1 answer

Selenium with Ruby - getting an error SeleniumRubyWindowsTest.rb:1:in `require': no such file to load

SeleniumRubyWindowsTest.rb:1:in `require': no such file to load -- selenium (Loa dError) from SeleniumRubyWindowsTest.rb:1 I followed the steps from this blog -…
Letstestthisfast
  • 115
  • 1
  • 1
  • 6
5
votes
2 answers

Selenium - getting error "cannot get automation extension"

when i use object.manage().window().maximize(); method the window is not maximizing . The following error shown Starting ChromeDriver 2.29.461591 (62ebf098771772160f391d75e589dc567915b233) on port 24144 Only local connections are allowed. Apr 29,…
anusha raju
  • 127
  • 2
  • 9
5
votes
1 answer

Element not clickable after login page reload with pagefactory

I am trying to create a simple Selenium script to login to a page directly proceeded by logging out from the page. I am using Selenium with C# and PageFactory to reach the elements on the webpage. I am able to login to the page, but unable to…
Jakob
  • 67
  • 1
  • 8
5
votes
3 answers

How would you answer this interview question?

In a recent interview I was asked the following question on a white board: What is the name of this format “.//[@id=\'nosession\']/form/div[1]/input”? I literally had no idea how to answer this, because I have never seen its format before. I know…
DEnumber50
  • 1,180
  • 4
  • 16
  • 33
5
votes
2 answers

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 staging sites are going to be different - and a…
persepolis
  • 441
  • 5
  • 11
4
votes
2 answers

Selenium Server and Windows Server compatibility

I want to run Selenium Server on a recent version of Windows Server so as to be able to test IE browsers as well as Firefox, Chrome, etc. My choices for Windows Server are 2008 R2, 2008, or 2003. Are there any issues anyone is aware of with running…
rlandster
  • 191
  • 2
  • 7
1
2 3 4 5 6 7