Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // you'll need to modify this path so it points to the composer autoloader
- require_once __DIR__ . '/vendor/autoload.php';
- /**
- * since I'm running the selenium jar locally, this is all I need.
- * I just run it in the background and my php scripts connect to it and
- * the tests
- */
- $host = 'http://localhost:4444/wd/hub';
- $driver = RemoteWebDriver::create($host, DesiredCapabilities::firefox());
- $driver->get('http://google.com');
- $element = $driver->findElement(WebDriverBy::name('q'));
- $element->sendKeys('Cheese');
- $element->submit();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement