08. Actions

08. Actions

Actions

  • Consider the situation where certain actions will be performed using the mouse and key boards.
  • Actions like moving the mouse cursor on an element, double clicking, right clicking and dragging and dropping an element etc. All these actions are performed by using the mouse. These actions are called as mouse hover actions.?
  • Selenium directly cannot perform the mouse hover actions on the element.
  • In order to do action events, you need to use?org.openqa.selenium.interactions.Actions?class.
  • The Action class is user-facing API for emulating complex user action events. You can directly use this class rather than using the input devices, i.e. Keyboard or Mouse. It Implements builder pattern, in which a complex object is constructed that can be further used to create different representation of same object.

要查看或添加评论,请登录

Srinivas Prasad K T的更多文章

社区洞察

其他会员也浏览了