selenium

WebRat+Selenium WebDriver: wait for ajax to be completed

We are running Webrat with Selenium2.0 aka WebDriver in our application. WebDriver handles page reloading very well and do not start next steps if the browser is reloading entire page. The problem is that this mechanism doesn't work with Ajax requests. WebDriver doesn't do any idle when there some after click() or change(). Can anyone ...

Selenium RC ( Dynamic Id Generation)

Hi I am using Selenium RC in Eclipse and JUnit , how i capture dynamic id , Please answer me soon ...

In Selenium IDE, how to get the value of the base url

Is it possible to retrieve the value of the base url from inside a Selenium script (a plain HTML-saved script from Selenium IDE)? What I'm trying to do is verify the current url using assertLocation. But assertLocation returns the absolute url. I would like to compare the current url to a relative url without having to use an * at the s...

Is there an addon which you can test css selectors in firefox?

I was wondering if there is such an addon in firefox where you can test out css paths to check if they are finding the correct element? I was looking for something similar to xpather for xpath locations. ...

selenium result formatted and sent as email

I am using selenium Rc to test some websites and the results are generated.I mostly use -htmlSuite.My concern is i have scheduled it in windows scheduler using batch file,my results has to be formatted like the test case -passed this one failed and sent through mail ,a html mail with this journey passed this failed would be better.Sugges...

Prototyping selenium Xpath paths in Firefox

I'm using selenium in my test suite, but since it's slow to set up, I'd like to prototype my xpaths on live pages, rather than waiting for tests to run. Is there a good way to do this? Firebug's $x xpath seems to not work very well jQuery doesn't seem to support Xpath selectors natively, though it used to in version 1.2. using the nati...

Excel driven Selenium Tests

Is there any way we can extract Selenium-IDE output as an excel sheet and then use java reflection to trigger them one-by-one? Any existing good tool already done this? ...

Does Selenium or WatiN have property like QTP's Setting.WebPackage("ReplayType") = 2?

There are some buttons and menus in the application I am testing that require actual clicks to send all the information through and FireEvent style clicking does not seem to cut it. Both TestPartner and QTP can use actual clicks. TestPartner does this always (slow) and QTP does this by changing the 'ReplayType' to 2 from 1. Setting.We...

How to set Firefox Profile: Selenium RC, .Net Client Driver?

I'm using Selenium RC + .Net Client Driver. I've created a Firefox profile in my c:\selenium\ directory. Here's my code: Dim MySelenium As ISelenium = Nothing MySelenium = New DefaultSelenium("localhost", 4444, "*custom C:/Program Files/Mozilla Firefox/firefox.exe -profile c:/selenium/", "http://www.google.com/") When I run this, I ...

selenium-RC: what is the best way of clearing the browser without restarting it

I'm running many tests (on FF) one after the other and I would like each test to start off with a fresh browser (ie no cookies, no cache,..). One idea is to close the browser and open a fresh one for the new test (this will create a new profile and probably the cleanest environment possible). This is causing too much trouble and taking ...

Should I use Selenium for a Booking Engine?

We'll be developing a booking engine, a 4-5 step checkout process for reserving rooms with a hotel where there's a lot of complexity involved. Something similar to this. Has anyone used Selenium for something like this? What kind of tests would I be able to do? Could I set something like Selenium to go through the entire process of step...

Is it possible to test wait time for page access with Selenium IDE?

I want Selenium IDE to fail a test if the time to access a page is more than 60 seconds and log the time it took to access the page. Is it possible to do that? ...

Selenium RC - Having difficulty with Selenium IDE to find a table cell

Hi, I hope someone here can help me. Im using selenium to test a page that has an image which when click displays a calendar. I can get as far as clicking the image using browser.click("//center/table/tbody/tr/td[1]/a/img") I got the above path by using the Selenium IDE. The problem is once i click the above image the Selenium IDE ...

Selenium time outs? How to set time out limit?

Hi, I'm using Selenium Ruby client on a site with really bad performance. My scripts fails each time because of time outs. For a weeks now I am researching how time out limit can be set when using Selenium. My (Ruby) script is selenium.set_timeout(30000000000000) # does not work? selenium.open myurl In the Selenium log I can se...

How to use multiple CSS locators as a selenium locator?

Hey, I'm trying to hit a link in a table-row that contains multiple links. This pattern is used throughout the table. This works: browser.wait_for(:element => "css=tr:nth-child(1) li:nth-child(2) > a") This does not: browser.click "css=tr:nth-child(1) li:nth-child(2) > a" Any ideas why this might be? I'm using the selenium-cl...

Can webrat browser-automation tests be parallelised?

Is there a facility similar to SeleniumGrid that I can use to run webrat (or other, similar framework) browser automation tests in parallel across a farm of coordinated agents? Coordinated via TeamCity with rake? Edit: We're looking at using cucumber+webrat to do functional and acceptance testing as described in Testing ASP.NET Web App...

Element not found until manual click anywhere on page

Hello, I've got the following problem: When recording a webtest using Selenium IDE (v1.0.4) every step will be recorded but when I try to replay the tests some buttons won't be found although they do not have dynamic identifiers. For example you could use the following page to see what I mean: http://www.vodafone360.com There you ma...

Selenium + JavaScript + Infragistics WebDateChooser

Hi everyone, I am working on Selenium tests for one of our pages that has an Infragistics WebDateChooser. It took me a while to get to where I could set the date field from the Selenium test, but I finally got something to work: waitForEval | javascript{this.browserbot.getUserWindow().igdrp_getComboById('ctl00_MainBody_ctl00_fdosDatePi...

SeleniumRC FF3.5.x-3.6 lock file troubles

With Selenium RC 1.0.1, and FF3.5.x or 3.6 I keep seeing this error when trying to run any test, Failed to start new browser session: Unable to delete file \parent.lock when running the server with either, java -jar selenium-server.jar -multiwindow or java -jar selenium-server.jar Any one found a way to run a selenium RC t...

Selenium - Problem testing a date field.

I have a page that has an image which when clicked shows a calendar. I've put an example of it here --> http://www.dotvibes.com/test/test.html Clicking on the image shows a calendar. I tried to use Selenium IDE to record the action of clicking this image but it just does not work properly. Here is what selenium IDE returns <tr> ...