We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 118ea1e commit 584cd3aCopy full SHA for 584cd3a
1 file changed
t/10-switch-to-window.t
@@ -7,16 +7,21 @@ use Selenium::Remote::Mock::RemoteConnection;
7
8
use FindBin;
9
use lib $FindBin::Bin . '/lib';
10
+use Test::MockModule;
11
use TestHarness;
12
13
my $harness = TestHarness->new(
14
this_file => $FindBin::Script
15
);
16
-my @browsers = qw/chrome firefox/;
17
+my @browsers = qw/chrome/;
18
19
$Selenium::Remote::Driver::FORCE_WD2 = 1;
20
21
+my @sessions = qw{897bfa82-0f28-4875-8544-5cc02e8b82f6};
22
+my $mock = Test::MockModule->new('Selenium::Remote::Driver');
23
+$mock->redefine('new_session', sub { my $s = shift; $s->{session_id} = shift @sessions } );
24
+
25
foreach (@browsers) {
26
my %selenium_args = (
27
default_finder => 'css',
0 commit comments