Class Click

All Implemented Interfaces:
Composable, MultiPhased

public class Click extends MultiPhaseAction
Click is a subclass of MultiPhaseAction which clicks an element. StaleElementReferenceException may happen while Click tries to manipulate the element, so multi-phase is used to perform the action again.
Author:
Kimberly
  • Constructor Details

    • Click

      public Click(org.openqa.selenium.By by)
      Create a new action representing a click.
      Parameters:
      by - the element locating mechanism
    • Click

      public Click(org.openqa.selenium.By by, List<org.openqa.selenium.By> frameBySequence)
      Create a new action representing a click.
      Parameters:
      by - the element locating mechanism
      frameBySequence - the sequence of the frame locating mechanism for the element resides in frame(or frame in another frame and so on)
  • Method Details