-
Notifications
You must be signed in to change notification settings - Fork 61
Launching browsers
daluu edited this page Dec 13, 2011
·
9 revisions
$web_driver = new WebDriver();
$session = $web_driver->session('htmlunit', array('javascriptEnabled' => true, 'version' => '3.6'));
$web_driver = new WebDriver();
$session = $web_driver->session('firefox');
//can also pass desired capabilities array like with HTMLUnit
Adding a Firefox Profile, and setting profile setttings
TODO, but you should be able to by passing into desired capabilities array, a base64 encoded string of the profile content (i.e. read in profile file then convert to base64). See the following discussion for reference, using Java binding code as reference for implementation with PHP: http://groups.google.com/group/webdriver/browse_thread/thread/ebde7fe7986e1f6e/865a7f4c864b6630?lnk=gst&q=David#865a7f4c864b6630
$web_driver = new WebDriver();
$session = $web_driver->session('internet explorer');
//can also pass desired capabilities array like with HTMLUnit