New to Selenium 2. Here's the issue: each time I run a test, the browser opens but refuses to load URLs. I simply get a blank page. Here's an example using Łukasz Kolczyński's bindings:
require_once "phpwebdriver/WebDriver.php";
$webdriver = new WebDriver("localhost", "4444");
$webdriver->connect("chrome");
$webdriver->get("http://google.com");
$element = $webdriver->findElementBy(LocatorStrategy::name, "q");
if ($element) {
$element->sendKeys(array("php webdriver" ) );
$element->submit();
}
$webdriver->close();
I simply get "data:text/html;charset=utf-8," in the address bar. Then the script closes.
I'm sure I'm doing something wrong. Any help would be greatly appreciated.
Notes: I'm currently running chromedriver, chrome 28, php 5.4.9, and OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)