{"repo":"spatie/selenium-client","free":true,"listed":false,"github":"https://github.com/spatie/selenium-client","clone":"git clone https://github.com/spatie/selenium-client.git","description":"A PHP Selenium client","language":"PHP","stars":31,"topics":["debugging","selenium","forms","testing","automation","browser"],"license":"MIT","category":"dev-tools","readme_excerpt":"PHP Selenium client Selenium is a great tool for testing. This package gives you a boilerplate setup to automate UI testing tasks you'd do manually otherwise. For example: you can make a scenario to test the flow of a form in one of your projects, without having to worry about setting up Selenium itself. This package uses Chrome by default, but you're able to override it with whatever driver you want. Support us We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products. We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall. Installation Usage You can add your own scenarios in the Scenarios folder. Next, you'll need to start the Selenium server like so: Next you can run your scenarios like so: Adding the --wait option will keep the browser open until you manually stop it. Making scenarios Scenario classes should extend Spatie\\Selenium\\Scenario . There are a few helper methods provided like $this- element($selector) and $this- click($selector) ; but you can also directly access the Selenium driver via $this- driver . For more information about the Selenium driver, please visit this repository. A simple scenario can look like this. Scenarios can be run with the execute command, in this case you'd run execute my . Changelog Please see CHA","default_branch":null,"files":null,"tree":[],"storefront":"/r/spatie","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/spatie/selenium-client/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}