Skip to content

Instantly share code, notes, and snippets.

View CydeSwype's full-sized avatar

Ian Miller CydeSwype

View GitHub Profile
aczietlow /
Last active March 6, 2024 22:48 — forked from huangzhichong/
Cheat sheet for using php webdriver (facebook/webdriver).

Webdriver PHP API workthough

  • Open a browser

    # start an instance of firefox with selenium-webdriver
    $browser_type = 'firefox'
    $host = 'http://localhost:4444/wd/hub'

$capabilities = array(\WebDriverCapabilityType::BROWSER_NAME => $browser_type);