我目前正在尝试将光标移动到一个已被检测到的点(org.openqa.selenium.Point
),这个点是从实时图表中找到的,虽然我无法获取有关它的详细信息,但可以找到其X和Y坐标。
我该如何将鼠标移动到该点上,以打开底层的JavaScript菜单?
当前代码
//finds marker on the current web page
Point image = page.findImage("C:\\Pictures\\marker.png") ;
//move mouse to this x,y location
driver.getMouse().mouseMove((Coordinates) image);
这样不起作用,因为Point
无法转换为org.openqa.selenium.interactions.internal.Coordinates
。