selenium

Select link from table using single selector

I wrote selector like this jQuery("td:contains('test')").parent("tr").find("a") I want to click link in table. It works great, however Id like to use it as selenium selector. Selenium supports jQuery selectors, but they have to be one liners, for example selenium.click("jquery=a:contains('test')"); How to convert my selector into ...

Is the order of attributes in a certain tag releveant?

Is the order of attributes in a certain tag releveant. Specific case: This is from a selenium testfile. Given a testcasse <?xml version="1.0" encoding="UTF-8" standalone="no"?><html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head profile="http://selenium-ide.openqa.org/profiles/test-case"&gt; <meta content="text/htm...

Using custom Selenium server on capybara

I'm trying to use capybara and Selenium but with custom server for Selenium, for example I want to route the server to saucelabs.com, is anyone here are have try it before? Thanks b4 ...

TestCase scripting framework

Hey guys, For our webapp testing environment we're currently using watin with a bunch of unit tests, and we're looking to move to selenium and use more frameworks. We're currently looking at Selenium2 + Gallio + Xunit.net, However one of the things we're really looking to get around is compiled testcases. Ideally we want testcases th...

Selecting a date value from a dynamically generated listbox.

Hi All, I have a listbox whose values are generated dynamically. The list box contains months and years and when generated looks like this. <select name="arr_dtm_mon_year" tabindex="150" class="input"> <option value=""></option> <option value="NOV 09">Nov 09</option> <option value="DEC 09">Dec 09</option> <option valu...

Selenium RC htmlsuite error

I am trying to use Selenium RC but i keep getting this error whenever i start the server. The command i use is java -jar selenium-server.jar -multiwindow -htmlsuite *iexplore http://localhost/app testsuite.html testsuiteoutfile.html Starting Selenium Server.... 18:14:29.086 INFO - Java: Sun Microsystems Inc. 10.0-b23 18:...

Saving full page content using Selenium

Hi all, I was wondering what's the best way to save all the files that are retrieved when Selenium visits a site. In other words, when Selenium visits http://www.google.com I want to save the HTML, JavaScript (including scripts referenced in src tags), images, and potentially content contained in iframes. How can this be done? I know g...

What is the best way of testing XML responses?

I'm using selenium IDE to test my webpages but unfortunately I cannot use it to test those pages that return an xml response. Some people use Selenium Remote Control, others use Pearl modules like WWW::Mechanize and Test::XML or Test::XPath (but these are no option for me since I use Java). What is the best way to test the XML responses...

Selenium waitForPopup with dynamic windowId?

When using Selenium how can I wait for a popup window if its id is dynamically generated? For example: selenium.click("link=mylink"); selenium.waitForPopUp("popup072815372337691199"); Obviously I cannot hardcode the window id in my source code. Any hints? ...

Is it possible to use maven only for running selenium plugin?

Our pom.xml currently contains both the build settings, as well as execution of selenium using selenium-maven-plugin. I would like to split it in to two pom files, one for the build and unit tests and the second one for executing selenium tests. (This way I could first build the project in Hudson, and after successful build execute Sele...

Trying to run Selenium tests using Hudson - "Error: no display specified"

I'm trying to get Selenium tests to work when they are executed by Hudson, but I have not been successful so far. Hudson is running on Ubuntu, and Selenium is unable to open display. Command I use for launching the build is: mvn clean selenium:xvfb install error log: [INFO] [selenium:xvfb {execution: default-cli}] [INFO] Starting Xv...

How to get Hudson to show complete selenium report?

Our Hudson installation shows a very spartan version of the Selenium report: Selenium Report Result numTestPasses 2 numTestFailures 0 I've understood that it should be possible to view full reports via Hudson, and also track development of the tests. But how? ...

how to use variable from runscript command

I get some text from a web page 5,19 € 3,50 € I want to split this text after "€". for that I'm using this command runScript | javascript{var prices = storedVars['price'].split("€"); document.write(prices[0]); document.write(prices[1])}; after done that try this command getEval | alert(storedVars['prices[0]']) the answer is that p...

selenium.open("/"); generated an XHR 500: Internal Server Error

Any clues on what causes this? ...

using Selenium: how to use output from one test as input to another test

I'm a Selenium n00b... it's clear how easy it is to run a test and verify a particular response, but how can I take a value from one response and use it in the next test? an example might be a contact creation form... type in name/email and click submit response arrives with new ContactID grab the ContactID that was returned and put ...

How to click and verify the existence of a pop up (alert)

I'm working with selenium. while trying to click a button it creates a pop up (alert) and doesn’t return a page object. Because of that I can’t use “click” alone as this method expects a page object and eventually fails because of a timeout. I can use the “chooseOkOnNextConfirmation()” but this will click the pop up and i also want to v...

Spring test context setup without SpringJUnit4ClassRunner or AbstractJUnit4SpringContextTests (in Selenium testing)

I am setting up JUnit 4.7 tests with Selenium 1.x and Spring 3.0. I want to extend Selenium's SeleneseTestCase for the shortcuts and conventions it provides (more importantly, the Selenium IDE generated code seems to expect this). Yet I want the Spring context and other goodness to be present during the execution. Because I cannot exte...

Selenium: Why does click() not behave like it does in firefox?

I have a link with an id: <a href="#" onclick="return false();" id="lol"> In my test: selenium.click("lol"); //when running the test, the click will just end up selecting the item, not firing off the frameworks javascript This does not register the click the same! There is javascript that is part of a complex framework which will c...

Selenium 2 C# WebDriverBackedSelenium

Does the Selenium 2 C# library support using Selenium 1 commands? I know in java you could create a WebDriverBackedSelenium object and use Selenium 1 commands on it but I can't seem to find how to do it in C#. ...

Selenium : Xpath parse error in internet explorer

Hi While testing a web app using selenium, I am trying to access a link in a html page. Xpath to this link is //div[div[text()='Report:']]//a[div[text()='Remove All']] This xpath is working in Firefox but in IE i am getting parse error. I verified this xpath using ie webpage source code and xmlspy. but still getting this error while ...