Chapter 4

  1. True or false – the drag and drop action requires the source element and the target element.

True.

  1. List the keyboard methods that we can perform using the actions API.

sendKeys(), keyUp(), and keyDown().

  1. Which method of the actions API will help in performing a double-click operation?

doubleClick(WebElement target).

  1. 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();.

  1. How can we open a context menu using the actions API?

By calling the contextClick() method.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.17.150.89