… | |
… | |
229 | successfully. |
229 | successfully. |
230 | |
230 | |
231 | On success, C<< $wd->{sid} >> is set to the session id, and C<< |
231 | On success, C<< $wd->{sid} >> is set to the session id, and C<< |
232 | $wd->{capabilities} >> is set to the returned capabilities. |
232 | $wd->{capabilities} >> is set to the returned capabilities. |
233 | |
233 | |
234 | my $wd = new AnyEvent::Selenium host => "localhost", port => 4545; |
234 | my $wd = new AnyEvent::Selenium endpoint => "http://localhost:4545"; |
235 | |
235 | |
236 | $wd->new_session ({ |
236 | $wd->new_session ({ |
237 | capabilities => { |
237 | capabilities => { |
238 | pageLoadStrategy => "normal", |
238 | pageLoadStrategy => "normal", |
239 | }. |
239 | }. |