namespace Facebook\WebDriver;
use Facebook\WebDriver\Remote\DesiredCapabilities;
use Facebook\WebDriver\Remote\RemoteWebDriver;
require_once('vendor/autoload.php');
$host = 'http://localhost:4444/wd/hub';
$options = new ChromeOptions();
I have read this link when i creating object of class ChromeOptions
getting error
PHP Fatal error: Uncaught Error: Class 'Facebook\WebDriver\ChromeOptions' not found.
Add
use Facebook\WebDriver\Chrome\ChromeOptions;
to the top.
Try this.
$options = new Chrome\ChromeOptions();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With