Main » Articles » Programming » Selenium |
Entries in category: 1 Shown entries: 1-1 |
Sort by: Date · Name · Rating · Comments · Views
Selenium → Selenium. Using custom firefox profile.
Technically the firefox profile can be hosted anywhere. It is just inserted as compressed encoded to base64 string in the invoking script.
You can create a packed firefox profile which includes any installed Firefox plugins:
Usage example:
You can create a packed firefox profile which includes any installed Firefox plugins:
cd /your/profile
zip -r profile *
base64 profile.zip profile.zip.b64
Usage example:
$web_driver = new WebDriver( $wd_host );
$desired_caps = array( "firefox_profile" => file_get_contents("/your/profile/profile.zip.b64") );
$session = $web_driver->session('firefox', $desired_caps );