com.codeborne.selenide.appium.commands.AppiumUnfocus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of selenide-appium Show documentation
Show all versions of selenide-appium Show documentation
Selenide adaptor for Appium framework
package com.codeborne.selenide.appium.commands;
import com.codeborne.selenide.commands.Unfocus;
import com.codeborne.selenide.impl.WebElementSource;
import org.jspecify.annotations.Nullable;
import static com.codeborne.selenide.appium.AppiumDriverUnwrapper.isMobile;
public class AppiumUnfocus extends Unfocus {
@Override
protected void execute(WebElementSource locator, Object @Nullable [] args) {
if (!isMobile(locator.driver())) {
super.execute(locator, args);
}
else {
throw new UnsupportedOperationException("Unfocus is not supported in mobile");
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy