selenium

Applying test classes to dynamic page elements with jQuery

Hi, I am working with a tester who is using Selenium in my latest project. I was trying to get some information out of him as to how i needed to name my CSS classes applied to the dynamic elements on the page that he will be testing. I think he is rather new to this himself so was going to put our findings here for comment: Testing ...

How do I get the content of a JavaScript confirmation prompt in Selenium?

Using Selenium, how can I get the contents of a JavaScript confirmation prompt? Screenshot of the prompt: http://www.freeimagehosting.net/image.php?a296dd8a59.png ...

Testing for the presence of jQury UI modal dialog or alternative on page

Hi, I was wondering how you can test for the presence of a jQuery UI modal dialog with Selenium. I have done some Google searching but nothing is abundantly clear. although this page suggested isVisible(): http://groups.google.com/group/selenium-test-tool/browse_thread/thread/6affc0ef45a1d4a6?pli=1 I would also require to test eleme...

Testing html files using Selenium and IE

How can I use selenium to open up html files on my machine on a browser besides Firefox? When starting Selenium, the baseUrl is set to either a real website (www.google.com) and the initial open command of the test points to the local html file selenium.open("file:///C:/to/local/file.html") or the baseUrl is set directly to the local ...

Running Selenium RC tests in firefox in offline mode

Is there a way to run Selenium test in offline mode? If I set the offline mode in the firefox profile, selenium is stuck at selenium.start(). I'm using the python client driver. The code is as below sel = selenium('localhost', 4444, '*firefox', 'file:///home/user/selenium/selenium-python/client-driver-1.0.1/inputs/input.html') sel.st...

Tomcat creates 0 byte files

Hi all, I have a very simple file upload mechanism in java. I just take the file and save it on the server. I'm testing this simple code with selenium and when a timeout occurs in the selenium test tomcat creates 0 byte files under tomcat_home/work/Catalina/localhost/uploadServlet/ directory as MultiPart* files. It creates thousands of ...

how to repeat Selenium test script forever

Hello, I need to re-run my Selenium test script for unlimited number of times (infinite loop) - how I do that and what language should I use ? thanks ...

How do I locate a table row based on the text of a cell in Selenium?

How do I locate a table row based on table cell data using the following HTML snippet: <table id="BetaCustomersTable> <s:iterator> <tr> <td class="userTabletd"> <s:property value="email" /> </td> </tr> </s:iterator> </table> ...

selenium c# nunit problem getting focus off a textbox

Hi, I am testing a web app where a file is to be renamed as follows 1)first click on the files name 2) this will make a textbox appear 3) I type the new name in textbox 4) I have to click outside the textbox so that the new name gets set. or 4) Press enter key The problem is in step 4. I've tried to get it to click at several places in...

Flash Player - Fullscreen without user interaction (automated testing)

At the moment I'm using Selenium-Flex to write functional tests for a video playback app. At the moment, I need to test that the app behaves appropriately when switched to fullscreen mode - make sure that the control bar is in a reasonable spot, the video resizes appropriately, etc., and of course to do that I need an automated way to m...

Selenium-RC Unable to handle Confirmation box.

Hi, I am testing a web app where i delete an item from a list. Upon clicking on delete, the app asks for confirmation. Selenium IDE detects it as a confirmation box. When I run the code thro' the RC (C#), it even catches the confirmation-box, executes the click of delete button on that confirmation box, but, the confirmation box is neve...

race condition in Selenium waitForPageToLoad?

We're using Selenium for smoke-testing a Java Spring MVC based website. We invoke it using JUnit and the Java Selenium client. Much of the time, our tests work fine, but we tend to get timeouts in selenium.waitForPageToLoad in apparently random places. (That is, run the test suite multiple times and the location and number of timeouts...

Selenium not opening virtual browser window on Linux

Hello all, I am using Selenium to conduct user interface tests with JUnit, in a Maven project. The project is located on a Linux box running IEs4Linux and Wine to allow us to run the tests in IE. Right now I'm using Xming along with Putty to view the virtual browser windows, and I am able to open an IE window with the command "ie6", an...

How do I maximize the browser window using WebDriver (Selenium 2)?

Is there a way to maximize the browser window using WebDriver (Selenium 2)? ...

XPath loop with Selenium and perl

Hi, I'm trying to extract all name values in input fields using selenium and perl. Part of the value, enough to identify it, is known, the rest is unknown: This xpath works in finding all relevant matches: //tr/td//input[contains(@name,'partofname')] So, in perl: my $xpath = qq(//tr/td//input[contains(\@name,'partofname')]); my $c...

selenium confirm box

Hi, I'm using selenium for auto testing . Though the reference manual says it doesnt support Javascript. Would like to know if any alternative is there for passing confirm dialog box ?? My script is failing when trying to click "OK" on confirm box . Failing at this line assert /^Quantity Unavailable\. Do you want to continue[...

problem with globbing patterns in selenium

1) "glob:at row [0-9]" does not match "at row 7" 2) "glob:at row *" does match "at row 7" Why does "glob:at row [0-9]" not match "at row 7"? How do I fix it? ...

List of elements

Hello, I have some links at the page like: 123test.com/456 abc_test.com/sdfsd abc_test.org I have to get all elements which href attribute consists of test word. I know how to click at such link by given number: selenium.click("//body/descendant::a[contains(@href,'test')][2]") This code will click at second link which has 'test' i...

How to close or minimize browser windows with Selenium RC?

Every time I launch a Firefox instance via Selenium RC I get 3 windows that I don't need appearing: the add-ons windows notifying me that "3 new add-ons have been installed" (since I'm using a custom profile for Selenium to which it evidently adds the DocumentReadyState, KillFF, and Selenium RC Runner add-ons) the http://localhost:4444...

problem in using selenium-maven-plugin

hi, I'm using selenium-maven-plugin. http://mojo.codehaus.org/selenium-maven-plugin/ I have tried at headless linux with xvfb goal. Below execution progress... xvfb start-server (Selenium RC server) run unit test stop-server But, at 3, not working... 16:34:50,532 INFO [org.openqa.selenium.server.SeleniumServer] Java: Sun Microsyste...