Download the PHP package walterwhites/appium-module without Composer
On this page you can find all versions of the php package walterwhites/appium-module. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download walterwhites/appium-module
More information about walterwhites/appium-module
Files in walterwhites/appium-module
Package appium-module
Short Description Appium module for codeception
License MIT
Informations about the package appium-module
Appium module for Codeception
Easy Appium integration, iOS and Android Automation.
Appium-codeception-module
Table of Contents
- Install
- Tests
- config for iOS
- Generating tester classes
- Usage
- AppTestCase
- ILocatorStrategy interface
- IClassChainSearch interface
Install
Just add walterwhites/appium-module
to your project's composer.json file:
then run composer install
Tests
config for iOS
Generating tester classes
To generate actor class for the AndroidTester
/IosTester
defined inside android.suite.yml
and ios.suite.yml
run the following command:
usage
Below an example of a classic register method
- clickOnButton clicks on the button with label 'SIGN UP' then 'SIGN UP WITH EMAIL'
- setText updates the text field with value 'First name' to $params->firstName
- hideKeyboard closes the Keyboard (not working on all iOS devices)
- touchPositionedButon taps on a button or checkbox according his position
AppTestCase
ILocatorStrategy interface
default locatorStrategy is class chain, you can override it with the following statement
IClassChainSearch interface
IClassChainSearch is an interface which defines the way to search element in the class chain pattern, for example to search a button
default value defined in AppTestCase is label, so each time clickOnButton is called, the previous statement becomes
you can override it with the following statement
full example here
- the first clickOnButton clicks on button with label 'SIGN UP'
- the second clickOnButton clicks on button with name 'button_name'
- the third clickOnButton clicks on button with value 'button_value'
The second parameter of clickOnButton defines the time in ms before to perform the action