Chapter 5
- True or false – the drag and drop action requires the source element and the target element.
True.
- List the keyboard methods that we can perform using the actions API.
sendKeys()
, keyUp()
, and keyDown()
.
- Which method of the actions API will help in performing a double-click operation?
doubleClick(WebElement target)
.
- Using the actions API, how can we perform a save option (that is to say, Ctrl + S)?
new Actions(driver) .sendKeys(Keys.chord(Keys.CONTROL, "s")) .perform();
.
- How can we open a context menu using the actions API?
By calling the contextClick()
method.