1

I have code, written on Selenium which waits for the first or for the second event. But all testing framework uses Selenide. The question is how to rewrite such code on Selenide, to avoid unxpectable results accured by combining Selenium and Selenide waits.

    WebDriverWait wait = new WebDriverWait(getWebDriver(), timeToWait);

    wait.until(ExpectedConditions.or(
            ExpectedConditions.visibilityOfElementLocated(Table),
            ExpectedConditions.visibilityOfElementLocated(Icon)
    ));

1 Answer 1

1

You can keep existing approach. SelenideElement extends WebElement so that all existing conditional stuff will be working.

Selenide does not have own cross-element conditions. Only the ones which are applied to a single element like .is(Condition.blah()).

There is also SelenideWait waiter but it actually does nothing but runs FluentWait with some presets.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.