Class Wrapper

java.lang.Object
com.workfusion.rpa.helpers.conditionsnative.UiCondition
com.workfusion.rpa.helpers.conditions.UiCondition
com.workfusion.rpa.helpers.conditions.Wrapper
All Implemented Interfaces:
com.google.common.base.Predicate<com.workfusion.rpa.internal.api.element.WebElement>, Predicate<com.workfusion.rpa.internal.api.element.WebElement>

@Deprecated public class Wrapper extends UiCondition
Deprecated.
use class from conditionsnative package instead.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Wrapper(String prefix, UiCondition delegate)
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    actualValue(com.workfusion.rpa.internal.api.element.WebElement element)
    Deprecated.
    If element didn't match the condition, returns the actual value of element.
    boolean
    apply(com.workfusion.rpa.internal.api.element.WebElement element)
    Deprecated.
    Check if given element matches this condition.
    Deprecated.
     
    wrap(String prefix, UiCondition delegate)
    Deprecated.
     

    Methods inherited from class com.workfusion.rpa.helpers.conditionsnative.UiCondition

    applyNull, fail, getName

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.common.base.Predicate

    equals, test

    Methods inherited from interface java.util.function.Predicate

    and, negate, or
  • Constructor Details

  • Method Details

    • apply

      public boolean apply(com.workfusion.rpa.internal.api.element.WebElement element)
      Deprecated.
      Description copied from class: UiCondition
      Check if given element matches this condition.
      Specified by:
      apply in interface com.google.common.base.Predicate<com.workfusion.rpa.internal.api.element.WebElement>
      Specified by:
      apply in class UiCondition
      Parameters:
      element - given WebElement
      Returns:
      true if element matches condition
    • actualValue

      public String actualValue(com.workfusion.rpa.internal.api.element.WebElement element)
      Deprecated.
      Description copied from class: com.workfusion.rpa.helpers.conditionsnative.UiCondition
      If element didn't match the condition, returns the actual value of element. Used in error reporting. Optional. Makes sense only if you need to add some additional important info to error message.
      Overrides:
      actualValue in class com.workfusion.rpa.helpers.conditionsnative.UiCondition
      Parameters:
      element - given WebElement
      Returns:
      any string that needs to be appended to error message.
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class com.workfusion.rpa.helpers.conditionsnative.UiCondition
    • wrap

      public static UiCondition wrap(String prefix, UiCondition delegate)
      Deprecated.