We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The text was updated successfully, but these errors were encountered:
@caizhenxing 为了与JS和Py的api命名一致,是时候丢弃上一代的习惯了
Sorry, something went wrong.
No branches or pull requests
之前我用appium时,封装过一个这样的方法,我传一个locator,不用关心它到底是xpath还是id,name,目前macaca java版,貌似必须得指定这个locator具体是id、name还是xpath,这样会写很多重复的代码,感觉不是很方便
public By getBy(String locator) {
if (locator.startsWith("//") || locator.startsWith("(")) {
return By.xpath(locator);
} else {
return new ByIdOrName(locator);
}
}
The text was updated successfully, but these errors were encountered: