|
@@ -142,6 +142,20 @@ has custom_args => (
|
|
|
default => sub { '' }
|
|
default => sub { '' }
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
|
|
+has 'marionette_port' => (
|
|
|
|
|
+ is => 'lazy',
|
|
|
|
|
+ builder => sub {
|
|
|
|
|
+ my ($self) = @_;
|
|
|
|
|
+
|
|
|
|
|
+ if ($self->isa('Selenium::Firefox') && $self->marionette_enabled) {
|
|
|
|
|
+ return find_open_port_above($self->marionette_binary_port);
|
|
|
|
|
+ }
|
|
|
|
|
+ else {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+);
|
|
|
|
|
+
|
|
|
=attr startup_timeout
|
|
=attr startup_timeout
|
|
|
|
|
|
|
|
Optional: you can modify how long we will wait for the binary to start
|
|
Optional: you can modify how long we will wait for the binary to start
|
|
@@ -262,6 +276,9 @@ sub _build_binary_mode {
|
|
|
my $port = $self->port + 0;
|
|
my $port = $self->port + 0;
|
|
|
return if $port == 4444;
|
|
return if $port == 4444;
|
|
|
|
|
|
|
|
|
|
+ my $marionette_port = $self->marionette_enabled ?
|
|
|
|
|
+ $self->marionette_port : 0;
|
|
|
|
|
+
|
|
|
if ($self->isa('Selenium::Firefox')) {
|
|
if ($self->isa('Selenium::Firefox')) {
|
|
|
my @args = ($port);
|
|
my @args = ($port);
|
|
|
|
|
|