Class Utils<T>

java.lang.Object
io.github.the_sdet.web.Utils<T>
Direct Known Subclasses:
PlaywrightUtils, SeleniumUtils

public abstract class Utils<T> extends Object
Abstract class containing utility methods for web automation.
Author:
Pabitra Swain ([email protected])
  • Constructor Details

    • Utils

      public Utils()
  • Method Details

    • customizeXpath

      public static String customizeXpath(String rawXpath, String value)
      Customizes the XPath pattern by replacing placeholder values with the provided values.
      Parameters:
      rawXpath - The raw XPath pattern.
      value - The value to replace the placeholder.
      Returns:
      The customized XPath.
    • customizeXpath

      public static String customizeXpath(String rawXpath, String value1, String value2)
      Customizes the XPath pattern by replacing placeholder values with the provided values.
      Parameters:
      rawXpath - The raw XPath pattern.
      value1 - The first value to replace the first placeholder.
      value2 - The second value to replace the second placeholder.
      Returns:
      The customized XPath.
    • customizeXpath

      public static String customizeXpath(String rawXpath, String value1, String value2, String value3)
      Customizes the XPath pattern by replacing placeholder values with the provided values.
      Parameters:
      rawXpath - The raw XPath pattern.
      value1 - The first value to replace the first placeholder.
      value2 - The second value to replace the second placeholder.
      value3 - The third value to replace the third placeholder.
      Returns:
      The customized XPath.