浏览代码

Changed the name to Selenium::ActionChains

Emmanuel Peroumalnaik 10 年之前
父节点
当前提交
42a2e435af
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      lib/Selenium/ActionChains.pm
  2. 2 2
      t/11-action-chains.t

+ 1 - 1
lib/Selenium/Remote/Driver/ActionChains.pm → lib/Selenium/ActionChains.pm

@@ -1,4 +1,4 @@
-package Selenium::Remote::Driver::ActionChains; 
+package Selenium::ActionChains; 
 # ABSTRACT: Action chains for Selenium::Remote::Driver
 use Moo; 
 

+ 2 - 2
t/11-action-chains.t

@@ -4,7 +4,7 @@ use warnings;
 use JSON;
 use Test::More;
 use Test::Selenium::Remote::Driver;
-use Selenium::Remote::Driver::ActionChains;
+use Selenium::ActionChains;
 use Selenium::Remote::WDKeys 'KEYS';
 
 use FindBin;
@@ -17,7 +17,7 @@ my $harness = TestHarness->new(
 my %selenium_args = %{ $harness->base_caps };
 
 my $driver = Test::Selenium::Remote::Driver->new(%selenium_args);
-my $action_chains = Selenium::Remote::Driver::ActionChains->new(driver => $driver);
+my $action_chains = Selenium::ActionChains->new(driver => $driver);
 
 $driver->get('https://www.google.com');
 my $input_text = $driver->find_element("//input[\@type='text']");