instaclick / php-webdriver

W3C and Selenium 2 webdriver "thin client" for php 5.3+ and namespaces.
Other
436 stars 62 forks source link

Could not open connection Error #101

Closed janvonmulert closed 4 years ago

janvonmulert commented 4 years ago

Getting this error when running Behat tests with @javascript

Could not open connection: Warning: Use of undefined constant CURLOPT_FOLLOWLOCATION - assumed 'CURLOPT_FOLLOWLOCATION' (this will throw an Error in a future version of PHP) in vendor/instaclick/php-webdriver/lib/WebDriver/WebDriver.php line 70 (Behat\Mink\Exception\DriverException)

Using Behat/Mink v1.7.1 Ubuntu 16.04 PHP 7.3.12 Selenium Server 3.141.5 running: 16:12:09.627 INFO [GridLauncherV3.parse] - Selenium server version: 3.141.5, revision: d54ebd709a 16:12:09.967 INFO [GridLauncherV3.lambda$buildLaunchers$3] - Launching a standalone Selenium Server on port 4444 2019-12-06 16:12:10.128:INFO::main: Logging initialized @2117ms to org.seleniumhq.jetty9.util.log.StdErrLog 16:12:10.967 INFO [WebDriverServlet.<init>] - Initialising WebDriverServlet 16:12:11.479 INFO [SeleniumServer.boot] - Selenium Server is up and running on port 4444

Please let me know if there is more info I should be providing.

robocoder commented 4 years ago

Requires the PHP curl extension to be installed.

janvonmulert commented 4 years ago

Thanks!