Skip to content
PHP selenium IDE generator
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
Arsenic.php
README.md
composer.json
example.php
license.md

README.md

Arsenic

Simple PHP selenium IDE generator.

<?php
Arsenic::comment('Logout')->open('/logout')->deleteCookie('PHPSESSID')->open('/');
Arsenic::toFile('logout.html', 'Logout from application');

// login
Arsenic::waitForVisible($loginForm = '//form[@id="loginForm"]');
Arsenic::click('//a[@id="showLoginForm"]');
Arsenic::type($loginForm . '//input[@id="email"]', 'email@gmail.com');
Arsenic::type($loginForm . '//input[@id="password"]', '123456');
Arsenic::clickAndWait($loginForm . '//input[@type="submit"]');
Arsenic::waitForPageToLoad(3000);

Arsenic::comment('comment');

// repeats
for ($i = 0; $i < 5; $i++) {
	Arsenic::open('/404/' . $i);
}

// file export
Arsenic::toFile('example.html', 'title');
You can’t perform that action at this time.