Просмотр исходного кода

Put startup_timeout docs in each of the binary classes

Daniel Gempesaw 10 лет назад
Родитель
Сommit
f3010c93fa
3 измененных файлов с 39 добавлено и 0 удалено
  1. 13 0
      lib/Selenium/Chrome.pm
  2. 13 0
      lib/Selenium/Firefox.pm
  3. 13 0
      lib/Selenium/PhantomJS.pm

+ 13 - 0
lib/Selenium/Chrome.pm

@@ -79,4 +79,17 @@ has '_binary_args' => (
 
 with 'Selenium::CanStartBinary';
 
+=attr startup_timeout
+
+Optional: specify how long to wait for the binary to start itself and
+listen on its port. The default duration is arbitrarily 10 seconds. It
+accepts an integer number of seconds to wait: the following will wait
+up to 20 seconds:
+
+    Selenium::Chrome->new( startup_timeout => 20 );
+
+See L<Selenium::CanStartBinary/startup_timeout> for more information.
+
+=cut
+
 1;

+ 13 - 0
lib/Selenium/Firefox.pm

@@ -81,4 +81,17 @@ has '_binary_args' => (
 
 with 'Selenium::CanStartBinary';
 
+=attr startup_timeout
+
+Optional: specify how long to wait for the binary to start itself and
+listen on its port. The default duration is arbitrarily 10 seconds. It
+accepts an integer number of seconds to wait: the following will wait
+up to 20 seconds:
+
+    Selenium::Firefox->new( startup_timeout => 20 );
+
+See L<Selenium::CanStartBinary/startup_timeout> for more information.
+
+=cut
+
 1;

+ 13 - 0
lib/Selenium/PhantomJS.pm

@@ -92,4 +92,17 @@ has '_binary_args' => (
 
 with 'Selenium::CanStartBinary';
 
+=attr startup_timeout
+
+Optional: specify how long to wait for the binary to start itself and
+listen on its port. The default duration is arbitrarily 10 seconds. It
+accepts an integer number of seconds to wait: the following will wait
+up to 20 seconds:
+
+    Selenium::PhantomJS->new( startup_timeout => 20 );
+
+See L<Selenium::CanStartBinary/startup_timeout> for more information.
+
+=cut
+
 1;