WebDriverDemos
Comparison of PHP webdriver clients: instaclick/facebook/phpunit
Install / Use
/learn @DavertMik/WebDriverDemosREADME
PHP WebDriver Demos
Comparison of different WebDriver APIs in PHP
- PHPUnit Selenium2
- Element34/php-webdriver
- Instaclick/php-webdriver
- Facebook/php-webdriver
We wrote the same testcase using each of this clients. So you can compare the code and make your conclusions.
What is testing?
We are using site of Ukrainian railroad ticket booking http://booking.uz.gov.ua/. It was chosen because it has lots of ajax (so we use explicit waits).
Scenario
- open site
- enter "Ky" as departure point
- choose "Kyiv" from a list
- enter "Lv" as destination
- choose "Lviv" from a list
- set a date for tomorrow
- search for all trains
- choose the first train
- select the cheapest seats
- check that there is a popup with train name.
- we assert that popup contains train name
Usage
- Clone this repo
- Install Composer
- Run
php composer.phar install - Download and start latest Selenium server
- Execute tests one by one with PHPUnit
vendor/bin/phpunit tests/Element34WebDriverTest.php
vendor/bin/phpunit tests/FacebookWebDriverTest.php
vendor/bin/phpunit tests/InstaclickWebDriverTest.php
vendor/bin/phpunit tests/PHPUnitSelenium2Test.php
Credits
Tests developed by @DavertMik and @Blackakula
Related Skills
node-connect
342.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
85.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
342.5kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
