2017 © Pedro Peláez
 

library fbdriver

A PHP client for WebDriver

image

ashar443/fbdriver

A PHP client for WebDriver

  • Saturday, October 15, 2016
  • by Ashar
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

php-webdriver – WebDriver bindings for PHP[modified to use with our own domain.]

Description

Php-webdriver library is PHP language binding for Selenium WebDriver, which allows you to control web browsers from PHP., (*1)

This WebDriver client aims to be as close as possible to bindings in other languages. The concepts are very similar to the Java, .NET, Python and Ruby bindings for WebDriver., (*2)

This is new version of PHP client, rewritten from scratch starting 2013. Using the old version? Check out Adam Goucher's fork of it at https://github.com/Element-34/php-webdriver, (*3)

Looking for API documentation of php-webdriver? See http://facebook.github.io/php-webdriver/, (*4)

Any complaint, question, idea? You can post it on the user group https://www.facebook.com/groups/phpwebdriver/., (*5)

Installation

Installation is possible using Composer., (*6)

If you don't already use Composer, you can download the composer.phar binary:, (*7)

curl -sS https://getcomposer.org/installer | php

Then install the library:, (*8)

php composer.phar require facebook/webdriver

Getting started

All you need as the server for this client is the selenium-server-standalone-#.jar file provided here: http://selenium-release.storage.googleapis.com/index.html, (*9)

Download and run that file, replacing # with the current server version., (*10)

java -jar selenium-server-standalone-#.jar

Then when you create a session, be sure to pass the url to where your server is running., (*11)

// This would be the url of the host running the server-standalone.jar
$host = 'http://localhost:4444/wd/hub'; // this is the default
  • Launch Firefox:, (*12)

    $driver = RemoteWebDriver::create($host, DesiredCapabilities::firefox());
    
  • Launch Chrome:, (*13)

    $driver = RemoteWebDriver::create($host, DesiredCapabilities::chrome());
    

You can also customize the desired capabilities:, (*14)

$desired_capabilities = DesiredCapabilities::firefox();
$desired_capabilities->setCapability('acceptSslCerts', false);
$driver = RemoteWebDriver::create($host, $desired_capabilities);
  • See https://github.com/SeleniumHQ/selenium/wiki/DesiredCapabilities for more details.

Changelog

For latest changes see CHANGELOG.md file., (*15)

More information

Check out the Selenium docs and wiki at http://docs.seleniumhq.org/docs/ and https://code.google.com/p/selenium/wiki, (*16)

Learn how to integrate it with PHPUnit Blogpost | Demo Project, (*17)

Support

We have a great community willing to try and help you!, (*18)

Currently we offer support in two manners:, (*19)

Via our Facebook Group

If you have questions or are an active contributor consider joining our facebook group and contributing to the communal discussion and support, (*20)

https://www.facebook.com/groups/phpwebdriver/, (*21)

Via Github

If you're reading this you've already found our Github repository. If you have a question, feel free to submit it as an issue and our staff will do their best to help you as soon as possible., (*22)

Contributing

Ashar Javed Virk Asist: Mubin, (*23)

The Versions

15/10 2016

dev-master

9999999-dev https://github.com/facebook/php-webdriver

A PHP client for WebDriver

  Sources   Download

Apache-2.0

The Requires

  • php >=5.3.19
  • ext-curl *

 

The Development Requires

selenium php facebook webdriver

15/10 2016

v1.1

1.1.0.0 https://github.com/facebook/php-webdriver

A PHP client for WebDriver

  Sources   Download

Apache-2.0

The Requires

  • php >=5.3.19
  • ext-curl *

 

The Development Requires

selenium php facebook webdriver

15/10 2016

v1.0

1.0.0.0 https://github.com/facebook/php-webdriver

A PHP client for WebDriver

  Sources   Download

Apache-2.0

The Requires

  • php >=5.3.19
  • ext-curl *

 

The Development Requires

selenium php facebook webdriver