Giter Site home page Giter Site logo

anthrax3 / selenium-setup-webdriver Goto Github PK

View Code? Open in Web Editor NEW

This project forked from serbanghita/selenium-setup-webdriver

0.0 1.0 0.0 8 KB

Facebook's Webdriver wrapper for writing tests using Selenium Setup

Home Page: http://seleniumsetup.org

License: MIT License

PHP 100.00%

selenium-setup-webdriver's Introduction

Selenium-Setup-Webdriver is used to test the Selenium-Setup service implementation. It can also be used in testing environments, since it provides a WebDriver and WebDriverConfig factories. It also comes with a BrowserTestCase that you can use by extending your test cases.

Install

  1. git clone https://github.com/bogdananton/Selenium-Setup.git
  2. cd Selenium-Setup
  3. composer install
  4. php selenium-setup start - will start the default Selenium server
    1. Alternatively use php selenium-setup register yourServer and change yourServer.json to your needs.

Install Selenium-Setup-Webdriver

  1. git clone https://github.com/serbanghita/Selenium-Setup-Webdriver.git
  2. cd Selenium-Setup-Webdriver
  3. composer install
  4. phpunit -c phpunit.xml - will perform the checks from tests
    1. Tinker with phpunit.xml if you want fast changes in your setup (proxy, selenium server, specific browser). Eg. connecting to a different Selenium host and port.
    2. For extending your tests you need to override setUp method from BrowserTestCase and use your custom webdriver settings or the predefined from SeleniumSetupWebDriver\WebDriver\WebDriverFactory.

Usage

Now that you have validated your environment setup, you have two options:

  1. Use Selenium-Setup-Webdriver as a dependency in your test project. When writing tests, extend SeleniumSetupWebDriver\TestCase\BrowserTestCase.
  2. Use your own web driver setup and connect to the server(s) raised by Selenium-Setup.

selenium-setup-webdriver's People

Contributors

serbanghita avatar bogdananton avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.