The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Selenium::Client::Driver - Drop-In replacement for Selenium::Remote::Driver that supports selenium 4

VERSION

version 2.01

DESCRIPTION

Drop-in replacement for Selenium::Remote::Driver which supports selenium 4.

See the documentation for Selenium::Remote::Driver for how to use this module unless otherwise noted below.

Also, we support all valid Selenium::Client constructor arguments, so you will likely want to consult those.

There are also a number of constructor options from Selenium::Remote::Driver which are either entirely incompatible with selenium 4, are unimplemented or were bad ideas in the first place:

platform - TODO. Will have to work in Selenium::Client first.
default_finder - TODO. Will need a shim in Selenium::Client::Commands.
extra_capabilities - TODO. Use the options relevant to Selenium::Client instead
base_url - TODO. Will have to work in Selenium::Client first.
session_id - TODO. I don't even know if you can do this with the W3C spec.
inner_window_size - TODO. This function doesn't work right on any browser so we could only do a "best effort" try.
error_handler - TODO. While post_callbacks are supported, there is no shim to make old error_handler subs work as post_callbacks.
proxy - TODO. not sure this is even possible with S4 caps.
accept_ssl_certs - Not in the W3C spec. Just make a self-signed CA and slap that sucker in /etc/ssl/certs, then use that to issue your self-signed certs.
firefox_profile - Not in the W3C spec. If you can't get it done with moz:firefoxOptions, it ain't getting done.
pageLoadStrategy - Not in the W3C spec. If you want to properly wait on page loads, you will need either a view-source based state-machine or executing scripts. Welcome to hell.
webelement_class - Subclass Selenium::Client::Driver instead
javascript - Are you really using selenium to disable javascript? Seek Help.
version - good luck getting random versions of browsers to work!!! LOL!!!! Playwright patches them rather than rely on perpetually broken driver binaries.

Furthermore, selenium 4 totally fails at dealing with cookies and alerts.

ALTERNATIVES

My advice is to give up on this nonsense and...

use Playwright;

Instead. Or, wait until someone implements a WC3 compliant selenium server using playwright and we can end the madness.

SEE ALSO

Please see those modules/websites for more information related to this module.

BUGS

Please report any bugs or feature requests on the bugtracker website https://github.com/troglodyne-internet-widgets/selenium-client-perl/issues

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

AUTHORS

Current Maintainers:

  • George S. Baugh <george@troglodyne.net>

COPYRIGHT AND LICENSE

Copyright (c) 2024 Troglodyne LLC

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.