Explorar o código

fix #20; WebElement::hover calls Driver::move_to

Robert Utter %!s(int64=12) %!d(string=hai) anos
pai
achega
056d374ff8
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      lib/Selenium/Remote/WebElement.pm

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

@@ -443,8 +443,7 @@ sub get_css_attribute {
 
 sub hover {
     my ($self) = @_;
-    my $res = { 'command' => 'hoverOverElement', 'id' => $self->{id} };
-    return $self->_execute_command($res);
+    return $self->{driver}->move_to( element => $self );
 }
 
 =head2 describe