March 2015
Intermediate to advanced
194 pages
3h 59m
English
In Selenium WebDriver, actions can be either mouse actions or keyboard actions. The selenium-based Actions API provides support to click on a particular location with or without elements and use keyboard shortcuts efficiently.
build() method generates all the composite actions. The following is the syntax for this function:action.build();
The following code snippet explains to you how you can generate actions using the build() method:
Actions action = new Actions(driver);
action.click(driver.findElement(By.locatorType("path")));
action.build();click() method performs a mouse click on the current mouse pointer location. The following is the syntax for this function:action.click(); action.click(driver.findElement(By. ...
Read now
Unlock full access