selenium: Calling second action fails

Meta -

OS: Windows 7

Selenium Version: 3.3.1

Browser: Firefox

Browser Version:

Expected Behavior -

E.g. move to one element -> click -> move to second element -> click

Actual Behavior -After calling second moveToElement i have exception:

org.openqa.selenium.InvalidArgumentException: Expected ‘id’ default mouse to be mapped to InputState whose subtype is undefined, got: pointerMove Build info: version: ‘3.3.1’, revision: ‘5234b325d5’, time: ‘2017-03-10 09:10:29 +0000’ System info: host: ‘DL-R90G0MZM’, ip: ‘172.19.200.157’, os.name: ‘Windows 7’, os.arch: ‘amd64’, os.version: ‘6.1’, java.version: ‘1.8.0_112’ Driver info: org.openqa.selenium.firefox.FirefoxDriver Capabilities [{moz:profile=C:\Users\LEONTI~1\AppData\Local\Temp\rust_mozprofile.cVOK88ksjN54, rotatable=false, timeouts={implicit=0, page load=300000, script=30000}, pageLoadStrategy=normal, platform=ANY, specificationLevel=0, moz:accessibilityChecks=false, acceptInsecureCerts=false, browserVersion=52.0, platformVersion=6.1, moz:processID=17900, browserName=firefox, platformName=windows_nt}] Session ID: ec191088-0eed-4e83-a734-54f253949de6

Steps to reproduce -

Sample WebPage:

<!DOCTYPE html>
<html>
<body>

<a href="http://www.w3schools.com/html/">Visit our HTML tutorial</a>
<p>

<a href="https://www.google.com/?hl=en&gws_rd=ssl">Google Search</a>
</body>
</html>

code:

//element1 - 1st link
new Actions(driver).moveToElement(element1).perform();
// do some action
//element2 - 2nd link
new Actions(driver).moveToElement(element2).perform();

Additional info: I use Java 1.8 and ‘selenium-java’ as maven dependency

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 4
  • Comments: 15 (4 by maintainers)

Most upvoted comments

我也遇到了这个问题,不知道怎么解决