30 Questions
Which API is used to handle special keyboard and mouse events in Selenium Webdriver?
AdvancedUserInteractions API
Which method is used to perform a double click action in Selenium Webdriver?
doubleClick()
Which method is used to release a key after it has been pressed down using the Actions class in Selenium Webdriver?
keyUp()
Which method is used to send keys to an element using the Actions class in Selenium Webdriver?
sendKeys()
Which method is used to perform a right-click action in Selenium Webdriver?
contextClick()
Which method is used to move the mouse to a specific element in Selenium Webdriver?
moveToElement()
Which method is used to perform a drag and drop action in Selenium Webdriver?
dragAndDropBy()
Which method is used to press down a key using the Actions class in Selenium Webdriver?
keyDown()
What is the purpose of the build() method in Selenium Webdriver?
To execute the series of actions
Which method is used to perform a click action in Selenium Webdriver?
click()
Which class in Selenium is used for handling keyboard and mouse events?
Action
What is the purpose of the clickAndHold() method in the Actions class?
Performs click-and-hold at the current mouse location
What is the purpose of the contextClick() method in the Actions class?
Performs a context-click at the current mouse location
What is the purpose of the doubleClick() method in the Actions class?
Performs a double-click at the current mouse location
What is the purpose of the dragAndDrop() method in the Actions class?
Performs click-and-hold at the location of the source element, moves to the location of the target element, then releases the mouse
What are the parameters for the dragAndDrop() method in the Actions class?
source and target
What is the purpose of the dragAndDropBy() method in the Actions class?
Performs click-and-hold at the location of the source element, moves by a given offset, then releases the mouse
What are the parameters for the dragAndDropBy() method in the Actions class?
source, xOffset, and yOffset
What is the purpose of the keyDown() method in the Actions class?
Performs a modifier key press
What happens when the keyDown() method is called in the Actions class?
Performs a modifier key press
Which method is used to perform a key release?
keyUp(modifier_key)
What does the moveByOffset(x-offset, y-offset) method do?
Moves the mouse from its current position by the given offset
What does the moveToElement(toElement) method do?
Moves the mouse to the middle of the element
What does the release() method do?
Sends a series of keystrokes onto the element
What does the sendKeys(onElement, charsequence) method do?
Sends a series of keystrokes onto the element
What is the purpose of the Actions class in Selenium WebDriver?
To perform keyboard and mouse events
What is the purpose of the build() method in the Actions class?
To compile a series of actions into a single step
What is the purpose of the perform() method in the Actions class?
To execute the compiled actions
What does the getCssValue(property) method return?
The value of a specified CSS property of an element
What does the close() method do in Selenium WebDriver?
Closes the current browser window
Test your knowledge on the Action Class in Selenium and learn how to handle keyboard and mouse events, perform multiple events clicking, drag and drop operations, and more using the advanced user interaction API in Selenium Webdriver.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.