com.codeborne.selenide.appium.commands.AppiumClear 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.Clear;
import com.codeborne.selenide.impl.WebElementSource;
import org.jspecify.annotations.Nullable;
import static com.codeborne.selenide.appium.AppiumDriverUnwrapper.isMobile;
public class AppiumClear extends Clear {
@Override
protected void execute(WebElementSource locator, Object @Nullable [] args) {
if (isMobile(locator.driver())) {
locator.findAndAssertElementIsVisible().clear();
}
else {
super.execute(locator, args);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy