Selenium Webdriver move mouse to Point

后端 未结 8 1081
小鲜肉
小鲜肉 2020-12-05 11:24

I am currently trying to move the cursor to a point (org.openqa.selenium.Point) that has been set by checking for an occurrence of a marker on a live chart from

8条回答
  •  感动是毒
    2020-12-05 12:00

    Got it working with

    Actions builder = new Actions(driver);
    WebElement el = some element;
    builder.keyDown(Keys.CONTROL)
    .moveByOffset( 10, 25 )
    .clickAndHold(el)
    .build().perform();
    

提交回复
热议问题