I am using the RemoteWebDriver and trying to execute a couple of UI tests on a remote machine under Internet Explorer:
RemoteWebDriver driver = new RemoteWebDriver(new URL("http://127.0.0.1:4444/wd/hub"), DesiredCapabilities.internetExplorer());`
driver.get("http://bing.com");
driver.findElement(By.id("sb_form_q")).sendKeys("Cheese");
driver.findElement(By.id("sb_form_go")).click();
Using the following code works in FireFox and Chrome but not in IE. IF I run a plain web driver on my local machine it works fine. Does anyone know why this is the case or if there is a work around?
I am using Selenium-Server-Standalone-2.8.0 and the Selenium-Java-2.8.0 client drivers.
Thanks in advance.
I had problems with clicking using RemoteWebDriver and IE capabilities. I solved it by using sendKeys(Keys.ENTER) for links/buttons and sendKeys(Keys.SPACE) for radio buttons/checkboxes.