… | |
… | |
55 | |
55 | |
56 | use Carp (); |
56 | use Carp (); |
57 | use AnyEvent (); |
57 | use AnyEvent (); |
58 | use AnyEvent::HTTP (); |
58 | use AnyEvent::HTTP (); |
59 | |
59 | |
60 | our $VERSION = 0.2; |
60 | our $VERSION = 0.5; |
61 | |
61 | |
62 | our $WEB_ELEMENT_IDENTIFIER = "element-6066-11e4-a52e-4f735466cecf"; |
62 | our $WEB_ELEMENT_IDENTIFIER = "element-6066-11e4-a52e-4f735466cecf"; |
63 | |
63 | |
64 | my $json = eval { require JSON::XS; JSON::XS:: } || do { require JSON::PP; JSON::PP:: }; |
64 | my $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" => { |