Index
All Classes and Interfaces|All Packages
A
- advanceClick(String) - Method in class io.github.the_sdet.mobile.AppiumUtils
-
This method performs a click action on an element using gestures
- advanceClick(By) - Method in class io.github.the_sdet.mobile.AppiumUtils
-
This method performs a click action on an element using gestures
- APIUtils - Class in io.github.the_sdet.api
-
This class handles all API related Utilities and Helper methods
- APIUtils() - Constructor for class io.github.the_sdet.api.APIUtils
- AppiumUtils - Class in io.github.the_sdet.mobile
-
Utility class for Appium Mobile automation tasks.
- AppiumUtils(AppiumDriver) - Constructor for class io.github.the_sdet.mobile.AppiumUtils
-
Constructor to initialize AppiumUtils.
- AppiumUtils.DIRECTION - Enum Class in io.github.the_sdet.mobile
-
Enumeration for scroll/swipe directions.
- attachBase64Screenshot(Page) - Static method in class io.github.the_sdet.cucumber.CucumberUtils
-
Attaches a Base64 encoded screenshot from a Playwright page to the current scenario.
- attachBase64Screenshot(AppiumDriver) - Static method in class io.github.the_sdet.cucumber.CucumberUtils
-
Attaches a Base64 encoded screenshot from a AppiumDriver to the current scenario.
- attachBase64Screenshot(WebDriver) - Static method in class io.github.the_sdet.cucumber.CucumberUtils
-
Attaches a Base64 encoded screenshot from a WebDriver to the current scenario.
- attachScreenshot(Page) - Static method in class io.github.the_sdet.cucumber.CucumberUtils
-
Attaches a screenshot from a AppiumDriver to the current scenario.
- attachScreenshot(Page, String) - Static method in class io.github.the_sdet.cucumber.CucumberUtils
-
Attaches a screenshot from a AppiumDriver to the current scenario.
- attachScreenshot(AppiumDriver) - Static method in class io.github.the_sdet.cucumber.CucumberUtils
-
Attaches a screenshot from a AppiumDriver to the current scenario.
- attachScreenshot(AppiumDriver, String) - Static method in class io.github.the_sdet.cucumber.CucumberUtils
-
Attaches a screenshot from a AppiumDriver to the current scenario.
- attachScreenshot(WebDriver) - Static method in class io.github.the_sdet.cucumber.CucumberUtils
-
Attaches a screenshot from a WebDriver to the current scenario.
- attachScreenshot(WebDriver, String) - Static method in class io.github.the_sdet.cucumber.CucumberUtils
-
Attaches a screenshot from a WebDriver to the current scenario.
B
- byteArrayToFile(byte[], String) - Static method in class io.github.the_sdet.files.FileUtils
-
Converts a byte array to a file.
C
- checkFileExistence(String) - Static method in class io.github.the_sdet.files.FileUtils
-
checks existence of a file
- checkIsElementPresentAllowScrolling(String) - Method in class io.github.the_sdet.mobile.AppiumUtils
-
Tries to find an element by Scrolls the screen with a total scroll of 2 times.
- checkIsElementPresentAllowScrolling(String, int, int) - Method in class io.github.the_sdet.mobile.AppiumUtils
-
Tries to find an element by Scrolls the screen with a total scroll of 2 times.
- checkIsElementPresentAllowScrolling(By) - Method in class io.github.the_sdet.mobile.AppiumUtils
-
Tries to find an element by Scrolls the screen with a total scroll of 2 times.
- checkIsElementPresentAllowScrolling(By, int) - Method in class io.github.the_sdet.mobile.AppiumUtils
-
Tries to find an element by Scrolls the screen with a total scroll of 2 times.
- checkIsElementPresentAllowScrolling(By, int, int) - Method in class io.github.the_sdet.mobile.AppiumUtils
-
Tries to find an element by Scrolls the screen with a total scroll of 2 times.
- cleanOrCreateDirectory(String) - Static method in class io.github.the_sdet.files.FileUtils
-
This method deletes the files and folders inside a directory
- clearAndEnterText(String, String) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Clears the element identified by the specified XPath and enters the given text into it.
- clearAndEnterText(String, String) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Clears the existing text and enters the specified text into the element identified by the given XPath.
- clearAndEnterText(By, String) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Clears the existing text and enters the specified text into the element identified by the given XPath.
- click(Locator) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Clicks on the specified locator.
- click(String) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Clicks on the element identified by the specified XPath.
- click(String) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Clicks on the element identified by the given XPath.
- click(By) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Clicks on the element identified by the given By selector.
- click(WebElement) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Clicks on the specified WebElement.
- closeDatabaseConnection() - Method in class io.github.the_sdet.db.DatabaseUtils
-
This method closes the established Database connection
- CommonUtils - Class in io.github.the_sdet.common
-
This class handles various common Utilities and Helper methods
- CommonUtils() - Constructor for class io.github.the_sdet.common.CommonUtils
- copyFile(File, File) - Static method in class io.github.the_sdet.files.FileUtils
-
Copies a file from the source to the destination.
- copyFile(File, File, String) - Static method in class io.github.the_sdet.files.FileUtils
-
Copies a file from the source to the destination with metadata.
- CucumberUtils - Class in io.github.the_sdet.cucumber
-
Utility class for Cucumber use cases.
- CucumberUtils() - Constructor for class io.github.the_sdet.cucumber.CucumberUtils
- customizeXpath(String, String) - Static method in class io.github.the_sdet.web.Utils
-
Customizes the XPath pattern by replacing placeholder values with the provided values.
- customizeXpath(String, String, String) - Static method in class io.github.the_sdet.web.Utils
-
Customizes the XPath pattern by replacing placeholder values with the provided values.
- customizeXpath(String, String, String, String) - Static method in class io.github.the_sdet.web.Utils
-
Customizes the XPath pattern by replacing placeholder values with the provided values.
D
- DatabaseUtils - Class in io.github.the_sdet.db
-
This is a utility class to handle all the database querying operations needed for validations against database
- DatabaseUtils(Connection) - Constructor for class io.github.the_sdet.db.DatabaseUtils
-
Initializes Database utils
- debug(String) - Static method in class io.github.the_sdet.logger.Log
-
Log a debug message.
- deleteRequest(String, ContentType) - Static method in class io.github.the_sdet.api.APIUtils
-
Sends a DELETE request to the specified URL and returns the response.
- deleteRequest(String, String, ContentType) - Static method in class io.github.the_sdet.api.APIUtils
-
Sends a DELETE request to the specified URL with base URI and endpoint, and returns the response.
- deleteRequest(String, String, Map<String, String>, ContentType) - Static method in class io.github.the_sdet.api.APIUtils
-
Sends a DELETE request to the specified URL with base URI, endpoint, custom headers, and content type, and returns the response.
- deleteRequest(String, Map<String, String>, ContentType) - Static method in class io.github.the_sdet.api.APIUtils
-
Sends a DELETE request to the specified URL and returns the response.
- deleteXMLNode(Document, String) - Static method in class io.github.the_sdet.xml.XMLUtils
-
Deletes an XML node identified by its XPath.
- DOWN - Enum constant in enum class io.github.the_sdet.mobile.AppiumUtils.DIRECTION
-
Represents the downward scroll/swipe direction.
E
- EMPTY_STRING - Static variable in class io.github.the_sdet.common.CommonUtils
-
Represents a String without content.
- enterText(String, String) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Enters text into the element identified by the specified XPath.
- enterText(String, String) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Enters the specified text into the element identified by the given XPath.
- enterText(By, String) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Enters the specified text into the element identified by the given XPath.
- error(String) - Static method in class io.github.the_sdet.logger.Log
-
Log an error message.
- error(String, Exception) - Static method in class io.github.the_sdet.logger.Log
-
Log an error message with an associated exception.
- ExcelUtils - Class in io.github.the_sdet.excel
-
This class handles all Excel related Utilities and Helper methods
- ExcelUtils() - Constructor for class io.github.the_sdet.excel.ExcelUtils
F
- fileNameWithTimeStamp(String, String) - Static method in class io.github.the_sdet.files.FileUtils
-
creates filename appending timestamp
- FileUtils - Class in io.github.the_sdet.files
-
This class handles all File Handling related Utilities and Helper methods
- FileUtils() - Constructor for class io.github.the_sdet.files.FileUtils
- fillText(String, String) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Enters value on to element identified by the specified XPath
- fillText(String, String) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Enters value on to element identified by the specified XPath
- findElementByCustomizeXpath(String, String) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Finds the element using the customized XPath with one parameter.
- findElementByCustomizeXpath(String, String) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Finds the element using the customized XPath with one parameter.
- findElementByCustomizeXpath(String, String, String) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Finds the element using the customized XPath with two parameters.
- findElementByCustomizeXpath(String, String, String) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Finds the element using the customized XPath with two parameters.
- findElementByCustomizeXpath(String, String, String, String) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Finds the element using the customized XPath with three parameters.
- findElementByCustomizeXpath(String, String, String, String) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Finds the element using the customized XPath with three parameters.
- focusOnElement(String) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Focuses on the element identified by the specified XPath.
- focusOnElement(String) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Focuses on the element identified by the given XPath.
- focusOnElement(By) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Focuses on the element identified by the given XPath.
G
- getAttributeValue(String, String) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Retrieves the value of the specified attribute of the element identified by the specified XPath.
- getAttributeValue(String, String) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Retrieves the value of the specified attribute of the element identified by the given XPath.
- getAttributeValue(By, String) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Retrieves the value of the specified attribute of the element identified by the given XPath.
- getContentFromXmlResponse(String, String) - Static method in class io.github.the_sdet.xml.XMLUtils
-
Extracts content from an XML response using a regular expression.
- getCurrentScenario() - Static method in class io.github.the_sdet.cucumber.CucumberUtils
-
Retrieves the current Cucumber scenario.
- getElement(String) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Retrieves the WebElement by Xpath.
- getElement(String) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Retrieves the WebElement by Xpath.
- getElement(By) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Retrieves the WebElement
- getElementByText(String, String) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Retrieves the WebElement by text content from a list of matching WebElements
- getElementByText(String, String) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Retrieves the WebElement by text content from a list of matching WebElements
- getElementByText(By, String) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Retrieves the WebElement by text content from a list of matching WebElements
- getElementFromJsonString(String, String) - Static method in class io.github.the_sdet.json.JSONUtils
-
This method reads the value of an element from JSON String using json path
- getElements(String) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Retrieves the WebElements by Xpath.
- getElements(String) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Retrieves the WebElements by Xpath.
- getElements(String, boolean) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Retrieves the WebElements by Xpath.
- getElements(String, boolean) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Retrieves the WebElements by Xpath.
- getElements(String, boolean, Duration) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Retrieves the WebElements by Xpath.
- getElements(String, boolean, Duration) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Retrieves the WebElements by Xpath.
- getElements(By) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Retrieves the WebElements by Xpath.
- getElements(By, boolean) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Retrieves the WebElements by Xpath.
- getElements(By, boolean, Duration) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Retrieves the WebElements by Xpath.
- getElementScreenshot(String) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Takes a screenshot of the element identified by the specified XPath.
- getElementScreenshot(String) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Retrieves a screenshot of the specified element.
- getElementScreenshot(By) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Retrieves a screenshot of the specified element.
- getElementScreenshotAsBase64(String) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Retrieves the screenshot of the element identified by the specified XPath as a Base64 encoded string.
- getElementScreenshotAsBase64(String) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Retrieves the screenshot of the element identified by the given XPath as a Base64 encoded string.
- getElementScreenshotAsBase64(By) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Retrieves the screenshot of the element identified by the given XPath as a Base64 encoded string.
- getElementScreenshotAsByte(String) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Retrieves the screenshot of the element identified by the specified XPath as a byte array.
- getElementScreenshotAsByte(String) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Retrieves the screenshot of the element identified by the given XPath as a byte array.
- getElementScreenshotAsByte(By) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Retrieves the screenshot of the element identified by the given XPath as a byte array.
- getElementsFromJsonString(String, String) - Static method in class io.github.the_sdet.json.JSONUtils
-
This method reads the values from JSON String using JSON path
- getElementsFromJsonString(String, String...) - Static method in class io.github.the_sdet.json.JSONUtils
-
This method reads the values of multiple elements from JSON String using JSON path
- getElementsFromJsonString(String, Map<String, String>) - Static method in class io.github.the_sdet.json.JSONUtils
-
This method reads the values of multiple elements from JSON String using JSON path
- getElementsTextContent(String) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Retrieves the text content of WebElements by Xpath.
- getElementsTextContent(String) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Retrieves the text content of WebElements by Xpath.
- getElementsTextContent(String, boolean) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Retrieves the text content of WebElements by Xpath.
- getElementsTextContent(String, boolean) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Retrieves the text content of WebElements by Xpath.
- getElementsTextContent(String, boolean, Duration) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Retrieves the text content of WebElements by Xpath.
- getElementsTextContent(String, boolean, Duration) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Retrieves the text content of WebElements by Xpath.
- getElementsTextContent(By) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Retrieves the text content of WebElements by Xpath.
- getElementsTextContent(By, boolean) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Retrieves the text content of WebElements by Xpath.
- getElementsTextContent(By, boolean, Duration) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Retrieves the text content of WebElements by Xpath.
- getElementTextContent(String) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Retrieves the text content of WebElement by Xpath.
- getElementTextContent(String) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Retrieves the text content of WebElement by Xpath.
- getElementTextContent(By) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Retrieves the text content of WebElement by Xpath.
- getFullPageScreenshotAsBase64() - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Retrieves the full-page screenshot as a Base64 encoded string.
- getFullPageScreenshotAsBase64() - Method in class io.github.the_sdet.web.SeleniumUtils
-
Retrieves the full-page screenshot as a Base64 encoded string.
- getFullPageScreenshotAsByte() - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Retrieves the full-page screenshot as a byte array.
- getFullPageScreenshotAsByte() - Method in class io.github.the_sdet.web.SeleniumUtils
-
Retrieves the full-page screenshot as a byte array.
- getHeaderList(String, String) - Static method in class io.github.the_sdet.excel.ExcelUtils
-
Retrieves the headers from Excel.
- getIntegerValue(String) - Static method in class io.github.the_sdet.common.CommonUtils
-
This method extracts numeric integer value from a string.
- getNumericValue(String) - Static method in class io.github.the_sdet.common.CommonUtils
-
This method extracts numeric value from a string.
- getRequest(String, ContentType) - Static method in class io.github.the_sdet.api.APIUtils
-
Sends a GET request to the specified URL and returns the response.
- getRequest(String, ContentType, Map<String, String>) - Static method in class io.github.the_sdet.api.APIUtils
-
Sends a GET request with query parameters to the specified URL and returns the response.
- getRequest(String, Map<String, String>, ContentType) - Static method in class io.github.the_sdet.api.APIUtils
-
Sends a GET request to the specified URL with custom headers and returns the response.
- getRequest(String, Map<String, String>, Map<String, String>, ContentType) - Static method in class io.github.the_sdet.api.APIUtils
-
Sends a GET request with query parameters to the specified URL and returns the response.
- getScreenshot() - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Takes a screenshot of the page.
- getScreenshot() - Method in class io.github.the_sdet.web.SeleniumUtils
-
Retrieves a screenshot of the current page.
- getScreenshotAsBase64() - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Retrieves the screenshot as a Base64 encoded string.
- getScreenshotAsBase64() - Method in class io.github.the_sdet.web.SeleniumUtils
-
Retrieves the screenshot of the current page as a Base64 encoded string.
- getScreenshotAsByte() - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Retrieves the screenshot as a byte array.
- getScreenshotAsByte() - Method in class io.github.the_sdet.web.SeleniumUtils
-
Retrieves the screenshot of the current page as a byte array.
- getValuesOfColumn(String, String, int, boolean) - Static method in class io.github.the_sdet.excel.ExcelUtils
-
This method fetches entries present in a particular column by column index.
- getValuesOfColumn(String, String, String, boolean) - Static method in class io.github.the_sdet.excel.ExcelUtils
-
This method fetches entries present in a particular column by column header.
- getValuesOfRow(String, String, int, boolean) - Static method in class io.github.the_sdet.excel.ExcelUtils
-
This method fetches entries present in a particular row by row index.
- getValuesOfRow(String, String, String, boolean) - Static method in class io.github.the_sdet.excel.ExcelUtils
-
This method fetches entries present in a particular row by row header.
H
- headRequest(String, ContentType) - Static method in class io.github.the_sdet.api.APIUtils
-
Sends a HEAD request to the specified URL and returns the response.
- headRequest(String, String, ContentType) - Static method in class io.github.the_sdet.api.APIUtils
-
Sends a HEAD request to the specified URL with base URI and endpoint and returns the response.
- headRequest(String, String, Map<String, String>, ContentType) - Static method in class io.github.the_sdet.api.APIUtils
-
Sends a HEAD request to the specified URL with base URI, endpoint, custom headers, and returns the response.
- headRequest(String, Map<String, String>, ContentType) - Static method in class io.github.the_sdet.api.APIUtils
-
Sends a HEAD request to the specified URL with custom headers and returns the response.
- hideKeyboard() - Method in class io.github.the_sdet.mobile.AppiumUtils
-
Hides the on-screen keyboard if it is displayed.
- hoverOverElement(String) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Hovers over the element identified by the specified XPath.
- hoverOverElement(String) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Hovers over the element identified by the given XPath.
- hoverOverElement(By) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Hovers over the element identified by the given XPath.
I
- info(String) - Static method in class io.github.the_sdet.logger.Log
-
Log an informational message.
- io.github.the_sdet.api - package io.github.the_sdet.api
- io.github.the_sdet.common - package io.github.the_sdet.common
- io.github.the_sdet.cucumber - package io.github.the_sdet.cucumber
- io.github.the_sdet.db - package io.github.the_sdet.db
- io.github.the_sdet.excel - package io.github.the_sdet.excel
- io.github.the_sdet.files - package io.github.the_sdet.files
- io.github.the_sdet.json - package io.github.the_sdet.json
- io.github.the_sdet.logger - package io.github.the_sdet.logger
- io.github.the_sdet.mobile - package io.github.the_sdet.mobile
- io.github.the_sdet.web - package io.github.the_sdet.web
- io.github.the_sdet.xml - package io.github.the_sdet.xml
- isVisible(Locator) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Checks if the element identified by the given locator is visible.
- isVisible(String) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Checks if the element identified by XPath is visible.
- isVisible(String) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Checks if the element identified by XPath is visible.
- isVisible(By) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Checks if the element identified by the given locator is visible.
J
- javaScriptClick(String) - Method in class io.github.the_sdet.mobile.AppiumUtils
-
Clicks on the element identified by the given XPath using JavaScript.
- javaScriptClick(String) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Executes a JavaScript click on the element identified by the specified XPath.
- javaScriptClick(String) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Clicks on the element identified by the given XPath using JavaScript.
- javaScriptClick(By) - Method in class io.github.the_sdet.mobile.AppiumUtils
-
Clicks on the element identified by the given XPath using JavaScript.
- javaScriptClick(By) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Clicks on the element identified by the given XPath using JavaScript.
- javaScriptFillText(String, String) - Method in class io.github.the_sdet.mobile.AppiumUtils
-
Enters value on to element identified by the specified XPath using JavaScript.
- javaScriptFillText(String, String) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Enters value on to element identified by the specified XPath using JavaScript.
- javaScriptFillText(String, String) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Enters value on to element identified by the specified XPath using JavaScript.
- javaScriptFillText(By, String) - Method in class io.github.the_sdet.mobile.AppiumUtils
-
Enters value on to element identified by the specified XPath using JavaScript.
- javaScriptFillText(By, String) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Enters value on to element identified by the specified XPath using JavaScript.
- JSONUtils - Class in io.github.the_sdet.json
-
This class handles all JSON related Utilities and Helper methods
- JSONUtils() - Constructor for class io.github.the_sdet.json.JSONUtils
L
- LEFT - Enum constant in enum class io.github.the_sdet.mobile.AppiumUtils.DIRECTION
-
Represents the leftward scroll/swipe direction.
- Log - Class in io.github.the_sdet.logger
-
Utility class for logging messages using Log4j.
- Log() - Constructor for class io.github.the_sdet.logger.Log
- logAbortToReport(String) - Static method in class io.github.the_sdet.cucumber.CucumberUtils
-
Logs an abort message to the report and to the application log.
- logFailureToReport(String) - Static method in class io.github.the_sdet.cucumber.CucumberUtils
-
Logs a failure message to the report and to the application log.
- logSkipToReport(String) - Static method in class io.github.the_sdet.cucumber.CucumberUtils
-
Logs a skip message to the report and to the application log.
- logSuccessToReport(String) - Static method in class io.github.the_sdet.cucumber.CucumberUtils
-
Logs a success message to the report and to the application log.
- logToReport(String) - Static method in class io.github.the_sdet.cucumber.CucumberUtils
-
Logs a generic message to the report and to the application log.
- logWarningToReport(String) - Static method in class io.github.the_sdet.cucumber.CucumberUtils
-
Logs a warning message to the report and to the application log.
M
- maximizeScreen() - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Maximizes the browser window.
- maximizeScreen() - Method in class io.github.the_sdet.web.SeleniumUtils
-
Maximizes the browser window.
O
- openPage(String) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Opens the specified URL in the browser.
- openPage(String) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Opens the specified URL in the browser.
- optionsRequest(String, ContentType) - Static method in class io.github.the_sdet.api.APIUtils
-
Sends an OPTIONS request to the specified URL and returns the response.
- optionsRequest(String, String, ContentType) - Static method in class io.github.the_sdet.api.APIUtils
-
Sends an OPTIONS request to the specified URL with base URI and endpoint and returns the response.
- optionsRequest(String, String, Map<String, String>, ContentType) - Static method in class io.github.the_sdet.api.APIUtils
-
Sends an OPTIONS request to the specified URL with base URI, endpoint, custom headers, and returns the response.
- optionsRequest(String, Map<String, String>, ContentType) - Static method in class io.github.the_sdet.api.APIUtils
-
Sends an OPTIONS request to the specified URL with custom headers and returns the response.
P
- patchRequest(String, String, ContentType) - Static method in class io.github.the_sdet.api.APIUtils
-
Sends a PATCH request to the specified URL with the given request body and returns the response.
- patchRequest(String, String, String, ContentType) - Static method in class io.github.the_sdet.api.APIUtils
-
Sends a PATCH request to the specified URL with base URI and endpoint, the given request body, and returns the response.
- patchRequest(String, String, Map<String, String>, String, ContentType) - Static method in class io.github.the_sdet.api.APIUtils
-
Sends a PATCH request to the specified URL with base URI, endpoint, custom headers, request body, and content type, and returns the response.
- patchRequest(String, Map<String, String>, String, ContentType) - Static method in class io.github.the_sdet.api.APIUtils
-
Sends a PATCH request to the specified URL with custom headers and returns the response.
- PlaywrightUtils - Class in io.github.the_sdet.web
-
Utility class for Playwright-based web automation tasks.
- PlaywrightUtils(Page) - Constructor for class io.github.the_sdet.web.PlaywrightUtils
-
Constructor for PlaywrightUtils class.
- postRequest(String, String, ContentType) - Static method in class io.github.the_sdet.api.APIUtils
-
Sends a POST request to the specified URL with the given request body and returns the response.
- postRequest(String, String, String, ContentType) - Static method in class io.github.the_sdet.api.APIUtils
-
Sends a POST request to the specified URL with base URI, endpoint, and the given request body, and returns the response.
- postRequest(String, String, Map<String, String>, String, ContentType) - Static method in class io.github.the_sdet.api.APIUtils
-
Sends a POST request to the specified URL with base URI, endpoint, custom headers, request body, and content type, and returns the response.
- postRequest(String, Map<String, String>, String, ContentType) - Static method in class io.github.the_sdet.api.APIUtils
-
Sends a POST request to the specified URL with custom headers and returns the response.
- pressBackKey() - Method in class io.github.the_sdet.mobile.AppiumUtils
-
Presses the back button of Android Device.
- pressBackKey(AndroidKey) - Method in class io.github.the_sdet.mobile.AppiumUtils
-
Presses specified key of Android Device.
- pressEnter() - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Simulates pressing the Enter key.
- pressEnter() - Method in class io.github.the_sdet.web.SeleniumUtils
-
Simulates pressing the Enter key.
- pressEnterOnElement(String) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Simulates pressing the Enter key on the element identified by the specified XPath.
- pressEnterOnElement(String) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Simulates pressing the Enter key on the element identified by the given XPath.
- pressEnterOnElement(By) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Simulates pressing the Enter key on the element identified by the given XPath.
- pressTab() - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Simulates pressing the Tab key.
- pressTab() - Method in class io.github.the_sdet.web.SeleniumUtils
-
Simulates pressing the Tab key.
- pressTabOnElement(String) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Simulates pressing the Tab key on the element identified by the specified XPath.
- pressTabOnElement(String) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Simulates pressing the Tab key on the element identified by the given XPath.
- pressTabOnElement(By) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Simulates pressing the Tab key on the element identified by the given XPath.
- putRequest(String, String, ContentType) - Static method in class io.github.the_sdet.api.APIUtils
-
Sends a PUT request to the specified URL with the given request body and returns the response.
- putRequest(String, String, String, ContentType) - Static method in class io.github.the_sdet.api.APIUtils
-
Sends a PUT request to the specified URL with base URI, endpoint, and the given request body, and returns the response.
- putRequest(String, String, Map<String, String>, String, ContentType) - Static method in class io.github.the_sdet.api.APIUtils
-
Sends a PUT request to the specified URL with base URI, endpoint, custom headers, request body, and content type, and returns the response.
- putRequest(String, Map<String, String>, String, ContentType) - Static method in class io.github.the_sdet.api.APIUtils
-
Sends a PUT request to the specified URL with custom headers and returns the response.
R
- readDataFromDb(String) - Method in class io.github.the_sdet.db.DatabaseUtils
-
This method executes an SQL query and returns the result without the column names
- readDataFromDbWithColumnNames(String) - Method in class io.github.the_sdet.db.DatabaseUtils
-
This method executes an SQL query and returns the result with the column names
- readExcelSheet(String, String) - Static method in class io.github.the_sdet.excel.ExcelUtils
-
Reads an Excel sheet and returns a list of maps containing the data.
- readExcelSheet(String, String, boolean) - Static method in class io.github.the_sdet.excel.ExcelUtils
-
Reads an Excel sheet and returns a list of maps containing the data, optionally skipping the first row.
- readJsonFromFile(String) - Static method in class io.github.the_sdet.json.JSONUtils
-
This method reads a JSON file and returns the content as String
- readSingleColumnFromDb(String) - Method in class io.github.the_sdet.db.DatabaseUtils
-
This method executes an SQL query and returns the first column data without the column names
- readSingleDataFromDb(String) - Method in class io.github.the_sdet.db.DatabaseUtils
-
This method executes an SQL query and returns only the data at first position of first row as a String
- readSingleRowFromDb(String) - Method in class io.github.the_sdet.db.DatabaseUtils
-
This method executes an SQL query and returns only the first row without the column names
- readSingleRowFromDbWithColumnNames(String) - Method in class io.github.the_sdet.db.DatabaseUtils
-
This method executes an SQL query and returns only the first row with the column names
- readXML(String) - Static method in class io.github.the_sdet.xml.XMLUtils
-
Reads an XML file and returns a Document object representing its structure.
- replaceLineBreaksWithSpace(String) - Static method in class io.github.the_sdet.common.CommonUtils
-
Replaces line breaks in the input string with spaces.
- RIGHT - Enum constant in enum class io.github.the_sdet.mobile.AppiumUtils.DIRECTION
-
Represents the rightward scroll/swipe direction.
S
- saveXML(Document, String) - Static method in class io.github.the_sdet.xml.XMLUtils
-
Saves an XML document to a file.
- scroll(int, int, int, Duration) - Method in class io.github.the_sdet.mobile.AppiumUtils
-
Handles scroll functionality
- scrollAndClick(String) - Method in class io.github.the_sdet.mobile.AppiumUtils
-
Scrolls to the element and performs a click.
- scrollAndClick(String) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Scrolls to the element and performs a click.
- scrollAndClick(String, int, int) - Method in class io.github.the_sdet.mobile.AppiumUtils
-
Scrolls to the element and performs a click.
- scrollAndClick(By) - Method in class io.github.the_sdet.mobile.AppiumUtils
-
Scrolls to the element and performs a click.
- scrollAndClick(By) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Scrolls to the element and performs a click.
- scrollAndClick(By, int, int) - Method in class io.github.the_sdet.mobile.AppiumUtils
-
Scrolls to the element and performs a click.
- scrollByPercent(double) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Scrolls the page by the specified percentage.
- scrollByPercent(double) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Scrolls the page by the specified percentage.
- scrollByPercent(int) - Method in class io.github.the_sdet.mobile.AppiumUtils
-
Scrolls the screen by X percentage
- scrollElementIntoToView(String) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Scrolls the element identified by the specified XPath into view.
- scrollElementIntoToView(String) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Scrolls the element identified by the given XPath into view.
- scrollElementIntoToView(By) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Scrolls the element identified by the given XPath into view.
- scrollOrSwipe(String, AppiumUtils.DIRECTION, Duration) - Method in class io.github.the_sdet.mobile.AppiumUtils
-
This method scrolls and swipes in both direction to check an element's presence.
- scrollOrSwipe(By, AppiumUtils.DIRECTION, Duration) - Method in class io.github.the_sdet.mobile.AppiumUtils
-
This method scrolls and swipes in both direction to check an element's presence.
- SeleniumUtils - Class in io.github.the_sdet.web
-
Utility class for Selenium-based web automation tasks.
- SeleniumUtils(WebDriver) - Constructor for class io.github.the_sdet.web.SeleniumUtils
-
Constructor to initialize SeleniumUtils.
- setCurrentScenario(Scenario) - Static method in class io.github.the_sdet.cucumber.CucumberUtils
-
Sets the current Cucumber scenario.
- setDefaultTimeOut(int) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Sets the default timeout for waiting for elements to appear on the page.
- setDefaultTimeOut(int) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Sets the default timeout for implicit waits.
- setScreenSize(int, int) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Sets the screen size to the specified dimensions.
- setScreenSize(int, int) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Sets the screen size to the specified width and height.
- swipe(int, int, int, Duration) - Method in class io.github.the_sdet.mobile.AppiumUtils
-
Handles swipe functionality
- swipe(String, double, double, Duration) - Method in class io.github.the_sdet.mobile.AppiumUtils
-
Performs a swipe on the given element
- swipe(By, double, double, Duration) - Method in class io.github.the_sdet.mobile.AppiumUtils
-
Performs a swipe on the given element
- swipeDownAndRefreshPage() - Method in class io.github.the_sdet.mobile.AppiumUtils
-
Refreshes the screen by swiping down the screen
- swipeElementInsideAContainer(String, String) - Method in class io.github.the_sdet.mobile.AppiumUtils
-
Handles swipe of one element inside another element
- swipeElementInsideAContainer(By, By) - Method in class io.github.the_sdet.mobile.AppiumUtils
-
Handles swipe of one element inside another element
- swipeLeft() - Method in class io.github.the_sdet.mobile.AppiumUtils
-
Swipes left in the middle of the screen.
- swipeLeft(String) - Method in class io.github.the_sdet.mobile.AppiumUtils
-
Swipe left on the given element using the mobile:swipe command in Appium.
- swipeLeft(By) - Method in class io.github.the_sdet.mobile.AppiumUtils
-
Swipe left on the given element using the mobile:swipe command in Appium.
- swipePushNotification() - Method in class io.github.the_sdet.mobile.AppiumUtils
-
Swipes off a push notification appearing on top of the screen
- swipeRight() - Method in class io.github.the_sdet.mobile.AppiumUtils
-
Swipes right in the middle of the screen.
- swipeRight(String) - Method in class io.github.the_sdet.mobile.AppiumUtils
-
Swipe right on the given element using the mobile:swipe command in Appium.
- swipeRight(By) - Method in class io.github.the_sdet.mobile.AppiumUtils
-
Swipe right on the given element using the mobile:swipe command in Appium.
T
- takeElementScreenshot(String, String) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Takes a screenshot of the element identified by the specified XPath and saves it to the specified file path.
- takeElementScreenshot(String, String) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Takes a screenshot of the specified element and saves it to the specified filepath.
- takeElementScreenshot(By, String) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Takes a screenshot of the specified element and saves it to the specified filepath.
- takeFullPageScreenshot() - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Takes a full-page screenshot.
- takeFullPageScreenshot() - Method in class io.github.the_sdet.web.SeleniumUtils
-
Takes a full-page screenshot of the current page.
- takeFullPageScreenshot(String) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Takes a full-page screenshot and saves it to the specified file path.
- takeFullPageScreenshot(String) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Takes a full-page screenshot of the current page and saves it to the specified filepath.
- takeScreenshot(String) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Takes a screenshot of the page and saves it to the specified file path.
- takeScreenshot(String) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Takes a screenshot of the current page and saves it to the specified filepath.
- tlScenario - Static variable in class io.github.the_sdet.cucumber.CucumberUtils
-
ThreadLocal variable to hold the current scenario.
U
- UP - Enum constant in enum class io.github.the_sdet.mobile.AppiumUtils.DIRECTION
-
Represents the upward scroll/swipe direction.
- updateXMLData(Document, String, String) - Static method in class io.github.the_sdet.xml.XMLUtils
-
Updates the value of an XML element identified by its XPath.
- Utils<T> - Class in io.github.the_sdet.web
-
Abstract class containing utility methods for web automation.
- Utils() - Constructor for class io.github.the_sdet.web.Utils
V
- valueOf(String) - Static method in enum class io.github.the_sdet.mobile.AppiumUtils.DIRECTION
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class io.github.the_sdet.mobile.AppiumUtils.DIRECTION
-
Returns an array containing the constants of this enum class, in the order they are declared.
W
- waitAndCheckElementHasText(String, Duration, String) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Waits for a specific seconds for the element to have text.
- waitAndCheckElementHasText(By, Duration, String) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Waits for a specific seconds for the element to have text.
- waitAndCheckIsAlertPresent(Duration) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Waits for a specific seconds for an alert to be present.
- waitAndCheckIsClickable(Locator, Duration) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Waits for the element identified by XPath to be clickable.
- waitAndCheckIsClickable(String, Duration) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Waits for the element identified by XPath to be clickable.
- waitAndCheckIsClickable(String, Duration) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Waits for the element identified by XPath to be clickable.
- waitAndCheckIsClickable(By, Duration) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Waits for the element identified by XPath to be clickable.
- waitAndCheckIsClickableEnhanced(String, Duration) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Waits for a specific seconds for the element to be clickable using a custom condition.
- waitAndCheckIsClickableEnhanced(By, Duration) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Waits for a specific seconds for the element to be clickable using a custom condition.
- waitAndCheckIsElementAttributeHasValue(String, Duration, String, String) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Waits for a specific seconds for the element's attribute to have a certain value.
- waitAndCheckIsElementAttributeHasValue(By, Duration, String, String) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Waits for a specific seconds for the element's attribute to have a certain value.
- waitAndCheckIsElementSelected(String, Duration) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Waits for a specific seconds for the element to be selected.
- waitAndCheckIsElementSelected(By, Duration) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Waits for a specific seconds for the element to be selected.
- waitAndCheckIsInVisible(Locator, Duration) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Waits for the element identified by the given locator to become invisible.
- waitAndCheckIsInVisible(String, Duration) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Waits for the element identified by XPath to become invisible.
- waitAndCheckIsInVisible(String, Duration) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Waits for the element identified by XPath to become invisible.
- waitAndCheckIsInVisible(By, Duration) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Waits for the element identified by the given locator to become invisible.
- waitAndCheckIsPresent(String, Duration) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Waits for a specific seconds for the element to be present in the DOM.
- waitAndCheckIsPresent(By, Duration) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Waits for a specific seconds for the element to be present in the DOM.
- waitAndCheckIsVisible(Locator, Duration) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Waits for the element identified by XPath to be visible.
- waitAndCheckIsVisible(String, Duration) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Waits for the element identified by XPath to be visible.
- waitAndCheckIsVisible(String, Duration) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Waits for the element identified by XPath to be visible.
- waitAndCheckIsVisible(By, Duration) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Waits for the element identified by XPath to be visible.
- waitAndCheckUrlContains(String, Duration) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Waits for a specific seconds for the URL to contain the expected value.
- waitAndClick(String, int) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Waits for the element identified by the specified XPath to be clickable and then clicks on it.
- waitAndClick(String, int) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Waits for the specified element to be clickable and then clicks on it.
- waitAndClick(By, int) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Waits for the specified element to be clickable and then clicks on it.
- waitAndFindElement(String) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Waits for the element identified by XPath to be present within a default duration of 5 seconds.
- waitAndFindElement(String, Duration) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Waits for the element identified by XPath to be present within a default duration of 5 seconds.
- waitAndFindElement(String, Duration) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Waits for the element identified by XPath to be present within a specified duration.
- waitAndFindElement(By) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Waits for the element identified by the given locator to be present within a default duration of 5 seconds.
- waitAndFindElement(By, Duration) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Waits for the element identified by the given locator to be present within a specified duration.
- waitFor(Duration) - Static method in class io.github.the_sdet.common.CommonUtils
-
Waits for the specified duration.
- waitFor(Duration) - Method in class io.github.the_sdet.web.PlaywrightUtils
-
Waits for the specified number of seconds.
- waitFor(Duration) - Method in class io.github.the_sdet.web.SeleniumUtils
-
Pauses the execution for the specified duration.
- warn(String) - Static method in class io.github.the_sdet.logger.Log
-
Log a warning message.
- writeJsonToFile(String, String) - Static method in class io.github.the_sdet.json.JSONUtils
-
This method writes JSON String to a JSON file
X
- XMLUtils - Class in io.github.the_sdet.xml
-
This class handles all JSON related Utilities and Helper methods
- XMLUtils() - Constructor for class io.github.the_sdet.xml.XMLUtils
All Classes and Interfaces|All Packages