selenium

Is there a way to keep a selenium session persistent accross multiple tests?

I am testing a django application's frontend with selenium and that's first time I use it. I have multiple tests that test things after user logged in. I want them to be separate tests, but I want to have only log in once, is that possible? (As oppose to what I do right now: I log in first, then execute my testing actions of test1, then...

List of Selenium RC browser launchers

I am trying to find a full list of Selenium RC browser launchers. So far I've not been able to find any documentation that lists them all. I've gathered the following ones from various sources. *iexplore - Launches IE *firefox - Launches Firefox *safari - Launches Safari *opera - Launches Opera *googlechrome - Launches Google Chrome *...

How to generate a report for particular XHTML tag/attributes ?

I wan to check whole site's <img> image's for alt text. I want to get a report of, What is written in alt text or alt is defined or not from all images being used on whole site in every page. Is it possible to get report like this? after getting report i will put alt or if alt is already added but blank, then will write description text...

Selenium tests and continuous integration (Runniing browser in background)

We have Xserver-less CentOS system for continuous integration. So no UI. I want to run selenium test cases on it. I am using new Alpha version of Selenium2 which has WebDriver integration. It starts and ends browser by its own. Now, How do i start that in background ? Something similar is possible with Internet Explorer ? I am able t...

How to use Page Object pattern with Cucumber and Webrat / Selenium?

I'm looking at a cucumber test suite that is somewhat brittle right now; many small steps, and no knowledge of the page itself. I'd like to factor out the logic involved in the step definitions inside a series of Selenium PageObjects. As seen here. However, because I'm using Webrat and not Selenium, everything has to go through the We...

How do I change the default request timeout for Selenium 2?

I am currently using Selenium 2.0a2 in Java to access the Internet using an HtmlUnitDriver instance. The problem I am facing is that, when I attempt to access slow websites, the request times out. How can I increase the time that WebDriver waits before throwing a timeout exception? ...

Placing an embedded google map marker with Selenium

I have an asp.net website which as part of a wizard uses an embedded google map to select a location by clicking on the map to place a marker. How do I automate this with Selenium? In particular I've tried: ClickAt DoubleClickAt MouseDownAt MouseUpAt In all cases passing the map div id as the locator and "100,100" as the coordin...

How to verify whether Site seal logo is preseneted in my site or not by selenium ?

I have to capture Site seal. Which provided by third party for my site has been validated and is secured for online transactions. I couldn't capture its element id. If i right click it shows an alert "This Site Seal is protected". Is any way i can capture this by selenium. you can find site seal below the bottom pan in this URL:https://w...

Selenium or Rational Functional Tester

What do you recommend for testing purposes in Java environment (Selenium or Rational Functional Tester)? Could you write some pros and cons? I heard about MicroFocus TestPartner, do you have experience with it? ...

echo command not found while testing selenium with phpunit

I am getting an ERROR: Unknown command: 'echo' executing a selenium script with phpunit. Based on the output that echo command should be included in my version of PHPUnit. The selenium script does execute successfully in the firefox selenium IDE. mkdir_build: phpunit: [exec] PHPUnit 3.4.12 by Sebastian Bergmann. [exec] ...

Trying to create XPath from this HTML snippet

I have played for a while writing XPath but am unable to come up with exactly what I want. I'm trying to write XPath for link(click1 and click2 in code snippet below) based on known text(myidentity in code snippet below). Can someone take a look into and suggest possible solution? HTML code snippet: <div class="abc"> <a onclick="myc...

using xpath or css : How to get something which is selected on page

using xpath or css : How to get something which is selected on page using following html code. in following code, Element1 is selected on page and I wanted to find name of element that is selected on page. <div id="idc" class="tre"> <ul id="idCatT_srt_ul" class="abc"> <li class="treN treB treSelected" title="Element1 title"> ...

finding highlighted(preselcted) text using xpath or css

In following 2 snippets of html code, I'm trying to create xpath or css for finding if span(Element1 in snippet 1 and Element 2 in snippet 2) are highlighted(preselected) when page is loaded Snippet 1: <div id="idc" class="tre"> <ul id="idCatT_srt_ul" class="abc"> <li class="treN treB treSelected" title="Element1 title"> <...

Selenium and ckEditor

Does anybody know How I can get the ckEdtior to work with Selenium. I'm not able to get the focus to the "html edit" field or change the value of the html field. Does anybody has experience with this ? ...

How to convert Selenese (html) to Python programmatically?

How would I convert test cases made by Selenium IDE to Python without exporting every test case by hand? Is there any command line converter for that job? In the end I want to use Selenium RC and Pythons build in unittest to test my websites. Thanks a lot. Update: I started to write a converter but its too much work to implement all ...

How can I do Database testing with Selenium?

Does Selenium supports Database testing? If yes, how to do it? ...

Front-end testing - tools Selenium RC

Hello people, I am wondering what tool(s) do you use for front-end testing... Currently I am using Selenium RC as tool to test the front-end. I am quite happy with the result as I managed to integrate it with the ms build process etc. The problem with Selenium tests is that they are not always reliable especially if you browse with so...

Selenium not finding LiveValidation text.

I am using the Selenium IDE to test some of my web development. I am using the JQuery LiveValidation in my code. I have an input box with some javascript behind it that will do a regular expresson and either ouput "OK" or "Error" next to the input text box based on what the user has entered. For some reason when testing with selenium t...

How to run test cases in MS Excel from Selenium IDE?

How to run test cases in MS Excel from Selenium? Any books available to study Selenium test automation? ...

How to check if an element is visible with WebDriver

Hi, with WebDriver from Selenium 2.0a2 I am having trouble checking if an element is visible. WebDriver.findElement returns a WebElement, which unfortunately doesn't offer an isVisible method. I can go around this by using WebElement.clear or WebElement.click both of which throw an ElementNotVisibleException, but this feels very dirty....