NAME

Selenium::Remote::RemoteConnection - Connect to a selenium server

VERSION

version 1.45

SYNOPSIS

my $driver = Selenium::Remote::Driver->new();
eval { $driver->remote_conn->check_status() };
die "do something to kick the server" if $@;

DESCRIPTION

You shouldn't really need to use this module unless debugging or checking connections when testing dangerous things.

CONSTRUCTOR

new(%parameters)

Accepts 5 parameters:

remote_server_addr - address of selenium server
port - port of selenium server
ua - Useful to override with Test::LWP::UserAgent in unit tests
debug - Should be self-explanatory
error_handler - Defaults to Selenium::Remote::ErrorHandler.

These can be set any time later by getter/setters with the same name.

METHODS

check_status

Croaks unless the selenium server is responsive. Sometimes is useful to call in-between tests (the server CAN die on you...)

request

Make a request of the Selenium server. Mostly useful for debugging things going wrong with Selenium::Remote::Driver when not in normal operation.

AUTHORS

Current Maintainers:

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

Previous maintainers:

  • Daniel Gempesaw <gempesaw@gmail.com>

  • Emmanuel Peroumalnaïk <peroumalnaik.emmanuel@gmail.com>

  • Luke Closs <cpan@5thplane.com>

  • Mark Stosberg <mark@stosberg.com>

Original authors:

  • Aditya Ivaturi <ivaturi@gmail.com>

COPYRIGHT AND LICENSE

Copyright (c) 2010-2011 Aditya Ivaturi, Gordon Child

Copyright (c) 2014-2017 Daniel Gempesaw

Copyright (c) 2018-2021 George S. Baugh

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.