It’s no secret, that using of the PageObject pattern can drastically simplify functional test writing, but there was no PHP implementation at the moment, that will be close enough to the Selenium Java version.
I decided to fill that gap and created this library which uses all the good parts of the Java implementation, like:
@find-by('css' => '....')
)and none of the bad parts, like selectOptionByIndex
and such methods, that are
there just to preserve backwards compatibility.
Library consist of following 3 parts, which one to use it’s up to you:
setValue
method existed for a H1
tag.Dive into action by looking at the examples, read the documentation or learn more about the api first, it’s up to you.
Define the dependencies in your composer.json
:
Install/update your vendors: