Printer FriendlyEmail Article Link

iTest: What is the use of fireEvent action in Selenium session.

Environment/Versions
  • iTest
Answer
  • We can use fireEvent action when the click action is not working on a particular target.
  • Fire event arguments which we specify under Selenium fireEvent Properties.
    • Send mouse events: Some applications require three events for a click: mousedown followed by mouseup and then mouseclick.
    • Keys: Check a box to add the specified key with the click (for example, Shift+click).
    • Coordinates:
      Specify the X and Y coordinates in pixels.
      Positive X is to the right and positive Y is down.
    • Client coordinates: The origin is the upper left corner of the bounding rectangle of the element.
    • Screen coordinates: The origin is the upper left corner of the screen.

Product : iTest Enterprise