com.codeborne.selenide.appium.AppiumElementCommunicator 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;
import com.codeborne.selenide.Driver;
import com.codeborne.selenide.impl.WebElementCommunicator;
import org.jspecify.annotations.Nullable;
import org.openqa.selenium.WebElement;
import java.util.List;
import static com.codeborne.selenide.appium.AppiumDriverUnwrapper.isMobile;
public class AppiumElementCommunicator extends WebElementCommunicator {
@Override
public List texts(Driver driver, List elements) {
if (isMobile(driver)) {
return textsOneByOne(elements);
}
return super.texts(driver, elements);
}
@Override
public List<@Nullable String> attributes(Driver driver, List elements, String attributeName) {
if (isMobile(driver)) {
return attributesOneByOne(elements, attributeName);
}
return super.attributes(driver, elements, attributeName);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy