1
0
Эх сурвалжийг харах

Fix #421: Typo when trying to use action chains in webelement drag

prevented the method from working
George S. Baugh 6 жил өмнө
parent
commit
a719a497c0

+ 4 - 0
Changes

@@ -1,5 +1,9 @@
 Revision history for Selenium-Remote-Driver
 Revision history for Selenium-Remote-Driver
 
 
+1.32   XX-XX-2019 TEODESIAN
+        [BUG FIXES]
+        - Fix typo in WebElement drag() talking to action chains module.  No wonder that didn't work
+
 1.31   01-06-2019 TEODESIAN
 1.31   01-06-2019 TEODESIAN
         [BUG FIXES]
         [BUG FIXES]
         - Kill dangling driver processes in Selenium::Chrome/Firefox on unix hosts
         - Kill dangling driver processes in Selenium::Chrome/Firefox on unix hosts

+ 1 - 1
lib/Selenium/Remote/WebElement.pm

@@ -615,7 +615,7 @@ Provide element you wish to drag to as argument.
 sub drag {
 sub drag {
     my ($self,$target) = @_;
     my ($self,$target) = @_;
     require Selenium::ActionChains;
     require Selenium::ActionChains;
-    my $chain = Selenium::ActionChians->new( driver => $self->driver );
+    my $chain = Selenium::ActionChains->new( driver => $self->driver );
     return $chain->drag_and_drop($self,$target)->perform();
     return $chain->drag_and_drop($self,$target)->perform();
 }
 }