The methods you've listed are part of the ExpectedConditions class in Selenium's WebDriverWait mechanism. They are used for creating various conditions for waiting until certain elements or page states are met before proceeding further in test automation scripts.

Here's a breakdown of the return types for each method:

  1. alertIsPresent()

    • Return Type: Alert
    • Description: Waits until an alert box is present and returns a reference to it.
  2. elementSelectionStateToBe(WebElement element, boolean selected)

    • Return Type: Boolean
    • Description: Waits until the selection state of a given element is the specified state (selected or not selected).
  3. elementToBeClickable(By locator)

    • Return Type: WebElement
    • Description: Waits until the element is visible and enabled such that it is clickable.
  4. elementToBeSelected(By locator)

    • Return Type: Boolean
    • Description: Waits until the specified element is selected.
  5. frameToBeAvailableAndSwitchToIt(By locator)

    • Return Type: WebDriver
    • Description: Waits until the frame is available and then switches the WebDriver's context to it.
  6. invisibilityOfTheElementLocated(By locator)

    • Return Type: Boolean
    • Description: Waits until the specified element is no longer visible.
  7. invisibilityOfElementWithText(By locator, String text)

    • Return Type: Boolean
    • Description: Waits until the specified element is invisible or does not contain the given text.
  8. presenceOfAllElementsLocatedBy(By locator)

    • Return Type: List<WebElement>
    • Description: Waits until all elements matching the given locator are present in the DOM.
  9. presenceOfElementLocated(By locator)

    • Return Type: WebElement
    • Description: Waits until at least one element matching the given locator is present in the DOM.
  10. textToBePresentInElement(WebElement element, String text)

    • Return Type: Boolean
    • Description: Waits until the given text is present in the specified element.
  11. textToBePresentInElementLocated(By locator, String text)

    • Return Type: Boolean
    • Description: Waits until the specified text is present in the element located by the given locator.
  12. textToBePresentInElementValue(By locator, String text)

    • Return Type: Boolean
    • Description: Waits until the specified text is present in the element's value attribute.
  13. titleIs(String title)

    • Return Type: Boolean
    • Description: Waits until the page title matches the given title.
  14. titleContains(String title)

    • Return Type: Boolean
    • Description: Waits until the page title contains the given text.
  15. visibilityOf(WebElement element)

    • Return Type: WebElement
    • Description: Waits until the specified element is visible.
  16. visibilityOfAllElements(List<WebElement> elements)

    • Return Type: List<WebElement>
    • Description: Waits until all elements in the given list are visible.
  17. visibilityOfAllElementsLocatedBy(By locator)

    • Return Type: List<WebElement>
    • Description: Waits until all elements matching the given locator are visible.
  18. visibilityOfElementLocated(By locator)

    • Return Type: WebElement
    • Description: Waits until the element located by the given locator is visible.