selenium-rc

Can Unittest in Python run a list made of strings?

I am using Selenium to run tests on a website. I have many individual test I need to run, and want to create a script that will run all of the python files in a certain folder. I can get the names, and import the modules, but once I do this I can't get the unittest to run the files. Here is some of the test code I have created. My pr...

Hudson + Selenium plugin - Getting HTTP error 403 when running tests

I am trying to test my application using Selenium tool via the Hudson plugin (the one called sleniumhq plugin). As a proof of concept I decided to make a very simple test targetting google, the test is the one below: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xh...

Selenium RC Having problems with XPath for a table

I'm trying to select an element given by: /html/body[@id='someid']/form[@id='formid']/div[@id='someid2']/div[@id='']/div[@id='']/div[@id='']/table/tbody[@id='tableid']/tr[7]/td[2] Now the html of that row I'm trying to select looks like this: <tr> <td class="someClass">some text</td> <td class="someClass2">my required text for verif...

Using Selenium for selecting an option on a select with optgroup

Hi, I'm trying to select a value in a select element. I'm using Selenium RC (Java) to run the test cases. I understand that the code for selecting a value is given by: selenium.select("locator", "value=REQUIRED VALUE") I'm unable to select the desired value with the above code. I think it might be something to do with optgroup in the...

get_eval of Selenium::Client::Driver is not working in Internet Explorer 8 browser.

Hi, I am working on ruby + selenium for automation testing of web application. I have added the following in the 'env.rb' @browser = Selenium::Client::Driver.new(c['server_host'], c['server_port'], browser_type, c['root_url'], c['timeout']) I am able to execute the javascript code in "Mozilla 3" using following code. total_count =...

Need help with pop-up issue using Selenium RC in IE7 testing

I am having some trouble in IE7 testing with Selenium RC. I have no trouble automate the test in Firefox but I can never work around this issue in IE testing. Whenever there has to deal with a pop-up window, I am receiving an "Permission Denied" error message but I have disabled Pop-up blocker in IE browser, enabled all the Scripting opt...

Weirdness when clicking span elements

I have a FAYT input I'm checking. I type in the textbox, see the options unfold and click one of them. All this passes neatly but there is something in the process that fails because the selected category is not selected. (this feature works like a charm when you try it manually) This is the outline of the drop down suggestions' html: ...

Counting number of elements matching a CSS Selector

How can I count the number of elements that match my CSS selector?? I am trying to use SeleniumRC to test my GWT App and am trying to match elements using CSS selectors. I want to count the number of enabled Buttons in the following HTML. A button is enabled if it is under a td with class="x-panel-btn-td " and disabled if it is unde...

Run UI SeleniumRC tests as a part of CI process

I'm trying to setup CI environment for QA department. They use SeleniumRC to run UI tests in IE and FF browsers to test some web application. I had a success configuring it to run as a windows service as described here. However when i run the test it hangs. I can see iexplore.exe process spawned by Selenium service in the process list bu...

Does Selenium RC support IE8?

Can anyone confirm if Selenium RC server fully supports IE8? ...

selenium RC basic test doesn't work with iexplore, but works with FF, and more.

The classic google test here from selenium website, it works in FF on vista. On IE7, apparently doesn't find the window object. Selnm gets farther in the test (On IE) when I change config to using "iexploreproxy", (instead of "iexplore") but I cannot use that because it causes untrusted security certificate warnings. I installed selenium...

how to CREATE only 1 session with rc server when running PHPUnit selense html files?

My website has a Login page, so it needs to login first to run each html selense test file. The way PHPUnit framework works is creating independent test cases by running each test independently, which means it calls the Setup() function on each test case --> then calls Selenium RC Server--> then creates session id. My Code is below: req...

Cruisecontrol, build failed exec returned: 255 after compiled phpunit tests?

here is my build.xml code: <target name="checkout"> <exec executable="svn" dir="${basedir}/source"> <arg line="up" /> </exec> </target> <target name="php-documentor"> <exec executable="phpdoc" dir="${basedir}/source" logerror="on"> <arg line="-ct type -ue on -t ${basedir}/build/api -tb...

getting NullPointerException error after executing my test script

Hello, I am using selenium RC with Junit framework and Eclipse. In whole test script, I am just opening one form and update some values in grid table. Some ending lines of code.. selenium.type(prop.gridtxtboxACTL, "test123"); selenium.click("link=Update"); selenium.waitForPageToLoad("30000"); } public void teardown() throws Exception...

having a problem to handle pop-up in selenium RC

hello, My application supports only IE browser, but I am not able to handle pop up with selenium RC. I am using Junit framework and Eclipse. The scenario is like, On billing page I have to check one checkbox, which generates a popup wondow. And I have to click OK to that pop up message, Save the record and move to next page. Have a loo...

Selenium RC > how to upload file using attachFile()

hello, I am using Selenium RC with Junit framework. I am trying to upload a file using attachFile() method. attachFile: (Information collected from selenium API http://release.seleniumhq.org/selenium-remote-control/1.0-beta-2/doc/java/com/thoughtworks/selenium/Selenium.html#attachFile(java.lang.String,%20java.lang.String)) void attac...

Using selenium in order to read emails on gmail

I'm using selenium-rc and I'm trying to click on a specific email on gmail in order to get into the email page. More specifically: on the gmail inbox, click on a email with a specific subject. I can't find the correct xpath (none of the tags in the email part are links). Ideas? ...

Selenium RC sending blank screenshots through (winxp/winserver)

Hello everyone. I'm trying to set up my virtual (xen) win xp instances, a dedicated windows server, and a dedicated windows xp desktop pc for web app UI testing, using selenium-rc and the selenium PHP API from pear (the php script running the tests sits on its app server, on the same local network as the remote-controlled windowses). E...

Heightened privilege selenium browsers on Windows 7 (x64)

I make use of *firefox and *iexplore etc. within my selenium tests to get around the issue of self-signed SSL certificates on my local machine. Unfortunately, now that I've moved from XP over to 7, this seems to have stopped working. I'm running the selenium RC server process as administrator, since that was necessary to get an IE insta...

Selenium Api, Selenium locators and regex

In my page I have some ids like "foo:searchResults12345" that are composed of a static part ("foo:searchResults" and a dynamic rendered one - one or more numbers. I want to retrieve every id that contains the static part "foo:searchResults", ignoring the dynamic one. I am thinking at using regex for the pattern text, but the problem is...