Vangelis Katsikaros 9 anni fa
parent
commit
9d6e77cfd5
2 ha cambiato i file con 22 aggiunte e 0 eliminazioni
  1. 21 0
      lib/Selenium/Firefox.pm
  2. 1 0
      lib/Selenium/Remote/Driver.pm

+ 21 - 0
lib/Selenium/Firefox.pm

@@ -88,11 +88,32 @@ has '+wd_context_prefix' => (
     default => sub { '/hub' }
 );
 
+=attr marionette_binary_port
+
+Optional: specify the port that we should bind Marionette to. If you don't
+specify anything, we'll default to the driver's default port. Since
+there's no a priori guarantee that this will be an open port, this is
+_not_ necessarily the port that we end up using - if the port here is
+already bound, we'll search above it until we find an open one.
+
+See L<Selenium::CanStartBinary/port> for more details, and
+L<Selenium::Remote::Driver/port> after instantiation to see what the
+actual port turned out to be.
+
+=cut
+
 has 'marionette_binary_port' => (
     is => 'lazy',
     default => sub { 2828 }
 );
 
+=attr marionette_binary_port
+
+Optional: specify whether Marionette should be enabled or not. The
+firefox binary must have been built with this funtionality.
+
+=cut
+
 has 'marionette_enabled' => (
     is  => 'lazy',
     default => 0

+ 1 - 0
lib/Selenium/Remote/Driver.pm

@@ -144,6 +144,7 @@ you please.
         'javascript'           - <boolean>  - whether javascript should be supported
         'accept_ssl_certs'     - <boolean>  - whether SSL certs should be accepted, default is true.
         'firefox_profile'      - Profile    - Use Selenium::Firefox::Profile to create a Firefox profile for the browser to use
+        'marionette_enabled'   - <boolean>  - whether Firefox should enable Marionette. default if false
         'proxy'                - HASH       - Proxy configuration with the following keys:
             'proxyType' - <string> - REQUIRED, Possible values are:
                 direct     - A direct connection - no proxy in use,