Recorded beneath are a portion of the key mouse activities that one would run over in the majority of the applications -
- Snap − Performs a Click. We can likewise play out a tick dependent on organizes.
- contextClick − Performs a setting click/right-click on a component or dependent on the directions
- doubleClick − Performs a double tap on the webelement or dependent on the directions. Whenever left vacant, it performs double tap on the present area.
- mouseDown − Performs a mouse-down activity on a component or dependent on arranges.
- mouseMove − Performs a mouse-move activity on a component or dependent on arranges.
- mouseUp − Releases the mouse as a rule followed by mouse-down and acts dependent on co-ordinates.
Here are the sentence structure to call mouse activities utilizing Selenium WebDriver -
void click(WebElement onElement)
void contextClick(WebElement onElement)
void doubleClick(WebElement onElement)
void mouseDown(WebElement onElement)
void mouseUp(WebElement onElement)
void mouseMove(WebElement toElement)
void mouseMove(WebElement toElement, long xOffset, long yOffset)