selenium WebDriver not finding elements on a modal

I am using selenium webdriver not straight selenium-rcI have a modal login prompt that come up when you click the login button. Its just a simple div such as -> that has a few frame containers in it.I can get selenium to open the modal and selenium can find the modal cause I check to see if it is up so it does no the container is openenderedWebElement resultsDiv = (RenderedWebElement)driver.findElement(By.className("logincontentcontainer"));But it cannot find any controls on the modal such as text box or buttons. I have tried looking by name,...Read more

jmeter is opening many firefox session(threads) when integrated with selenium using jar approach

I am currently using the jar of my selenium test suite to integrate with JMeter but, the problem which I am facing is that JMeter is opening the Firefox session equals to the number of threads which I specify because of that, my system gets unresponsive. Does any one knows how to suppress multiple browser session to open on system without affecting the load testing?...Read more

How to press/click the button using Selenium if the button does not have the Id?

I have 2 buttons Cancel and Next button on the same page but it has only one id (see the below code). I wanted to press Next but every time it is identifying the cancel button only not Next button. How to resolve this issue?<td align="center"> <input type="button" id="cancelButton" value="Cancel" title="cancel" class="Submit_Button" style="background-color: rgb(0, 0, 160);"> <input type="submit" value="Next" title="next" class="Submit_Button"></td>...Read more

cruisecontrol - selenium rc with cruise control - testng error message - could not instantiate 'test'

I'm currently trying to set up cruisecontrol to run my selenium test suite. Everything works fine until I run the build, I got the following message:calling target(s) [execute-test] in build file C:\Project\src\build.xmlEntering C:\Project\src\build.xml...Exiting C:\Project\src\build.xml.task location="C:\Project\src\build.xml:30: " name="antcall" time="0 seconds"target name="execute-test" time="0 seconds"task location="C:\Project\src\build.xml:37: " name="testng" time="0 seconds"Executing 'C:\Program Files (x86)\Java\jdk1.6.0_06\jre\bin\java.e...Read more

Selenium RC htmlSuite error with IE https app

I am trying to use Selenium RC but i keep getting this error whenever i start the server."HTML suite exception seen:java.lang.RuntimeException: sessionId 7643 doesn't exist; perhaps this session was already stopped?"The command I use isjava -jar C:\selenium-remote-control-1.0.3\selenium-server-1.0.3\selenium-server.jar -multiwindow -htmlSuite "*iexplore" "" "C:\TEMP\Selenium Tests\TestSuite1.html" "C:\TEMP\Selenium Tests\results.html"However with the same command if I change *iexplore to *firefox then it works.I need to r...Read more

Running Selenium test suite with browser minimized

As part of our web application deployment I need to do basic smoke test after the deployment.I am using Selenium RC to run the smoke test automatically at the end of the How can I run the browser minimized (not poping up) while running the test suite.Below is the command used to run the test suitejava -jar D:\Selenium\RC\selenium-server-standalone-2.25.0.jar -htmlSuite *firefox C:\Users\abc\Desktop\testsuite.html results.html -firefoxProfileTemplate C:\Users\331036\AppData\Roaming\Mozilla\Firefox\profiles\imvteil2...Read more

selenium-server-standalone-2.20.0.jar -userExtensions command line argument throwing error

I was trying to execute selenium ide test suite with the following -jar selenium-server-standalone-2.20.0.jar -userExtensions: "C:\Selenium\user-extensions.js" -htmlSuite "*iexplore" "" "C:\Selenium\3" "C:\Selenium\results1.html"I observed that, without -userExtensions argument above command executes perfectly fine but when i added -userExtensions argument it threw following error,11:13:39.734 WARN - Embedded iexplore seems to have ended on its own (did we kill the real browser???)Tests failed, see result file ...Read more

How to Starting specific RC from selenium grid which is running through Hudson plugin?

My environment:Hudson -> with selenium grid plugin - Installed on linux machineHudson -> Having 4 machines ( 1 linux , 3 Windows ) as nodeTestCases -> MyTestCases are in TestNGIn Hudson server I checked the selenium console http://localhost:4444/console. It shows the node machines registered as RC with random port numbers. I run the test (test is configured as another job) . Test is running on any one of the machine / RC.But I want to execute tests on specific environment Machine 1 / Machine 3 . How can I achieve this? What and how do I have...Read more

selenium rc - SeleniumRc - Firefox fails to start

I am using Selenium-Rc 1.0.3 with Firefox 3.6.8. I started Selenium-Rc with -firefoxProfileTemplate option after creating a different Firefox profile for it. Each time I start the test and check the server-side log, I get this error;14:53:49.881 DEBUG [12] org.openqa.selenium.server.FrameGroupCommandQueueSet - got condition? : false14:53:49.881 DEBUG [12] org.openqa.selenium.server.FrameGroupCommandQueueSet - waiting for window 'null' local frame 'null' for 810 more secs15:07:20.273 DEBUG [12] org.openqa.selenium.server.FrameGroupCommandQueueS...Read more

Unexpected Error in Selenium

I am getting a Unexpected error in some of the Selenium RC code. Some time it works fine but sometimes it gives the Unexpected error and the scripts stop at that line only.Example:There is script for "Login" than it click on the link than fills some form than press some button.Sometimes its run till Login, sometimes till click of a link sometimes it executes full.Please give me some solution for this its urgent....Read more

Packaging/Hosting Selenium scripts

A certain test script of mine needs to be run by the "operations" team periodically. My script uses the following components -1. TestNG2. Excel (for the input specifications)3. Selenium RC, ofcourse.It currently runs in Eclipse. Is there a way I can package and host it in an, ideally, web accessible location, that folks in operations can click on and review results?Thanks....Read more

selenium rc - waitForElementPresent command fails in (Jenkins SeleniumHQ) but succeeds in SeleniumIDE

I am fighting an issue where my Selenium IDE Test succeeds when searching for specific elements on a page (Command=waitForElementPresent and Target=link=Related Sites) but that same command is failing when I run it from within Jenkins 'SeleniumHQ htmlSuite Run'.As an example; waitForElementPresent link=Related Sites Timed out after 30000msI don't want to give the impression that all 'waitForElementtPresent' commands are failing because some are succeeding. I just don't know if I'm dealing with a timing issue or I have to code the test ...Read more

selenium rc - Clicking on button which should execute Javascript does not bring result

I'm having problem, when clicking on button that should execute Javascript, does bring no result. Here is the part of the logs:20121206 10:02:35.859 : INFO : Simulating Mouse Over on element 'xpath=//button[contains(@class,"x-btn-text")]/.[contains(text(),"+ Add")]'20121206 10:02:35.904 : INFO : Clicking element 'xpath=//button[contains(@class,"x-btn-text")]/.[contains(text(),"+ Add")]'.20121206 10:02:56.231 : FAIL : Element 'xpath=//input[@name="type"]' did not appear in 20 secondsHere is the screenshot, how it looks like, when it doesn't w...Read more