-
Notifications
You must be signed in to change notification settings - Fork 849
Description
What are you trying to achieve? (Expected behavior)
Just did a fresh install via composer and running a single line of code to get to a web-site (after setting up the browser), but it returns an error.
Not sure if it's releated to dependencies
What's strange is that when installing it via
php require php-webdriver/webdriver it only created 3 folders (composer, php-webdriver, symfony) and doing composer update does not add any additional folders. I also tried copying over the composer.json and running the "composer install" but this time it setups up a larger amount of files but there's no autoload.php
What do you get instead? (Actual behavior)
Error
Fatal error: Uncaught Facebook\WebDriver\Exception\WebDriverCurlException: Curl error thrown for http POST to /session with params: {"capabilities":{"firstMatch":[{"browserName":"chrome"}]},"desiredCapabilities":{"browserName":"chrome","platform":"ANY"}}
Operation timed out after 30004 milliseconds with 0 bytes received in /Applications/MAMP/htdocs/selenium/vendor/php-webdriver/webdriver/lib/Remote/HttpCommandExecutor.php:331
Stack trace:
#0 /Applications/MAMP/htdocs/selenium/vendor/php-webdriver/webdriver/lib/Remote/RemoteWebDriver.php(136): Facebook\WebDriver\Remote\HttpCommandExecutor->execute(Object(Facebook\WebDriver\Remote\WebDriverCommand))
#1 /Applications/MAMP/htdocs/selenium/scraper.php(23): Facebook\WebDriver\Remote\RemoteWebDriver::create('http://localhos...', Object(Facebook\WebDriver\Remote\DesiredCapabilities))
#2 {main}
thrown in /Applications/MAMP/htdocs/selenium/vendor/php-webdriver/webdriver/lib/Remote/HttpCommandExecutor.php on line 331
How could the issue be reproduced? (Steps to reproduce)
Installed the dependencies via composer and executed the test script
namespace Facebook\WebDriver;
use Facebook\WebDriver\Remote\DesiredCapabilities;
use Facebook\WebDriver\Remote\RemoteWebDriver;
require_once(__DIR__ . '/vendor/autoload.php');
$host = 'http://localhost:4444/wd/hub';
$driver = RemoteWebDriver::create(
$host,
DesiredCapabilities::chrome()
);
$driver->get("http://somesite.com");Details
- Php-webdriver version: 1.8
- PHP version: 7.1.33
- Selenium server version: selenium-server-standalone-3.141.59.jar
- Operating system: MacOS
- Browser used + version: ChromeDriver 81.0.4044.69