Problem
When trying to access the GWT Development Environment (http://127.0.0.1:8888/ApplicationScaffold.html?gwt.codesvr=127.0.0.1:9997) using Wedriver inside Junit a page requesting the installation of GWT Development Plugin. Even with the plugin already installed.
Reason
By default, the Wedriver driver to Firefox use a clean profile( new FirefoxDriver()) without any extensions.
O driver para o Firefox que o Webdriver utiliza está com um perfil limpo (new FirefoxDriver()), sem nenhuma extensão.
Solution
To configure the profile to use the GWT Development Plugin as follows:
Download the plugin from https://dl-ssl.google.com/gwt/plugins/firefox/gwt-dev-plugin.xpi and put in some place in your computer.
Configure the driver to use the plugin:
FirefoxProfile profile = new FirefoxProfile();
profile.addExtension(new File("path to gwt-dev-plugin.xpi"));
WebDriver driver = new FirefoxDriver(profile);
More informationhere: http://groups.google.com/group/webdriver/browse_thread/thread/c4f0ee7529c0c70a?pli=1
No comments:
Post a Comment