com.codeborne.selenide.appium.selector.ByClassNameAndIndex 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.selector;
import org.openqa.selenium.By;
public class ByClassNameAndIndex extends By.ByXPath {
protected final String className;
protected final int index;
public ByClassNameAndIndex(String className, int index) {
super(String.format("(.//%s)[%s]", className, index));
this.className = className;
this.index = index;
}
@Override
public String toString() {
return String.format("(.//%s)[%s]", className, index);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy