Class Extract

All Implemented Interfaces:
Composable, MultiPhased

public class Extract extends MultiPhaseAction
Extract is a subclass of MultiPhaseAction which extract information from element by phases to avoid blocking the execution of other browser actions.
Author:
Kimberly
  • Constructor Details

    • Extract

      public Extract(org.openqa.selenium.By by, String textVariableName)
      Create an action to extract information from element.
      Parameters:
      by - the element locating mechanism
      textVariableName - text variable name; non-empty name means to get the visible (i.e. not hidden by CSS) text of the element(including sub-elements) as a variable of ActionComposer
    • Extract

      public Extract(org.openqa.selenium.By by, List<org.openqa.selenium.By> frameBySequence, String textVariableName)
      Create an action to extract information from element.
      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)
      textVariableName - text variable name; non-empty name means to get the visible (i.e. not hidden by CSS) text of the element(including sub-elements) as a variable of ActionComposer
    • Extract

      public Extract(org.openqa.selenium.By by, Map<String,String> attrVariableNames)
      Create an action to extract information from element.
      Parameters:
      by - the element locating mechanism
      attrVariableNames - (attribute name, variable name) pairs to set as variables. For each pair, Extract sets the property value of the element as a variable of ActionComposer if the property exists. If property doesn't exists, Extract sets the attribute value of the element as a variable of ActionComposer. If neither exists, null-value variable is set.
    • Extract

      public Extract(org.openqa.selenium.By by, List<org.openqa.selenium.By> frameBySequence, Map<String,String> attrVariableNames)
      Create an action to extract information from element.
      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)
      attrVariableNames - (attribute name, variable name) pairs to set as variables. For each pair, Extract sets the property value of the element as a variable of ActionComposer if the property exists. If property doesn't exists, Extract sets the attribute value of the element as a variable of ActionComposer. If neither exists, null-value variable is set.
    • Extract

      public Extract(org.openqa.selenium.By by, String textVariableName, Map<String,String> attrVariableNames)
      Create an action to extract information from element.
      Parameters:
      by - the element locating mechanism
      textVariableName - text variable name; non-empty name means to get the visible (i.e. not hidden by CSS) text of the element(including sub-elements) as a variable of ActionComposer
      attrVariableNames - (attribute name, variable name) pairs to set as variables. For each pair, Extract sets the property value of the element as a variable of ActionComposer if the property exists. If property doesn't exists, Extract sets the attribute value of the element as a variable of ActionComposer. If neither exists, null-value variable is set.
    • Extract

      public Extract(org.openqa.selenium.By by, List<org.openqa.selenium.By> frameBySequence, String textVariableName, Map<String,String> attrVariableNames)
      Create an action to extract information from element.
      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)
      textVariableName - text variable name; non-empty name means to get the visible (i.e. not hidden by CSS) text of the element(including sub-elements) as a variable of ActionComposer
      attrVariableNames - (attribute name, variable name) pairs to set as variables. For each pair, Extract sets the property value of the element as a variable of ActionComposer if the property exists. If property doesn't exists, Extract sets the attribute value of the element as a variable of ActionComposer. If neither exists, null-value variable is set.
  • Method Details