selenium-rc

Javascript communication with Selenium (RC)

My Application has a lot of calculation being done in JavaScript according to how and when the user acts on the application. The project prints out valuable information (through console calls) as to how this calculation is going on, and so we can easily spot any NaNs creeping in. We are planning to integrate Selenium (RC with python) to...

Selenium screenshots using rspec

I am trying to capture screenshots on test failure using selenium-client and rspec. I run this command: $ spec my_spec.rb \ --require 'rubygems,selenium/rspec/reporting/selenium_test_report_formatter' \ --format=Selenium::RSpec::SeleniumTestReportFormatter:./report.html It creates the report correctly when everything passes, since no...

Selenium RC test: error when Run as JUnit Test, no error when Debug as JUnit Test

Hi, I have a problem: when I try to run a JUnit TestCase through Eclipse, in debug mode (using Debug as JUnit Test), it runs perfectly well (I step over each statement), but if I run it normally, not in debug mode (using Run as JUnit Test), the TestCase runs until some point and then fails when trying to find some html element in the pag...

Selenium Automation

Is there any way in Selenium ide, so that we get list and handlers for all controls provided on any page ? So if we get that we can test that one by one using RC and it'll greatly helpful when there are more then 40 controls on page. In that case it'll become very tiresome to record for all. ...

SeleniumException: ERROR: Command execution failure. Permission denied.

SeleniumException: ERROR: Command execution failure. Please search the forum at http://clearspace.openqa.org for error details from the log window. The error message is: Permission denied. Although my test runs perfectly in Firefox and also in IE when running in Debug mode, in IE in Run mode it fails with the error message above. selen...

Wait for an iframe to open and load with Selenium

Hello. I have an app in which the user clicks a button, triggering an iFrame to open. I'm having real trouble waiting for this frame to open an load before continuing. I can't use: wait_for_page_to_load because the it's not the page that loads, it's the iframe. I can't use: select_frame because the frame hasn't loaded yet so I'...

Setup for IE6 (and multiple browsers) in Selenium Grid

I'm having a hard time trying to grasp some concepts on selenium Grid/RC. What I need is to provide specific environments (ie6-on-xp, ie7-on-xp, etc) to the tests. For what I've been reading, the browser line in grid_configuration.yml do not make any reference of what version of MSIE or Firefox I'm running. So I can't get my head around ...

Not able to Open pop up window.

Hi I am using selenium IDE for my automation. In IDE my test is working fine at initial level but to introduce some additional functionality I want to use it with Selenium RC. In my test case when I click on a button It opens an additional search window and after search and selection it closes it and back to parent window. It is working ...

Flash-Selenium and Python

I want to try Flash-Selenium with the python driver, however I have some concerns regarding the available python extension, it seems aged and there is no example on how to use it... Is there anybody who is using it? Any example on how to use it ? ...

Selenium-rc: Is there a way to send a buffer of requests

Lets say I have a list of links and want to click a link at random: <div id="divA"> <a> first link </a> <a> second link </a> ... </div> It isn't the smartest of ways (and if you have a better solution please tell me) but what I currently do is (roughly): l = [] for i in range(numOfLinks): xpath = '//div[@id="divA"]/a[%d]...

fire both blur and focus tightly coupled?

Any idea how I can fire the blur even just after the focus event, such that it doesn't occur "loosly coupled" (the actions are send one-by-one to the selenium server). Let me explain: In Selenium RC you fire the blur and focus through fireEvent(locator, "blur") and fireEvent(locator, "focus"). However, after the blur event is send to t...

Selenium locator for <label for="x">

With ASP.NET the tag IDs are pretty volatile so to make my tests more robust I want to locate elements by their label texts. I have played some with WatiN and it does this perfectly but that project seem kind of dead nowadays so I thought I'd look into Selenium as well before I decide on a framework. I have html that looks something lik...

Selenium: How to stop RemoteRunner.html from getting invoked

Hi, I am using selenium for one for my Java applications on linux. The application invokes a mozilla browser, fills login details (username and password), and then submits the form. I am able to achieve this using selenium, but every time a url is selected 2 instances of mozilla is getting invoked. One instance is that of the url sel...

Selenium RC and IE Script Error - Remote procedure call failed

My Test setup consists of several Java test cases running in IE6 using Selenium RC and TestNG. During my test runs, the following IE Script error popup comes randomly. Upon trying to dismiss this popup by clicking Yes, the test run hangs and I have to kill the entire run. I have tried disabling popup blocker and the MDM service but wit...

Getting Selenium to login via .htaccess popup

Hi, I am using WebDriver tool (similar to selenium) in a java application for linux. I am using webdriver to autofill form an submit it. I am facing problem with htaccess sites i.e., I am not able to access ht access site through Web driver. Can anyone help me out in this regard. Thanks in advance, Sunil. ...

Selenium RC and IE Script Error - Access is denied.

Another IE6 Script error seeming to popup at random occassions during my TestNG - Java - Selenium RC test runs. Any clues to what maybe the root cause of this type of errors? ...

Selenium: How do you delete a character from a textbox

I'm trying to simulate a user deleting a character from a textbox. This textbox fires many JS events, I've had much trouble typing (or typeKey-ing) in ift because of this. My latest try was: sel.key_press(locator, 127) and sel.key_press(locator, "\177 ") but they don't work. What's the safest way? ...

Selenium RC testing: Internet Explorer opens twice

Hello, I am running my Selenium RC tests in IE7. The problem is that when I start tests, Selenium opens two windows instead of one: the portal I'm testing doesn't open in the first one, but it opens correctly in the second. The problem is that it fails with an error in method openPortal() [and lets me know that it was not possible to o...

Selenium clicks not working with GWT

I run GWT OBF (thus this isn't the problem), but when I use Selenium (tried both IDE and RC) my clicks don't get recorded. The component I'm trying to click is a <div>, but nothing happens. For instance, in IDE I am sometimes (very seldom, like one in 50 clicks) able to register a click on different tabs (contained in <div>), but never ...

navigate a table in selenium

Suppose I have a simple table, like this: Smith | Select Jones | Select Johnson | Select And I need to write a Selenium test to select the link corresponding to Jones. I can make it click the "Select" in the 2nd row, but I would rather have it find where "Jones" is and click the corresponding "Select". I'm thinking I may n...