selenium2

How do I run firebug within selenium 2 ?

What's the best way to activate firebug in firefox when running Selenium 2 ? Edit: Ok, I realize "best" is open to interpretation, but the profile-based solution really used to be a pain with selenium 1.0. So any alternative is considered better until proved worse ;) ...

Selenium 2 - Switching focus to a frame that has no name/id

So right now I'm trying to figure out how I can switch focus to a frame in Selenium 2 when the frame has no name or id? For a named frame I do: driver.SwitchTo().Frame(FrameName); but what is there is no name? Has anyone had experience with this? ...

Selenium2 profile to accept untrusted certificates

I'm trying to use a firefox profile with selenium2 to accept untrusted certificates, but without any success. I'm using 2.0a5 of the selenium jar. If I start firefox with the profile manager manually and navigate to the site then there is no challenge from the browser, however in selenium I cannot avoid it. Any suggestions? ...

How to find a node(or element) in XPath, when the path to that node is always different

So I'm trying to check the XPath of a block of text to verify that the correct page has been returned. However, for the several sites and designs I'm testing(with Selenium 2), the block of text I'm searching for is always the same, but the XPath to it is always different(the block of text has no defining ID or Class, so I need to check t...

Selenium Webdriver - missing classes in maven repository

Hi, I have been using Selenium Webdriver successfully with JAR downloaded from their pages or code.google. But now I would like convert my project to use Maven repository. I found out that my required classes are in support module of webdriver and confirmed it in their repository ( classes Wait, WebDriverWait, ExpectedCondition). So I ...

The get() method times-out although the page is displayed correctly

I'm using Selenium 2 in Java, and when loading a web page using Webdriver's (the InternetExplorerDriver class) get() method a time-out is received and the execution halts although the page appears as completely loaded to me. I've tried using the WebDriverWait class but I can't figure out what function to provide as the condition to the u...

Selenium 2 WebDriver - Chrome - Getting the value from a text box that is set via JavaScript

Hi, I am using Selenium 2 (latest release from Googlecode) and I have it firing up Chrome and going to a url. When the page has loaded some javascript executes to set the value of a textbox. I tell it to find a textbox by id which it does but it doesn't have the value within it (if I hardcode a value it finds it). Looking at the Pag...

Migrating to Selenium 2

Selenium 2/Webdriver has all sorts of great benefits but there is one big drawback: it doesn't support running on a grid out of the box. Has anybody switched from using a SE1 grid to using SE2 serially and been satisfied with the results? I'm wondering if the benefits of SE2 make up for the expected loss of speed due to running serially...

Webdriver: Click "Share Location" button in Firefox

I am trying to use Webdriver to test a location aware website and would like to programatically (using WebDriver API call) click on the "Share Location" button that pops up when I click on a link to the location aware part of the web application. It is a browser prompt and does not seem to be a DOM element or javascript popup element. ...

Execute Selenium 2 Tests Against Remote Browser

I'd like to have a configuration where my build server runs a NUnit test that opens and drives a browser on a remote machine. What would be the best way to accomplish this? It was easy to do in Selenium 1, because the java proxy server sat between your tests and the browser. In Selenium 2, your tests communicate directory with the brow...

Selenium 2 window switching: Java

Hi basically I am trying to switch to a popup window then press a button on that popup window but from somereaon I am getting erros. Here is an example of the webpage http://i42.photobucket.com/albums/e326/limpep/example.png and here is my code for (String handle : driver.getWindowHandles()) { driver...

Selenium Page Object Reuse

I really like how selenium 2 by convention pushes you towards using PageObjects as POJOs, and then simply using the PageFactory to instantiate the fields in this class. What I am finding limiting is that we reuse a lot of elements on many different pages. The big problem is that these reused components do not have the same id / name wh...

Selenium 2/Webdriver - how to double click a table row (which opens a new window)

Hi, I'm using C# with Selenium 2.0 / Webdriver and I'm trying to simulate a double click on a table row that opens a new browser window. I have two problems: After locating the table row which has a unique classname (i.e. using findelement(By.classname("..."))) applying the click method (or select/submit) does not perform any action ...