Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

Latest commit

 

History

History
46 lines (29 loc) · 1.35 KB

README.md

File metadata and controls

46 lines (29 loc) · 1.35 KB

Build Status Coverage Status

Zolli\WebDriver

A Selenium JsonWire Protocol implementation

installation

$ composer require zolli/webdriver

Documentation

Documentation found inside this repository

Getting Started

include './vendor/autoload.php';

// Create required support classes
$capability = \Zolli\WebDriver\Capability\DesiredCapability::chrome();
$executor = new \Zolli\WebDriver\Http\Guzzle\GuzzleHttpCommandExecutor('http://localhost:4444/wd/hub');
$commandFactory = new \Zolli\WebDriver\Http\Command\HttpCommandFactory();

// Instantiate the driver
$driver = new \Zolli\WebDriver\Remote\RemoteDriver($executor, $commandFactory);

// Create a session
$session = $driver->createSession($capability);

// Use session to issue commands to the server
$session->navigateTo('https://google.com');

Contribution

Feel free to create issues and pull requests, but don't forget to comply with PSR-2.

License

This project licensed under Apache License 2.0

Apache Software Foundation Logo