selenium

What do you use to Unit-Test your Web UI?

The company I'm currently working for is using Selenium for Uniting-Testing our User Interface. What do you use to Unit-Test your Web UI and how effective do you find it? ...

How to simulate pressing enter in html text input with Selenium?

In a web interface, I've got a text field. When user enters text and accepts with enter, application performs an action. I wanted to test the behavior with Selenium. Unfortunately, invoking 'keypress' with chr(13) insert representation of the character into the field. Is there a way other then submitting the form? I'd like to mimic int...

How do I solve this error: "Class PHPUnit_Extensions_SeleniumTestCase could not be found"

I am trying to run a SeleniumTestCase with phpunit but I cannot get it to run with the phpunit.bat script. My goal is to use phpunit with Selenium RC in CruiseControl & phpUnderControl. This is what the test looks like: require_once 'PHPUnit/Extensions/SeleniumTestCase.php'; class WebTest extends PHPUnit_Extensions_SeleniumTestCase {...

How do you get selenium to recognize that a page loaded?

In certain unknown situations selenium does not detect that a page has loaded when using the open method. I am using the Java API. For example (This code will not produce this error. I don't know of an externally visible page that will.): Selenium browser = new DefaultSelenium("localhost", 4444, "*firefox", "http://www.google.com"); bro...

Has anyone found a way to run C# Selenium RC tests in parallel?

Has anyone found a way to run Selenium RC / Selenium Grid tests, written in C# in parallel? I've currently got a sizable test suite written using Selenium RC's C# driver. Running the entire test suite takes a little over an hour to complete. I normally don't have to run the entire suite so it hasn't been a concern up to now, but it's so...

Handling browser pop-up windows with Selenium

We are running Selenium regression tests against our existing code base, and certain screens in our web app use pop-ups for intermediate steps. Currently we use the commands in the test: // force new window to open at this point - so we can select it later selenium().getEval("this.browserbot.getCurrentWindow().open('', 'enquiryPopup')"...

Selenium Critique

Hi all, I just wanted some opinions from people that have run Selenium (http://selenium.openqa.org) I have had a lot of experience with WaTiN and even wrote a recording suite for it. I had it producing some well structured code but being only maintained by me it seems my company all but abandoned it. If you have run selenium have you ha...

Start seleniumRC from Fitnesse

I'm trying to integrate running Fitnesse tests from MSBuild im my nightly build on TFS. In an attempt to make it self contained I would like to start the seleniumRC server only when it's needed from fitness. I've seen that there is a "Command Line Fixture" but it's written in java can I use that? ...

Any suggestions for testing extjs code in a browser, preferably with selenium?

We've been using selenium with great success to handle high-level website testing (in addition to extensive python doctests at a module level). However now we're using extjs for a lot of pages and its proving difficult to incorporate Selenium tests for the complex components like grids. Has anyone had success writing automated tests f...

Selenium internals

How does selenium work? Can you explain the internal working of it. ...

Selenium RC against a Cassini webserver

I'm trying to run Selenium RC against my ASP.NET code running on a Cassini webserver. The web application works when i browse it directly but when running through Selenium I get HTTP ERROR: 403 Forbidden for Proxy Running Selenium i interactive mode I start a new session with: cmd=getNewBrowserSessionsessionId=199578 I get the ...

Selenium Remote Control HTML Source Extraction in Internet Explorer

Selenium Remote Control has a method of "get_html_source", which returns the source of the current page as a string. AFAIK, this method works in all cases in Firefox and Safari. But when it's invoked in Internet Explorer, it returns an incorrect source. Does anyone know if this is a bug with Selenium or Internet Explorer, and if there'...

Why isn't Selenium capturing my keystrokes?

I'm trying out the recorder of the latest Selenium IDE Firefox extension on win32/ff3. On one page, currently I have to hit Enter to go to the next page, but it's not on a submit button, it's captured manually. This is not picked up by the recorder. I know I can enter it manually myself after recording, but why isn't this part of it? ...

What do you use to test your browser extension / BHO?

What are the best approaches / tools to test browser extensions? In my case I work on an IE Browser Helper Object (C#) which has a small UI of its own and a good deal of database interaction. Up till now we've used automated unit tests for testing our model/business objects but manual testing for the UI/scenario testing. I'm thinking of...

How to be successful in web user interface testing ?

We are setting up a Selenium test campaign on a big web application. The first thing we've done was to build a framework which initialize SQL data in database before the test, launch the test, archive results and then clear data. We've integrate that in a Maven 2 process, run every day by TeamCity on a dedicated database. We've set up ...

Defining custom actions in Selenium

I have a Selenium test case that enters dates into a date selector made up of three pulldowns (year, month, and day). select validity_Y label=2008 select validity_M label=08 select validity_D label=08 This part gets repeated a lot throughout the test case. I'd like to reduce it by defining my custom action "selectValidity", so that I...

Using Selenium IDE with random values

Is it possible to create Selenium tests using the Firefox plugin that use randomly generated values to help do regression tests? The full story: I would like to help my clients do acceptance testing by providing them with a suite of tests that use some smarts to create random (or at least pseudo-random) values for the database. One of t...

Testing onbeforeunload events from Selenium

I'm trying to write a Selenium test for a web page that uses an onbeforeunload event to prompt the user before leaving. Selenium doesn't seem to recognize the confirmation dialog that comes up, or to provide a way to hit OK or Cancel. Is there any way to do this? I'm using the Java Selenium driver, if that's relevant. ...

How to get Selenium working with PHP/Firefox3 on Linux

I am trying to get Selenium RC working with Firefox 3 on Linux with PHP/Apache but am experiencing problems. Here's what I've done: I have installed the Firefox Selenium-IDE extension. On the web server (which in my case is actually the same machine running Firefox), I've started the Selenium server with: java -jar selenium-server.jar...

Selenium Drag&Drop in testing javascript

Hi all! Need your help in such a specific situation. I use Selenium framework for testing the application, which based on "ext js" library. There are 2 trees of elements. I need to move an element from one tree to another element in the second tree. I use dragAndDropToObject(xpath1,xpath2); I can see that method takes 'xpath1' element, ...