selenium

How to create nested test suites for Selenium?

I need to create a nested test suite in Selenium that will run in the Selenium IDE or the Selenium TestRunner. This is basically the structure that I'm trying to achieve: MasterTestSuite.html - ComponentTestSuite.html - TestCase1.html - TestCase2.html - OtherComponentTestSuite.html - TestCase3.html - TestCase4.html I...

CSS selector for table of a particular class in Selenium

Even though I am going to use this CSS selector in Selenium, this should be generic enough. I have a page with table of class "list" & it can occur multiple times. I want to find out each occurrence & how many rows each table has. So for this I could use table[class='list'] & will give me all the tables of that class in the page. In th...

Selenium locator for <label for="x">

With ASP.NET the tag IDs are pretty volatile so to make my tests more robust I want to locate elements by their label texts. I have played some with WatiN and it does this perfectly but that project seem kind of dead nowadays so I thought I'd look into Selenium as well before I decide on a framework. I have html that looks something lik...

How to do full stack integration testing of web applications

I'm looking to enhance our current test suites, and continuous integration builds with full stack integration/acceptance testing. I'm looking into tools like Culerity and Selenium that can execute front end javascript while running user stories. I'm looking for something that can provide coverage of front-end javascript and high level ...

Tapestry5.1+seleniumRc Ajax waitForAjax Request

Hi there, Does anyone know how to do waitForAjaxRequest using seleniumRc(like waitForPageToLoad) on tapestry zone? I know there are alternatives like wait for certain element to appear and etc. I am seeking for a proper waitForAjaxRequest, and wish it work on different browsers as well. I had tried browserbot, but no luck. :-( Thank...

assert_response doesn't work with webrat in selenium mode

Anyone know how to get assert_response to work with webrat using selenium? I keep getting NoMethodError: undefined method `response_code' for nil:NilClass Here's my test: def test_basic_page_load visit root_path click_link "register" assert_response 200 end Here's the error: ==> Waiting for Selenium RC server on port 4444.....

Selenium IDE - There was an unexpected Confirmation!

I have a button that displays Javascript confirmation popup. This is a part of my test case: <tr> <td>clickAndWait</td> <td>buttonId</td> <td></td> </tr> <tr> <td>verifyTextPresent</td> <td>Object has been deleted</td> <td></td> </tr> It works as expected: OK is clicked automatically on a popup and verifyTextP...

Selenium: How to stop RemoteRunner.html from getting invoked

Hi, I am using selenium for one for my Java applications on linux. The application invokes a mozilla browser, fills login details (username and password), and then submits the form. I am able to achieve this using selenium, but every time a url is selected 2 instances of mozilla is getting invoked. One instance is that of the url sel...

Selenium RC and IE Script Error - Remote procedure call failed

My Test setup consists of several Java test cases running in IE6 using Selenium RC and TestNG. During my test runs, the following IE Script error popup comes randomly. Upon trying to dismiss this popup by clicking Yes, the test run hangs and I have to kill the entire run. I have tried disabling popup blocker and the MDM service but wit...

Selenium Testing of GWT 2.0

How can I make a selenium click() work the same as a manual mouse click? I have recently upgraded GWT from 1.7.1 to 2.0. Some selenium tests (SeleniumRC v1.0.1, IE7) are now failing. It seems that the Selenium.click() method is not selecting a GWT TreeItem. A manual click will make the TreeItem go blue (ie. look selected and have "gwt-T...

Getting Selenium to login via .htaccess popup

Hi, I am using WebDriver tool (similar to selenium) in a java application for linux. I am using webdriver to autofill form an submit it. I am facing problem with htaccess sites i.e., I am not able to access ht access site through Web driver. Can anyone help me out in this regard. Thanks in advance, Sunil. ...

Help on testing with Selenium

Hi, I'm trying to make some tests on a JavaScript application and someone advised me to use Selenium. I visited its site but I cannot understand what is it and how can I use it for testing. Can someone help me understand? ...

Problems with Error: There was an unexpected Confirmation!

I am trying to delete a user from a table. At first I was getting a timeout error but used the BeatnicClick() as described here: http://stackoverflow.com/questions/1391718/selenium-ide-click-timeout That solved the timeout error but I'm still getting the unexpected confirmation error. Here's part of the source code: selenium.Click(...

Selenium RC and IE Script Error - Access is denied.

Another IE6 Script error seeming to popup at random occassions during my TestNG - Java - Selenium RC test runs. Any clues to what maybe the root cause of this type of errors? ...

How to record popup windows with selenium IDE.

While recording through Selenium IDE, When a pop up window opens then it is not getting recorded. "At the tine of executing an error message is displayed...Please help me out ...

Selenium-RC Browser Launching Error

Hi there. I have just started using Selenium-RC with PHPUnit in order to perform some web-based tests. Initially I set it up on Windows 7 using this guide - http://jodyt.com/2009/03/selenium-rc-and-php/ - and it worked fine. I could create a .php file test and run it with phpunit. However, I have been asked to get this running locall...

Selenium: How to use stored value in a javascript comparison

I've searched around for the answer to this and found lots of much more complicated questions, but none that gave me insight enough to figure this one out. What I'm doing: 1- open a page with a number that will probably be large 2- get the X Path to where that number is and store it to a variable 3- do a javascript to compare the above s...

selenium.windowfocus() what is this command used for?

what is this command for? ...

Testing web app GUI reliable

Hi, I'm currently using selenium for testing our web app's interface. However, it isn't very reliable (it's hard to set a good waiting timeout, absolutely a nightmare to work with in any webpages involving frames) and lacks many features (popups/downloads). I took a look at http://sikuli.csail.mit.edu/ and quite like it, but again, it ...

Assert css locator is equal to it's expected value

Hello. I'm doing some drag and drop js testing with selenium-client. It works (taking screengrabs before and after clearly show the elements to switch places), but I'm having trouble programatically asserting the change happened. Am I mental, or can I not do something like: selenium.assert_equal("css locator", "expected id of element"...