selenium

help needed with xpath ...please

I'm trying to write xpath for one of the elements in a tree-like structure in the UI. The tree looks like a windows file structure, like parent node, child. So, in order to find child node parent node has to be clicked. + [file icon] Book |_ Book 1 |_ Book 2 |_ Book 3 Selenium gives the following xpath for the text 'Book' in above tr...

How to click a link that opens a sign in page on another page/window using Selenium IDE

Hello peeps, newbie here, i'm trying to get the value of a link using document.getelementbyClass/Name & then navigate to the page the link points to in a different window/tab using Selenium IDE. All suggestions gratefully received, thanks ...

Connection Refused running multiple environments on Selenium Grid 1.04 via Ubuntu 9.04

Hello, I'm writing a selenium grid test suite which is going to be run on a series of different machines. I wrote most of it on my macbook but have recently transfered it over to my work machine, which is running ubuntu 9.04. That's actually my first experience with a linux machine, so I may be missing something very simple (I have disab...

Selenium and HTTPS/SSL

I'm running selenium-rc 1.0.3 on a Mac OS X & Windows 7 and both seem to be giving my the annoying accept cert error in firefox. In reading the docs they say I should be able to just use the *firefox run mode and rc should take care of it for me via a proxy or something, but this appears to not work. The only solution that I was able to ...

how to automate / script processes like signups .

which is the best tool for this - Automation of signup process to a website , e.g an email signup The tool should be able to take data from an external data file like an excel of csv file this data file would contain data such as first name , last name , username, password etc. basic data required during an email signup . I am imagin...

Selenium RC Error when running tests

I get this error when running a number of tests in seleniums Bromine, The selenium RC version 1.0.2 outputs this: WARN - GET /selenium-server/driver/?cmd=testComplete&1=&2=&sessionId=1274d41621c64fc08c1e7ea0a58f260b HTTP/1.0 java.lang.IllegalStateException: unexpected command json={command:"open",target:"/Library/Security/Login.aspx?Ret...

seleniumRC: Problems with browser starting on OS X

Hi! I am trying to start simple selenium test on OSX (just downloaded the latest version of RC), with a python client driver. But the browser can't start (it crashes). The error which I see in console is 15:33:32.867 INFO - Preparing Firefox profile... dyld: Library not loaded: /System/Library/Frameworks/ApplicationServices.frame...

Possible to register Selenium RC's with the Hudson Selenium Grid Hub w/o the RC's being slaves in the Hudson cluster?

I am trying to get Hudson to run my ruby based selenium tests. I have installed the Selenium Grid plugin, but I don't want to have the RC's running as slaves in a Hudson cluster. The reason for this is I don't want to waste the next six years of my life trying to configure each of my projects in various Windows environments. Hudson cur...

Distributing requests to Selenium Grid RC's?

I've got a situation here where I have a central selenium grid hub, and several RC's running on my gogrid account. When I access it to run tests, it basically queues all the incoming test requests and executes them serially on only one of the RC's, instead of spreading them out to use available RC's. The tests come from multiple projects...

How to store '\n' in Selenium IDE for further its using e.g. in forming a text report?

I'm forming a text report about group of links and their paths and I need Selenium to paste each new record or several records from the new line. I was trying to use this code but it works only 1 time, after I close Selenium and then open it again '\n' disappears: <td>storeText</td> <td>\n</td> <td>newline</td> Report forming code (wo...

Run and Kill a Selenium Server Singleton Process for duration of C# DLL lifetime

I have a Selenium Test .DLL that is loaded using NUnit. I run a required Selenium Java Server quietly hidden in a process when a test is run. However I currently start the server when a test is started and Kill() it when the test stops. This results in the selenium server starting/stopping for every test. What I want is for the Sel...

Firefox 3.6 update breaks selenium.

I'm unable to run any selenium tests since I updated Firefox to 3.6. Is it happening just to me or is it everybody? Error message I get is: Could not start Selenium session: Failed to start browser session This is in Windows Xp. ...

Issue selenium code maintenance

I want to group the common methods in one file and use it. For example, login to a page using selenium may be used in multiple times. Define that in class A and call it in class B. However, it throws null pointer exception. class A has public void test_Login() throws Exception { try{ selenium.setTimeout("60000"); ...

Running Webrat with Selenium

I set up Cucumber+Webrat+Selenium according to this article. Whenever I run my server, though, I keep getting: ERROR Server Exception: sessionId should not be null; has this session been started yet? (Selenium::CommandError) Two hours on Google haven't done much for me. Could you please help out? Thanks! I am working on Ruby 1.8.7 and R...

Where to find documentation for Capybara? [Rails]

I am working with Cucumber and Capybara and am looking to test a basic javascript confirmation box. I am aware Capybara uses Selenium 2.0 (not RC) for its javascript testing. Where can I find the documentation for testing a simple confirm js dialog and other features of capybara + selenium? Thanks! ...

Building Current Selenium?

Hi guys, On the official Selenium blog (http://seleniumhq.wordpress.com/) it mentions that Maven is no longer used to build the Selenium project. Can anyone provide me some guidance on the new preferred method for building the selenium project? Everything I've found online is really out of date, referencing the old SVN repos and Maven. ...

Maven - Selenium - Possible to run only one test

Hi We are using JUnit - Selenium for our web tests. We use Maven to start them and build a surefire report. The test suite is pretty large and takes a while to run and sometimes single tests fail because the browser won't start. I want to be able run a SINGLE test using maven so I retest the tests that fail and update the report. I ca...

Is there any command in Selenium such as synchronization in QTP?

I am looking out for any solution in Selenium for timing issues. Is there any function or method (particularly in Ruby) that matches somthing like 'Synchronization method' in QTP? I have tried wait_for_frame and wait_for_element, but not able to make through with them. Any help would be great. ...

How do I get javascript results using selenium?

I have the following code: from selenium import selenium selenium = selenium("localhost", 4444, "*chrome", "http://some_site.com/") selenium.start() sel = selenium sel.open("/") sel.type("ctl00_ContentPlaceHolder1_SuburbTownTextBox", "Adelaide,SA,5000") sel.click("ctl00_ContentPlaceHolder1_SearchImageButton") #text = sel.get_body_tex...

Selenium/NUnit run one test on multiple IP addresses.

I have a test suite DLL written in C# that uses Selenium.This is then loaded into NUnit and tests can be performed on our embedded web server boards. Does anyone know how to run a NUnit Selenium test on multiple IPs in multiple browsers? I have tried creating multiple DefaultSelenium classes but they point to the same Internet Explorer...