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

Zolli/WebDriver

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages