Skip to content

Curl error thrown f or http POST #520

@imsheng

Description

@imsheng

How could the issue be reproduced? (Steps to reproduce)

PHP Fatal error: Uncaught Facebook\WebDriver\Exception\WebDriverCurlException: Curl error thrown f
or http POST to /session/9756a112-36bf-4999-bae7-59d8f506c253/url with params: {"url":"http://gam
e.hao123.com"}
Operation timed out after 30000 milliseconds with 0 bytes received in ...

$host = 'http://localhost:4444/wd/hub'; // this is the default
$capabilities = DesiredCapabilities::htmlUnit();
$capabilities->setJavascriptEnabled(false);
$driver = RemoteWebDriver::create($host, $capabilities, 5000);
//or
//$driver = RemoteWebDriver::create($host, $capabilities, 5000,5000);
$driver->get('http://game.hao123.com');
$html =$driver->getPageSource();

Details

  • Php-webdriver version: 1.5
  • PHP version: 7.1.7(cli)
  • Selenium server version: 3.8.1
  • Operating system: win 10
  • Browser used + version: htmlUnit ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions