ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent-WebDriver/WebDriver.pm
(Generate patch)

Comparing AnyEvent-WebDriver/WebDriver.pm (file contents):
Revision 1.16 by root, Wed Aug 29 05:06:49 2018 UTC vs.
Revision 1.17 by root, Wed Aug 29 05:55:23 2018 UTC

55 55
56use Carp (); 56use Carp ();
57use AnyEvent (); 57use AnyEvent ();
58use AnyEvent::HTTP (); 58use AnyEvent::HTTP ();
59 59
60our $VERSION = 0.2; 60our $VERSION = 0.5;
61 61
62our $WEB_ELEMENT_IDENTIFIER = "element-6066-11e4-a52e-4f735466cecf"; 62our $WEB_ELEMENT_IDENTIFIER = "element-6066-11e4-a52e-4f735466cecf";
63 63
64my $json = eval { require JSON::XS; JSON::XS:: } || do { require JSON::PP; JSON::PP:: }; 64my $json = eval { require JSON::XS; JSON::XS:: } || do { require JSON::PP; JSON::PP:: };
65$json = $json->new->utf8; 65$json = $json->new->utf8;
314 $wd->new_session ({ 314 $wd->new_session ({
315 capabilities => { 315 capabilities => {
316 alwaysMatch => { 316 alwaysMatch => {
317 pageLoadStrategy => "eager", 317 pageLoadStrategy => "eager",
318 unhandledPromptBehavior => "dismiss", 318 unhandledPromptBehavior => "dismiss",
319 # proxy => { proxyType => "manual", httpProxy => "1.2.3.4:56", sslProxy => "1.2.3.4:56" },
319 }, 320 },
320 firstMatch => [ 321 firstMatch => [
321 { 322 {
322 browserName => "firefox", 323 browserName => "firefox",
323 "moz:firefoxOptions" => { 324 "moz:firefoxOptions" => {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines