selenium-rc

Spawning multiple browsers from Selenium RC utilizing Python

I've been trying to develop an automated test case solution using Selenium RC and Python and after lengthy testing I've hit a pretty hard block in the road, so to speak. I have three files: unit.py, case1.py, and case1m.py unit.py configures instances of case1m.py with a browser and a port, then runs the test by sending the case1m ins...

How to test jquery ajax tabs with selenium?

Hello world! I'm testing a django app with selenium, and one of my pages uses the jquery ui tabs element. One of the tabs contains a simple table listing some users, and is loaded via ajax. When using the app, the tab works just fine, but when automating the test with selenium, the tab doesn't appear to load it's content! I'm writing th...

Setting Selenium RC speed via command line

Hi, I'm using SeleniumRC to run some selense tests via command line. This works mostly fine, but some tests are failing because the execution speed is too high. How can I set the test runner's default execution speed? The command I am using the run the test suite is java -jar selenium-rc\selenium-server-1.0.3\selenium-server.ja...

How can i programmatically control the starting and stopping of Selenium RC

At the moment i use selenium using HTMLSuite. The command i use to start the server and run the a testsuite is shown below java -jar selenium-server.jar -htmlsuite "*iexplore" "http://localhost:8080" "C:\test\testsuite" "C:\test\result_%Yr%%Mth%%Day%.html" I have some testsuites which have some sql scripts which need to be run first. ...

Handle Selenium RC open method failure (404)

I have a loop that checks for the existence of urls. If one does not exist Selenium exits: *XHR ERROR: URL = http://localhost/pages/156.php Response_Code = 404 Error_Message = Not Found.* If i catch the exception: try { $this->selenium->open($url); } catch(PHPUnit_Framework_Exception $e) { echo "caught\n"; } Anything i do afterw...

Is there a way to freeeze Selenium-RC execution on error?

My Google-fu is weak and so I turn to the hive mind... I have a Selenium script I originally developed in the IDE, which I am now trying to adapt to run on IE8 via Selenium-RC. I'm trying to debug an error where an element is not being found. The problem is that as soon as the error occurs, the script exits and RC closes the browser. ...

How do I test which element has the focus in Selenium RC?

the question like the title ...

Simulate TAB keypress event in Selenium RC

I need to simulate a tab keypress in Selenium RC, using the Java API. I do this after having entered some text using: selenium.type(input, "mytext"); I've tried 3 alternatives to get the tab working: selenium.keyPress(input, "\\9"); and: selenium.focus(input); selenium.keyPressNative("09"); and even: selenium.getEval("var evt ...

How do I locate a table row based on the text of a cell in Selenium?

How do I locate a table row based on table cell data using the following HTML snippet: <table id="BetaCustomersTable> <s:iterator> <tr> <td class="userTabletd"> <s:property value="email" /> </td> </tr> </s:iterator> </table> ...

selenium.keypressnative doesn't seem to work

Hi, I am trying to simulate a keypress for enter key in selenium using the below statement: Selenium.KeyPressNative("10"); It works on my colleague's PC, but, doesn't seem to be executed in my machine. It appears that selenium skips this command. Please help. Thanks and Regards, Vamyip ...

selenium a strange problem.

Hi, I've been using selenium-rc for c# since past 10 days, and I'm getting a strange problem with it. Whatever scripts I write, won't work on my colleagues PC, and vice-versa. Also, sometimes, the code which runs well in one test case, seems to fail in another test case, while both are being run on the same computer. e.g. 1. when I wri...

Selenium-RC Unable to handle Confirmation box.

Hi, I am testing a web app where i delete an item from a list. Upon clicking on delete, the app asks for confirmation. Selenium IDE detects it as a confirmation box. When I run the code thro' the RC (C#), it even catches the confirmation-box, executes the click of delete button on that confirmation box, but, the confirmation box is neve...

Running JS functions on Selenium RC .Net

I have a index.html file which includes scripts.js in scripts.js: function Add(arg1, arg2) { if(typeof(arg1) == 'string') arg1 = parseInt(arg1); if(typeof(arg2) == 'string') arg2 = parseInt(arg2); return arg1 + arg2; } in my C# code: [Test] public void Tescik() { Assert.AreEqual(sel.GetEval(@"this.browserbot.getUserWindow...

How to close or minimize browser windows with Selenium RC?

Every time I launch a Firefox instance via Selenium RC I get 3 windows that I don't need appearing: the add-ons windows notifying me that "3 new add-ons have been installed" (since I'm using a custom profile for Selenium to which it evidently adds the DocumentReadyState, KillFF, and Selenium RC Runner add-ons) the http://localhost:4444...

problem in using selenium-maven-plugin

hi, I'm using selenium-maven-plugin. http://mojo.codehaus.org/selenium-maven-plugin/ I have tried at headless linux with xvfb goal. Below execution progress... xvfb start-server (Selenium RC server) run unit test stop-server But, at 3, not working... 16:34:50,532 INFO [org.openqa.selenium.server.SeleniumServer] Java: Sun Microsyste...

Take screenshot with Selenium: WaitForPageToLoad does not wait long enough

I'm trying to get screenshots from a web page with multiple browsers. Just experimenting with Selenium RC, I wrote code like this: var sel = new DefaultSelenium(server, 4444, target, url); sel.Start(); sel.Open(url); sel.WaitForPageToLoad("30000"); var imageString = sel.CaptureScreenshotToString(); This basically works, but in most ca...

How can I control in which of my desktops the browser called by selenium remote server will pop up?

I am running tests from phpunit using selenium. Since the tests take a couple of minutes proceed, I would like to switch to another desktop and do some tasks while the tests are running in the background. However, since every test calls a new browser via selenium remote server, and a new test management window and a application window ...

Does selenium RC runs c# tests using java -jar option ?

Is there any option available to run c#/.NET tests directly using selenium server like following option for html based tests? ( java -jar selenium-server.jar C# based tests/suites) -htmlSuite : Run a single HTML Selenese (Selenium Core) suite and then exit immediately, using the specified browser (e.g. "*firefox") on the s...

Need to compare 2 html documents using Java & selenium

Hi , I have to check the differences between 2 html documents One is an old doc another is the updated document I need selenium to get the source of the 2 documents and then do a comparison to check the diff How can i acheive this in java & selenium Below is the flow i have , can anyone give ideas/examples in how to implement this Ma...

Is there a way in phpunit to use the database extension together with the selenium extension?

Basically, I want to run selenium tests that allow the database to be setup to a define status before each Selenium test. How would I do this? ...