All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.codeborne.selenide.ex.TextsMismatch Maven / Gradle / Ivy

package com.codeborne.selenide.ex;

import com.codeborne.selenide.impl.WebElementsCollection;

import java.util.Arrays;

public class TextsMismatch extends UIAssertionError {
  public TextsMismatch(WebElementsCollection collection, String[] actualTexts,
                       String[] expectedTexts, long timeoutMs) {
    super("\nActual: " + Arrays.toString(actualTexts) +
        "\nExpected: " + Arrays.toString(expectedTexts) +
        "\nCollection: " + collection.description());
    super.timeoutMs = timeoutMs;
  }

  @Override
  public String toString() {
    return getClass().getSimpleName() + ' ' + getMessage() + uiDetails();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy