Package io.github.the_sdet.web
Class Utils<T>
java.lang.Object
io.github.the_sdet.web.Utils<T>
- Direct Known Subclasses:
PlaywrightUtils,SeleniumUtils
Abstract class containing utility methods for web automation.
- Author:
- Pabitra Swain ([email protected])
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcustomizeXpath(String rawXpath, String value) Customizes the XPath pattern by replacing placeholder values with the provided values.static StringcustomizeXpath(String rawXpath, String value1, String value2) Customizes the XPath pattern by replacing placeholder values with the provided values.static StringcustomizeXpath(String rawXpath, String value1, String value2, String value3) Customizes the XPath pattern by replacing placeholder values with the provided values.
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
customizeXpath
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
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
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.
-