XXX
$wd->new_session ($name => $value, ...)->then (sub { $session = shift })
-
Create a new WebDriver session.
Following options can be specified as name/value pairs of the method arguments:
- http_proxy_url => $url
-
The URL of the HTTP proxy used by the session's browser. The value must be a Web::URL object whose
scheme
ishttp
andhost
andport
identify the proxy server. - https_proxy_url => $url
-
The URL of the TLS proxy (for HTTPS connections) used by the session's browser. The value must be a Web::URL object whose
scheme
ishttp
andhost
andport
identify the proxy server.
The method returns a promise (Promise) which is to be resolved with a Web::Driver::Client::Session object (or to be rejected with an error).
DEPENDENCY
The module requires Perl 5.8 or later.
It requires modules from following repositories, which are submodules of this Git repository:
- the perl-web-datetime repository <https://github.com/manakai/perl-web-datetime>
- the perl-web-encodings repository <https://github.com/manakai/perl-web-encodings>
- the perl-web-resources repository <https://github.com/manakai/perl-web-resource>
- the perl-web-url repository <https://github.com/manakai/perl-web-url>
- the perl-charclass repository <https://github.com/manakai/perl-charclass>
- the perl-json-ps repository <https://github.com/manakai/perl-json-ps>
- the perl-promise repository <https://github.com/wakaba/perl-promise>
AUTHOR
Wakaba <wakaba@suikawiki.org>
LICENSE
Copyright 2016-2022 Wakaba <wakaba@suikawiki.org>.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.