webdriver

How to compile a java application which uses Google webdriver from comand line without ant

Hi, I want to compile an example code which using google`s webdriver. I saved webdriver into /home/iyo/webdriver. My code is: package com.googlecode.webdriver.example; import com.googlecode.webdriver.By; import com.googlecode.webdriver.WebDriver; import com.googlecode.webdriver.WebElement; import com.googlecode.webdriver.htmlun...

Is it possible to retrieve the contents of a html textarea with XPath?

I've looked all over but I can't find any leads. Is it possible to do something like: //textarea/<some kind of function?> or <function>(//textarea) I know I can do this using JS, or any number of other techniques, but I'm asking because I'm using WebDriver and Firefox to test a TinyMCE textarea input, and because of JS execution de...

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. ...

HtmlUnit proxy issue

Dear folks, It is about WebDriver, particularly HtmlUnitDriver and FirefoxWebDriver I used the same proxy settings for both HtmlUnitDriver and FirefoxWebDriver, but only FirefoxWebDriver works. What I got with HtmlUnitDriver was "Access denied" from the proxy server. I got a blank page when I didn't use proxy settings. I don't think i...

How to get image details from firefox webdriver?

Hello, I've got an image on a page rendered by Firefox via Webdriver, I can get its object (wd.find_element_by_xpath("id('main')/form/p[5]/img")), but how can I get its body either base64-encoded or just a location on my hard drive? PS: please don't suggest getting the src and fetching it with an external tool. I want the image I alread...

How to access Firefox cache from webdriver?

Hello, I'm able to access pages like about:cache-entry?client=HTTP&sb=1&key=(some URL) directly in Firefox, but when it renders the page, it certainly gets the data from some storage. How can I access the latter from Python Firefox Webdriver? ...

How to change firefox proxy from webdriver?

Hello, how can I access Firefox proxy settings from Python Webdriver and change them to make Firefox use modified proxy settings without needing to restart it? ...

Python Webdriver doesn't wait until the page is downloaded in Firefox when used with proxy

Hello, when I set the Firefox proxy with python webdriver, it doesn't wait until the page is fully downloaded, this doesn't happen when I don't set one. How can I change this behavior? Or how can I check that the page download is over? ...

How to delete Firefox cookies from webdriver in python?

Hello, when I can't delete FF cookies from webdriver. When I use the .delete_all_cookies method, it returns None. And when I try to get_cookies, I get the following error: webdriver_common.exceptions.ErrorInResponseException: Error occurred when processing packet:Content-Length: 120 {"elementId": "null", "context": "{9b44672f-d547-43a8-...

How does python webdriver work?

Hi, I want to add some features to webdriver, but since I don't know Java at all, I want to understand the way it works first. So as I get it, there is a firefox plugin (javascript) and there is java code that starts firefox with that extension installed, then this java code listens to a local port and when it gets some command, java sig...

HTTP Basic Auth and Proxy for selenium-webdriver (ruby bindings)

I'm attempting to use the selenium-webdriver [ruby bindings][1] to access an internal web-site that requires a proxy to be configured, and HTTP Basic Auth. I currently have: require "selenium-webdriver" driver = Selenium::WebDriver.for :firefox driver.navigate.to "http://my-internal-site.com" But this fails due to both the pro...

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. ...

How to run Selenium 2.0 RC -htmlSuite with WebDriver?

I tried Selenium 2.0 (documentation says it's using WebDriver) as so: java -jar selenium-server-standalone-2.0a1.jar -htmlSuite "*firefox" ... but it seems that the WebDriver backend isn't used (especially since I haven't installed any Firefox plugin)? All Selenium 2.0 documentation uses Java interface, but it seems that using HTML su...

WebRat+Selenium WebDriver: wait for ajax to be completed

We are running Webrat with Selenium2.0 aka WebDriver in our application. WebDriver handles page reloading very well and do not start next steps if the browser is reloading entire page. The problem is that this mechanism doesn't work with Ajax requests. WebDriver doesn't do any idle when there some after click() or change(). Can anyone ...

Selenium Webdriver (FirefoxDriver)

Hey all, I'm using Selenium Webdriver to do some robottesting. Since some functions appear to only work in Firefox, I'm obligated to use Firefoxdriver. Now and then, something weird happens. Starting up te driver driver = new FirefoxDriver(); driver.get(URL); gets firefox to startup but not to go to the specified url. The st...

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? ...

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....

"Exception: No extension found at None" when trying on use Selenium Firefox WebDriver on a Mac

Any ideas? In [1]: from selenium.firefox.webdriver import WebDriver In [2]: d=WebDriver() --------------------------------------------------------------------------- Exception Traceback (most recent call last) /usr/local/selenium-read-only/<ipython console> in <module>() /opt/local/Library/Frameworks/P...

RemoteWebDriver InternetExplorer navigate().to() timeout?

i was running a test remotely on internet explorer, and when using navigate().to() selenium returns me this: "12:13:58.770 INFO - WebDriver remote server: Exception: The driver reported that the command timed out. There may be several reasons for this. Check that the destinationsite is in IE's 'Trusted Sites' (accessed from Tools->Intern...

Checking if an element is visible in Chrome using Selenium Remote WebDriver

Is there a cross browser solution to check if an element is visible using WebDriver? The solution for IE and firefox is to cast the object to a RenderedRemoteWebElement and then call the property Displayed. I'm using the following methods to return if a element is visible: /// <summary> /// Check if the control is visible. /// </summa...