selenium-rc

Issue with Selenium RC with safari4 or safari5 on Mac

I'm using Selenium RC with Safari4 on Windows. What my tests do : launch Safari browser, fill 2 fields click on a button wait for the page is loaded verify that some words are present on the page* *Instruction can't be ok because it is executed before that the page is loaded and tests get failed. Following is the part of code where ...

why selenium.contextMenu() is not working in IE7?

Hi, I have a problem, selenium.contextMenu() is working for firefox. But it is not working IE7.Can any body tell me why? and is there any alternate solution for right click? ...

How to save and restore all cookies with Selenium RC?

I'm running complex tests that create many cookies for different sections of my web site. Occasionally I have to restart the browser in the middle a long test and since the Selenium server doesn't modify the base Firefox profile, the cookies evaporate. Is there any way I can save all of the cookies to a Python variable before terminati...

How to iterate through DOM elements that match a css class using xpath?

I'm processing an HTML page with a variable number of p elements with a css class "myclass", using Python + Selenium RC. When I try to select each node with this xpath: //p[@class='myclass'][n] (with n a natural number) I get only the first p element with this css class for every n, unlike the situation if I iterate through selectin...

selenium-rc Unable to connect to remote server

Hi, I've run into a weird problem yesterday. I am using selenium-rc along with C# to write test scripts. For the first time, yesterday, I started getting the error "Unable to connect to remote server". It seems to occur randomly at any part of code. e.g. The error is triggered at the statement selenium.setspeed(2000);. In another script...

Could not start Selenium session: Failed to start new browser session: Error while launching browser

I initialize the selenium like public void setUp() throws Exception { setUp("http://localhost/", "*firefox"); } and I write my test in the method like public void testUntitled() throws Exception { boo(); foo(); } But it gives error like java.lang.RuntimeException: Could not start Selenium session: Failed to start...

How to resume a Selenium RC test after a computer sleep?

When I put my Mac to sleep while an interactive Python session with a selenium instance and corresponding browser is running, after waking up the browser (or selenium server?) are no longer responding to any commands from the Python shell. This forces me to restart the browser, losing the state of my test. Is there a way to overcome th...

from selenium test scripts back to selenese

I've got a bunch of test scripts written using Test::WWW::Selenium (but the fact that I used perl is inconsequential, any language selenium supports probably has the problem I describe). When the cogs in my application come loose I'd like to replay the test using the Selenium IDE, letting me have full control over the action But I'm no...

Automation of DOH Robot tests interrumped by Pop-up message

In order to automate DOH tests during our build process, I use Selenium RC to launch different browsers (IE and Firefox) on a server placed on a different domain than the build machine. Each browser is directed to our runTests.html in order to start DOH. Sometimes, when a test that uses doh.robot starts, the following message is shown: ...

Excluding Selenium-server URL in JMeter Proxy Server

Hi, I'm currently trying to get JMeter to record the steps my selenium tests so I can perform load testing with the same tests. The steps are recorded fine but my problem is that its also recording the steps performed in the "selenium-server" window (ie. the extra windows that pop up when selenium runs). I believe if I add something li...

Selenimum Using Selenium to locate an an attribute and click the dynamic link associated with the image

I am new to Selenium and coding. What I am trying to do is click a dynamic link. Here is the scenario. I have to find a dynamic link in a div that has multiple links. The link I want to click has the myimage attribute and the link will always be different. There can be N-links in the div and some of the links won't have the myimag...

Selenium RC : Button is not clicked but test passes

Hi all I have a script which enters some data in the page and click save button. Here I used HTML component id for save button. selenium.click("StudentID:saveData"); I even provided proper wait condition and also tried with X path locator. The test passes. It doesn't throw any error message but the button is not clicked and the data...

capturing request/response in selenium rc java

i tried below code ,but is not returning every request/response. i want request/response for every action called. say after login,click button,link (i want .do done fro all,as i see in firebug?!) selenium.start("captureNetworkTraffic=true"); String html = selenium.captureNetworkTraffic("json"); ...

Selenium 2 + firefox getting System.NotSupportedException

Hi, I am trying out WebDriverBacked selenium. I used the below code. But, it gives me "System.NotSupportedException : command" exception. IWebDriver driver= new FirefoxDriver(); Selenium.WebDriverBackedSelenium selenium= new WebDriverBackedSelenium(driver,myUrl); selenium.Type(locator,value); Here the command gets replaced by any sele...

Selenium assertText for all text in a table?

I need to assert that each row in table contains a certain text string, either through selenium IDE or a Java test case. What's the best way to do this? Here's my current test: Command assertText Target //table[@id='myTable']//tbody//tr[not(@style)]/td[1] Value myValue I need to test the first column of every row, but this...

Selenium test in Internet Explorer always times out?

I'm trying to run a basic test in Internet Explorer via Selenium-RC/PHPUnit, and it always returns with # phpunit c:\googletest.php PHPUnit 3.4.15 by Sebastian Bergmann. E Time: 35 seconds, Memory: 4.75Mb There was 1 error: 1) Example::testMyTestCase PHPUnit_Framework_Exception: Response from Selenium RC server for testComplete() ....

selenium rc googlechrome not validating session

Hi, When I try to login to googlechrome to the site http://www.pb.com/addressrightnow through the test script the login never works, chrome browser 5.0 is never able to validate session. But the same works when I manually launch chrome and login. The only difference is I start the selenium server from the test script. The same works per...

selenium rc upload file

can i upload file using selenium rc in IE ...

Testing mutiple AutoComplete using selenium RC

Hi I am using JQuery's ajax autocomplete in my application. And mutliple field's are enabled with autocomplete within a single page ,also I want to cover all the autocomplete in a single test case. The problem am facing is the 1st autocomplete is working fine. For all other field the autocomplete list has come but mousueOver is not wor...

Does TestNG guarantee @BeforeSuite methods are executed before @BeforeTest methods?

BACKGROUND: My goal is to code a TestNG-Selenium system that runs self-contained (no strings to maven or ant plugins; just java). It must allow for test cases to accept parameters including the browser and the domain url. When the TestRunner instantiates these test cases, the browser and domain are used to get a Selenium object to perfor...