|
@@ -43,29 +43,4 @@ LOCAL: {
|
|
'Error message for not finding a selenium server is helpful' );
|
|
'Error message for not finding a selenium server is helpful' );
|
|
}
|
|
}
|
|
|
|
|
|
-SAUCE: {
|
|
|
|
- SKIP: {
|
|
|
|
- my $host = 'ondemand.saucelabs.com';
|
|
|
|
- my $port = 80;
|
|
|
|
- my $sock = IO::Socket::INET->new(
|
|
|
|
- PeerAddr => $host,
|
|
|
|
- PeerPort => $port,
|
|
|
|
- );
|
|
|
|
-
|
|
|
|
- skip 'Cannot reach saucelabs for Sauce error case ', 1
|
|
|
|
- unless $sock;
|
|
|
|
-
|
|
|
|
- like(exception {
|
|
|
|
- Selenium::Remote::Driver->new_from_caps(
|
|
|
|
- remote_server_addr => $host,
|
|
|
|
- port => $port,
|
|
|
|
- desired_capabilities => {
|
|
|
|
- browserName => 'invalid'
|
|
|
|
- }
|
|
|
|
- );
|
|
|
|
- }, qr/Sauce Labs/,
|
|
|
|
- 'Saucelabs errors are passed to user');
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
done_testing;
|
|
done_testing;
|