blackakula / wdebug
PHP Webdriver Debugger
Requires
- php: >=5.4.0
- ext-json: *
- facebook/webdriver: =1.0.1
Requires (Dev)
- chrome/webdriver: >=2.4
- claylo/selenium-server-standalone: >=2.32.0
This package is not auto-updated.
Last update: 2024-12-17 06:42:06 UTC
README
Description
WDebug was developed to simplify writing, supporting and debugging locators (xpath, css selector, etc) for webdriver.
With this tool you can add, edit and remove locators during your automation script execution. Integrate tool with your framework - and you'll be able to save changed locators.
Tool uses facebook/webdriver bindings for PHP.
See WDebug tool integrated with custom framework in action on youtube: http://www.youtube.com/watch?v=0-PTAFEce60.
Installation
-
git clone https://github.com/blackakula/wdebug.git
-
If you are using Packagist, add the dependency. https://packagist.org/packages/blackakula/wdebug
{ "require": { "blackakula/wdebug": "1.*" } }
-
Start using facebook/webdriver
-
See example.php for usage sample.
Features
See the video for functional abilities.
Tool consists of one class with 3 public methods
- setStyle(), deleteStyle() are used to prepare custom styles for highlighting page elements.
- execute() starts debugging tool: show popup and wait for user actions until popup is closed. Here you can pass callback on all user actions (add/delete locator/placeholder) to integrate tool with your custom framework. Interface of callback: function($type, array $data). See sample in example.php script.