Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sridharbandi/selenium-phpunit-template
PHP Facebook Webdriver & PHPUnit Example Project with Page Object Model
https://github.com/sridharbandi/selenium-phpunit-template
facebook page-object-model php php-webdriver phpunit selenium webdriver
Last synced: 19 days ago
JSON representation
PHP Facebook Webdriver & PHPUnit Example Project with Page Object Model
- Host: GitHub
- URL: https://github.com/sridharbandi/selenium-phpunit-template
- Owner: sridharbandi
- Created: 2018-05-31T22:08:57.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-06-01T10:26:06.000Z (over 6 years ago)
- Last Synced: 2024-11-14T12:54:22.124Z (3 months ago)
- Topics: facebook, page-object-model, php, php-webdriver, phpunit, selenium, webdriver
- Language: PHP
- Homepage:
- Size: 21.5 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## PHP Facebook Webdriver & PHPUnit Example Project with Page Object Model
### How to use?
Create the Page Objects of your Web application under **_pageobjects_** package, call those Page Objects in [PHPUnit](https://phpunit.de/) tests under **_tests_** package (Sample Page Objects, testcase included in this template)
### How to run?
To install the dependencies issue the below commands in project root directory
```javascript
composer update
```
> PHP and Composer to be installed as prerequisite.Run Selenium Server with required Webdriver binaries, example with chromedriver as below
```javascript
java -Dwebdriver.chrome.driver=/path/to/chromedriver -jar /path/to/selenium server/selenium-server-standalone-x.x.x.jar
```To run the tests issue the below command in project root directory
```javascript
./vendor/bin/phpunit tests
```
By default it runs in Chrome browser, you can specify which browser to use as well
```javascript
./vendor/bin/phpunit tests firefox
```Browsers added in this template are
* chrome
* firefox
* ie
* opera
* edge
* safari
* phantomjs> Feel free to modify it to your own needs :)