Questions tagged [selenium2]

Use for questions about Selenium 2. Selenium 2 is the second major release of Selenium, an open source framework for testing web applications. A major difference between Selenium 1 and Selenium 2 is the latter's use of WebDriver.

Selenium is a portable software testing framework for web applications. Selenium provides a record/playback tool for authoring tests without learning a test scripting language. Selenium provides a test domain specific language (DSL) to write tests in a number of popular programming languages, including Java, C#, Ruby, Groovy, Python, PHP, and Perl. Test playback is possible in most modern web browsers. Selenium deploys on Windows, Linux, and Macintosh platforms.

Selenium was originally developed by Jason Huggins, who was later joined by other programmers and testers at ThoughtWorks. It is open source software, released under the Apache 2.0 license and can be downloaded and used without charge.

Selenium IDE

Selenium IDE is a complete integrated development environment (IDE) for Selenium tests. It is implemented as a extension, and allows recording, editing, and debugging tests. It was previously known as Selenium Recorder. Selenium-IDE was originally created by Shinya Kasatani and donated to the Selenium project in 2006.

References

509 questions
17
votes
4 answers

Where can I find information on getting started with Selenium 2?

Some background. I am a long time WatiN coder, and have been since I first looked at Selenium a few versions ago, and decided that it didn't meet my needs, and then went with WatiN. I now want to switch to selenium 2 (selenium web-driver). What are…
Bruce McLeod
  • 9,750
  • 5
  • 33
  • 73
16
votes
5 answers

How do you wait for jQuery Ajax calls to complete in Selenium 2

I use Selenium 2 in C# to automate testing of our web sites. When building non-Ajax functionality, using webDriver.FindElement(By.Id("element-id")) to find elements on a page works fine, but when doing jQuery Ajax calls this doesn't work because it…
DownChapel
  • 263
  • 1
  • 2
  • 5
10
votes
1 answer

Extracting hidden text with Selenium

I'm trying to extract a certain message from my app. The text starts up as visible and then changes to style= "visibility: hidden" the visibility period is rather short, and I was wondering how can I extract this text using Selenium after it…
Gil_G
  • 103
  • 1
  • 1
  • 6
6
votes
4 answers

How can i automate using selenium to check if an element is present in viewport

My scenario is to make sure that my search bar is not sticky. For this I am scrolling to middle of the page. Now I need to check that my search bar is not visible in my viewport. isDisplayed method is verifying for the element in whole page. so I…
Rupa
  • 61
  • 1
  • 1
  • 2
6
votes
1 answer

I Can't Shut Down My Selenium Instance (C# WebDriver, Gallio). I think I have a bug...

So, I have some code set up via Gallio, to start the selenium server before each test session, and shut it down when the session finishes (all tests have run). It starts the server fine, but I can't seem to get it to stop the server. I'm pretty sure…
Greg Gauthier
  • 323
  • 1
  • 12
5
votes
2 answers

Testing native application of Android and iOS

I am searching for an open source automation tool for all mobile platforms (Android, iOS).I have experience in using Selenium in all supported desktop browsers. I would like to know whether the automation of native application is supported by…
Pramod
  • 583
  • 1
  • 5
  • 18
5
votes
2 answers

How can I run my Selenium 1 FF Profile in Selenium 2 C#?

So right now to run my Selenium 1 tests I use a custom Firefox Profile that sets when I launch my Selenium Server. Is there a way to properly set this profile to run in Selenium 2? I've tried setting the FF profile using new FirefoxProfile("path");…
James
  • 153
  • 5
5
votes
3 answers

Should Selenium 2 WebDriver tests of CRUD operations be self-contained and independent?

I am currently writing Selenium 2 WebDriver tests for an ASP.NET MVC 2 website (the tests are written in C# and run with NUnit as the testrunner). I'm familiar with unit testing (and have written unit tests for this project as well). Therefore, I…
Blobinator
  • 153
  • 3
3
votes
1 answer

How to capture the errors handling in Selenium WebDriver

i have created a framework where all the WebDriver API resides and in other project I am just calling those test cases I have created but the problem is that if anything goes wrong in the test case I would like to capture the error but instead…
Nick Kahn
  • 181
  • 1
  • 2
  • 4
3
votes
3 answers

How to determine whether a WebElement is a child of another WebElement?

Is there an easy way to find a child element from another element? We have a set of containers which hold many modules, and I'd like to ensure that they are displaying in their proper locations. The API only seems to have the following…
Scott
  • 397
  • 4
  • 15
2
votes
1 answer

Selenium 2 opens Google Chrome but doesn't load webpages

When I execute a test calling google chrome (*googlechrome), Selenium Wedriver opens a browser and starts to launch the test cases but it doesn't load anything. I had the same problem with Firefox and IE but I solved it opening the proxy's/adding…
2
votes
4 answers

How to configure selenium Web driver into Eclipse

I want to Integrate the selenium Web driver test into eclipse, but i am really stuck at this point. Can any one help me at this point.
vinod guneja
  • 111
  • 2
  • 3
  • 7
2
votes
1 answer

Click() command in Webdriver API not working

I have tested a scenario where I have to enter user credentials and click on login button using Selenium2 (version…
saikrishna
  • 644
  • 3
  • 9
  • 17
1
vote
1 answer

Responsive UI tools for automation testing with C# selenium

We are moving our applications to responsive UI [C#]. Please suggest how best to use automated testing tools [Selenium] on a responsive UI.
Kiran
  • 11
  • 1
1
vote
4 answers

IE 11 gives Unable to find element with CSS selector or XPath or XPath expression cannot be evaluated or does notresult in a WebElement

I am getting below error messages : IE 11 gives intermittently error like Unable to find the element with CSS selector or XPath or XPath expression cannot be evaluated or does not result in a WebElement. Point is i have set all the internet zones…
Ranjan Gupta
  • 383
  • 5
  • 6
  • 20
1
2