selenium

Attribute Error: On selenium-python script

I am using Selenium-python script for web test automation. When ever I use selenium inbuilt commands, I will get Attribute error during run time. Ex: selenium.WindowFocus("preview_email") throws "AttributeError: class selenium has no attribute 'WindowFocus'" I am new to test automation. Help me to sort out this problem. ...

Control Download confirmation popup window using selenium script

I wrote test case to click on download button. How to go to download confirmation pop up window and select save or open option, and click ok and come back to main window. I am using selenium-python script for web test automation. ...

Retrieving data with Selenium

Hi everyone, I want to get the business hours from ScotiaBank branches that are near to me. The base-URL is: http://maps.scotiabank.com/ I then, Click on the "Branches" radiobox. Click on the "Open Saturdays" checkbox. Enter "B3H 1M7" (my postal code) into the search box. Click the Search button. Click on the first result that po...

reading the firebug console in javascript

I'm looking for a way to read the most recent command that was logged to the firebug console. For example, I could have something that does console.debug('The most current request URI is /sweatsocks'); And then another piece of (pseudo)code could then if (mostRecentConsoleEntry().endsWith('/sweatsocks')) { // do some stuff } The...

Watir vs Selenium vs Sahi

Out of these 3, which have you or has your company chosen to work with? Pros & Cons please. I'll be comparing them myself as well, but I'd like to hear what others have to say. Also, please state which you have all tried (so that I know you have a good comparison of the 3). ...

What's the Point of Selenium?

Ok, maybe I'm missing something, but I really don't see the point of Selenium. What is the point of opening the browser using code, clicking buttons using code, and checking for text using code? I read the website and I see how in theory it would be good to automatically unit test your web applications, but in the end doesn't it just tak...

xHTML markup checker integrated in Selenium

Hello Recently, I thought about how can I improve the quality of the projects, by using Continuous checking of xHTML source at Continuous Integration machine. Look, we have a project http://sourceforge.net/projects/jtidy - jTidy JTidy is a Java port of HTML Tidy, a HTML syntax checker and pretty printer. It can validate the xHTML thr...

Can I access a DOM object with Selenium?

I am coming from a QuickTest Pro background where I can get to any element's DOM object with the .object method. I want to know what the equivalent is in Selenium RC. ...

Selenium click() event seems not to be always triggered => results in timeout?

Here's what I do: selenium.click("link=mylink"); selenium.waitForPageToLoad(60000); // do something, then navigate to a different page // (window focus is never changed in-between) selenium.click("link=mylink"); selenium.waitForPageToLoad(60000); The link "mylink" does exist, the first invocation of click() always works. But the se...

Fixtures and Selenium and Rails (oh my?)

What data do you use with Selenium tests on Rails apps? Do you load from fixtures? Use an existing dev db? Use a separate (non-fixture) db? I'm considering my options here. I have a Rails app with a large Selenium test suite that runs on a modified version of Selenium Grid. Part of the process, right now, is loading a large set of fixt...

How do I select only visible elements using XPath?

I have a GWT application for which I'm trying to write some tests using Selenium. I'm using XPath to identify the elements on the page for the tests. Using id won't work as the id values are auto-generated by GWT and can change. Things started going well when I realised I could find buttons by their labels as follows: //button[.='OK'...

Selenium fails to kill browser when test fails

How do I setUp selenium to kill the test browser page on occasions where test fails. Currently, when running selenium test cases and a test fails, the browser page stays open and that causes problems when large number of tests is failing. Interestingly enough, it isnt the case when the test passes. Any suggestion?? ...

Cleaning up data after a selenium test

I'm setting up some Selenium tests for an internal web app and looking for advice on a testing 'best practice'. One of the tests is going to add some data via the UI that cannot be removed via the UI (e.g., you can add a record via the web app, but removing requires contacting someone internally to remove it at the database level). How d...

Can selenium handle autocomplete?

I have a test case that requires typing in a partial value into an ajax based textfield and verifying the list has the expected content. If it does, select the content. Any idea how to make this work? ...

Selenium Java process called from c# not starting properly on CCNET build server

Hi, I'm setting up CCNET server to run Selenium tests. In my test code I use the following to start the Selenium RC server if its not running: var proc = new Process(); proc.StartInfo.WorkingDirectory = Path.Combine(Directory.GetParent(Assembly.GetExecutingAssembly().Location).FullName, @"..\..\..\..\..\lib\SeleniumRC\selenium-server-1....

Is there a selenium API call to check if somethingIsSelected in a MultiSelectField??

I am aware that there is a selenium API (isSomethingSelected) used to see if a value is selected in single-select dropdown. Is there an equivalent for multiselect? ...

How to reuse eclipse launch file in a new project

I just checked out an svn project in eclipse as a java project. There is are couple of run launch files in it that i want to reuse but dont know how to point 'Run' to see those launch files or use it. Any tip? thanks ...

How can we open multiple IE instances while testing web appl. with selenium RC and java in eclipse?

I am running a test in Selenium RC with Java in Eclipse to browse two URLs. I get two Selenium windows, but testing of both URLs is done by opening one single IE window. How can I make it open the URLs on two different IE browsers and if possible, simultaneously? ...

How do I access the "newPageLoaded" flag in Selenium using the Ruby client?

From reading the Selenium documentation, I can see that there is a "newPageLoaded" flag that gets set when you perform a page-loading action. I'm trying to find out if there's a way to get at the value of that flag as the page is loading. How to do this using the Ruby client would be great. : ) ...

Best way to inspect HTTP response headers with Selenium?

Is it possible? I'm looking around the Selenium docs and don't see any straightforward way to do it. All help appreciated! ...