aivaturi/Selenium-Remote-Driver — Issue #20: hover: Error while executing command: Server returned error code 404 and no data
Author: MattiL
Created: 2011-12-20 10:19:20+00:00
State: open

hover does not seem to work even though the element seems to be found all right and click on the same element works.

# hover: Error while executing command: Server returned error code 404 and no data at /Library/Perl/5.10.0/Selenium/Remote/WebElement.pm line 39

Selenium::Remote::Driver version 0.12. Mac OS X 10.6.8. Firefox 8.0.1.

my $element;
eval {
$element = $driver->find_element("//descendant::img[contains(\@src,'map-pin_big_')][$index]");
};
if ($@) {
diag("Could not find image: $@");
last;
}
eval {
$element->hover();
};
if ($@) {
diag("hover: $@");
exit 1;
}