selenium

Selenium - Can I hide the browser?

I am using Selenium RC to automate some browser operations but I want the browser to be invisible. Is it possible with Selenium RC. If yes, then how and if not then Is it possible through Selenium Grid. Can I hide the Selenium RC window also? ...

How to skip tests in PHPUnit if Selenium server is not running?

I want to add a suite of Selenium tests as part of a global PHPUnit test suite for an application. I have hooked the suite of Selenium tests into the global AllTests.php file and everything runs fine whilst the Selenium server is running. However, I would like the script to skip the Selnium tests if the Selenium server isn't running so...

How to get the full source of a link using selenium

I'm using selenium RC and want to get all the attributes and all. Something like: link = sel.get_full_link('//a[@id="specific-link"]') and the result would of: print link would be: <a id="specific-link" name="links-name" href="url"> text </a> Is this possible? thanks ...

Problem using Selenium to automate a postback link that is inside an ASP.NET UpdatePanel

I have a GridView control with sorting enabled inside an UpdatePanel. I used Selenium IDE to record a test that clicks on the sort link of the table, but when I try to execute the test it get's stuck on the click command. Looking at the log I see: [info] Executing: |click | link=Name | | [error] Timed out after 30000ms I haven't trie...

Access JavaScript variables with Selenium IDE

I'm wondering if it's possible to access page JavaScript variables with Selenium. I have an application that's using a variable attached to the window object. It has a global scope and I can access it either with window._myvar, window['_myvar'], _myvar, this['_myvar'], this._myvar depending on the context. So I tried to get Selenium to ...

Is Selenium platform specific?

Is Selenium paltform specific. If yes then how can I develop a cross-platform specific application with it by first identifying the platform and then call the platform-specific selenium routines. ...

Selenium - dialog box

When the browser launch is initiated by SeleniumRC, a dialog box always comes to ask for username/password to login to our proxy server (however, it is prepopulated with username/password, all has to be done is just press the OK button). selenium.open("/"); selenium.type("q", "selenium rc"); selenium.click("btnG"); selenium.waitForPageT...

how to stop selenium server on click of button using java ?

i have three projects generictest, testcase and testframework here generictest contains all the utility of selenium control. testcase contains all the testcases using junit and execute with selenium server and testframework show the qa dashboard it having two button start execution and stop execution and list of all testcases which are a...

Selenium RC Having problems with XPath

Hi, I'm using Selenium RC with chrome-mode for Firefox to automate test cases for a web application. I'm writing the scripts in Java using TestNG framework and Eclipse. Now to the main point: I'm having problems with Selenium RC for recognizing certain XPaths. I validate my XPaths with XPath-Checker extension for Firefox which shows no...

How to check URL for 404 using Selenium WebDriver?

What is the most convenient way using Selenium WebDriver to check if an URL GET returns successfully (HTTP 200)? In this particular case I'm most interested in verifying that no images of the current page are broken. ...

Verify maximum length of a field using selenium IDE

i need to verify maximum allowed length for a field using selenium IDE. need advise from someone. ...

Test pagination icons using selenium IDE

How can i test pagination icon functionality for a web page using Selenium IDE? ...

UAC Testing with Website Generated Email

We would like to use Selenium to test email content generated from our website. We could mock a mail server, but how would we assert the content of the emails? We're using nUnit/Selenium/C#. Does anyone have a good approach to accomplishing this? Thanks in advance! ...

Is Selenium a good piece of testing software to use?

On my last project, I created some test cases through Selenium, then automated them so they would run on every build launched from hudson. It worked fantastic, and was consistent for about a month. Then the tests started failing. It was, most times, timing issues which caused the failures. After about two weeks of effort put in over ...

Integration testing using Selenium and NUnit - From UI to DB

Hello! I am having some problems while trying to create integration tests with Selenium and NUnit. I'm trying to use Selenium RC in NUnit test to drive my ASP.NET web app, and would like the tests to actually do all the stuff in DB that the real user would do. Naturally it would be nice if the database could get rolled back after Selen...

Hudson + Selenium plugin - Getting HTTP error 403 when running tests

I am trying to test my application using Selenium tool via the Hudson plugin (the one called sleniumhq plugin). As a proof of concept I decided to make a very simple test targetting google, the test is the one below: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xh...

Selenium's Open function waits until what?

When I call the Open("[some URL]") method in Selenium, it waits until all resources (images, CSS, JS) are downloaded. But how does it know that the browser is done requesting resources? Here's my snippet of driver code (in C#): DefaultSelenium selenium = new DefaultSelenium( "localhost", 4444, "*iexplore", "http://www.stackoverflo...

Is there a way to take screenshots during a scheduled task if the user isn't logged in?

I have a scheduled task that runs a set of Selenium tests every night at 3:30am. These tests also take a screenshot if they fail and email that screenshot to the development team. The problem I'm having, however, is that the screenshots only work when I'm logged in to the virtual machine (Windows Server 2003) that runs the tests. If no o...

Selenium RC Having problems with XPath for a table

I'm trying to select an element given by: /html/body[@id='someid']/form[@id='formid']/div[@id='someid2']/div[@id='']/div[@id='']/div[@id='']/table/tbody[@id='tableid']/tr[7]/td[2] Now the html of that row I'm trying to select looks like this: <tr> <td class="someClass">some text</td> <td class="someClass2">my required text for verif...

Selenium Testing in Hudson question

Hi, I'm having some trouble running a simple selenium test through Hudson. I've installed the SeleniumHQ plugin for Hudson and configured a job to run a simple test suite which consists of two tests which run fine from the Selenium IDE and from the TestNG plugin in Eclipse. However, when I try to run them through Hudson, the testing j...