selenium - PHP Webdriver - target pages don't load in browser -
new selenium 2. here's issue: each time run test, browser opens refuses load urls. blank page. here's 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 "data:text/html;charset=utf-8," in address bar. script closes.
i'm sure i'm doing wrong. appreciated.
notes: i'm running chromedriver, chrome 28, php 5.4.9, , openjdk 64-bit server vm (build 23.7-b01, mixed mode)
i had same problem. not work , opted use facebook version of web driver.
just make sure using latest version of php otherwise not work desired.
here links: facebook git location: https://github.com/facebook/php-webdriver
Comments
Post a Comment