Переглянути джерело

Use new shortname of Firefox Profile

Daniel Gempesaw 10 роки тому
батько
коміт
7e6f02e0b5
2 змінених файлів з 5 додано та 5 видалено
  1. 2 2
      lib/Selenium/Firefox/Profile.pm
  2. 3 3
      lib/Selenium/Remote/Driver.pm

+ 2 - 2
lib/Selenium/Firefox/Profile.pm

@@ -27,9 +27,9 @@ new Selenium::Remote::Driver.
 =head1 SYNPOSIS
 
     use Selenium::Remote::Driver;
-    use Selenium::Remote::Driver::Firefox::Profile;
+    use Selenium::Firefox::Profile;
 
-    my $profile = Selenium::Remote::Driver::Firefox::Profile->new;
+    my $profile = Selenium::Firefox::Profile->new;
     $profile->set_preference(
         'browser.startup.homepage' => 'http://www.google.com',
         'browser.cache.disk.capacity' => 358400

+ 3 - 3
lib/Selenium/Remote/Driver.pm

@@ -128,7 +128,7 @@ available here.
         'platform'             - <string>   - desired platform: {WINDOWS|XP|VISTA|MAC|LINUX|UNIX|ANY}
         'javascript'           - <boolean>  - whether javascript should be supported
         'accept_ssl_certs'     - <boolean>  - whether SSL certs should be accepted, default is true.
-        'firefox_profile'      - Profile    - Use S::R::D::Firefox::Profile to create a Firefox profile for the browser to use
+        'firefox_profile'      - Profile    - Use Selenium::Firefox::Profile to create a Firefox profile for the browser to use
         'proxy'                - HASH       - Proxy configuration with the following keys:
             'proxyType' - <string> - REQUIRED, Possible values are:
                 direct     - A direct connection - no proxy in use,
@@ -388,8 +388,8 @@ has 'firefox_profile' => (
     coerce    => sub {
         my $profile = shift;
         unless (Scalar::Util::blessed($profile)
-          && $profile->isa('Selenium::Remote::Driver::Firefox::Profile')) {
-            croak "firefox_profile should be a Selenium::Remote::Driver::Firefox::Profile\n";
+          && $profile->isa('Selenium::Firefox::Profile')) {
+            croak "firefox_profile should be a Selenium::Firefox::Profile\n";
         }
 
         return $profile->_encode;