Download the PHP package modelizer/selenium without Composer

On this page you can find all versions of the php package modelizer/selenium. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package selenium

Laravel 5.x Testing for Selenium made easy.

Code Climate StyleCI Latest Stable Version Total Downloads License

Key Points:

  1. You don't need to download anything except this package.
  2. This package download the selenium standalone server v3.11.0 by default and chrome driver will be downloaded based on operating system.
  3. Fluit API based on Browser Testing Kit
  4. Has a minimum configuration option and many things are pulled from the Laravel default configuration.
Version Package Version
Laravel 5.6 2.0
Laravel 5.* 1.0
PHP 7.1 2.0

Requirements:

  1. Java should be installed on local machine.
  2. You should have at least basic understanding of PHPUnit.

Installation guide:

Installing with Laravel Package Manager then you can install it by running given command and Manager will take care to register selenium service provider.

Or you can do it by composer.

Register service provider in app.php

Working with environment variables: You need to create sperate file testing.env in root directory to load testing specific variable. example

Don't forget to clear laravel configuration cache file.

We are done! Lets start the selenium server.

Create first test:

Via an Artisan command

Manually

  1. Create a dummy SeleniumExampleTest.php file in tests directory.
  2. Add this code to SeleniumExampleTest.php file and run phpunit vendor/bin/phpunit tests/SeleniumExampleTest.php

Run the test cases

This package is been build on top of Steward for running test case with specific arguments you can check out Steward's Wiki

For full documentation you can checkout our API wiki. Which internally inherit facebook Web Driver so you can liverage full functionality of these dependency packages.

Notes:

  1. Selenium 3.11.0 and ChromeDriver 2.35 is been used.
  2. Feel free to contribute or create an issue.
  3. The user will not be able to swap between PHPUnit and Selenium who are below Laravel 5.3.
  4. We made changelog as release board and wiki.
  5. If a virtual machine is being used such as VirtualBox (Vagrant, Homestead), a framebuffer is needed:

Roadmap:

  1. Firefox support added. (Note: Only work when user has installed firefox locally)
  2. Windows and Linux support needs to be added.
  3. Drivers files should get downloaded as per user-specific operating system.
  4. Add more support for more API.
  5. Support for multiple browser.
  6. Behat integration if possible (research)
  7. Support for 3rd party services such as saucelab.

Summary:

Many APIs such as see, wait, submitForm etc are been implemented in Laravel 5.3, and the whole goal of this package is to make it easier for the user to swap testing type anytime. Eg: If a user wants to test by selenium then he only need to extend Modelizer\Selenium\SeleniumTestCase in his test case or if he wants to do PHPUnit testing then he will be able to do it by extending TestCase which Laravel 5.3 provide by default. This will help the user to test a case in many different testing types without doing any changes with API.

Contribution:

  1. If you like this package you can give it a star.
  2. Help to keep readme up to date with some functionality which exist in this package but not visible to other.
  3. Feel free to create PR or Issues or suggestion which can help this package to grow. Just do it. You are welcome :)

Credits

Contributors Twitter Ask for Help Site
Mohammed Mudassir (Creator) @md_mudasir [email protected] http://mudasir.me

All versions of selenium with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
lmc/steward Version dev-master
guzzlehttp/guzzle Version ^6.2
orchestra/testbench Version ^3.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package modelizer/selenium contains the following files

Loading the files please wait ....