Search code examples
seleniummousedown

how to use "mouseDown" command in selenium?


How to use mouseDown and mouseOver etc in selenium, with the websites I am working click is working but how to use mouse related commands?


Solution

  • You should use Action Builder

    Actions builder = new Actions(driver);
    builder.moveToElement(element).build().perform();
    

    (for the Mouse Over) More info here

    With Selenium IDE, you need to execute some javascript code. See here