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

com.github.siwenyan.si.SiCommandExecutorVerifyElementPresent Maven / Gradle / Ivy

There is a newer version: 1.25.1.0
Show newest version
package com.github.siwenyan.si;

class SiCommandExecutorVerifyElementPresent extends SiCommandExecutor implements ISiCommandExecutorFlagUi {

    @Override
    public void execute(SiCommand command, SiContext siContext) throws SiVerifyException, SiWebDriverException {
        try {
            siContext.getExecutorManager().getBasicExecutor("waitForElementPresent").execute(command, siContext);
            siContext.getExecutorManager().getBasicExecutor("waitForElementVisible").execute(command, siContext);
        } catch (Exception e) {
            if (e.getMessage().startsWith("Time out")) {
                throw new SiVerifyException(e);
            } else {
                throw e;
            }
        }

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy