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
Using of ElementsCollection instead of SelenideAppiumCollection inside appium page object class throw and IllegalArgumentException exception.
Page:
class PageWithCollection { @AndroidFindBy(xpath = "//android.widget.EditText") ElementsCollection editTexts; }
Using:
public class Test { @Test public void collectionTest() { PageWithCollection pageWithCollection = page(); pageWithCollection.editTexts.shouldHave(sizeGreaterThan(0)); } }
Throw:
Test > collectionTest() FAILED java.lang.IllegalArgumentException: Can not set com.codeborne.selenide.ElementsCollection field it.mobile.android.LoginPageWithCollections.editTexts to com.codeborne.selenide.appium.SelenideAppiumCollection at java.base/jdk.internal.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:167) at java.base/jdk.internal.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:171) at java.base/jdk.internal.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:81) at java.base/java.lang.reflect.Field.set(Field.java:799) at com.codeborne.selenide.impl.SelenidePageFactory.setFieldValue(SelenidePageFactory.java:133) at com.codeborne.selenide.impl.SelenidePageFactory.initField(SelenidePageFactory.java:93) at com.codeborne.selenide.impl.SelenidePageFactory.initFields(SelenidePageFactory.java:86) at com.codeborne.selenide.impl.SelenidePageFactory.initElements(SelenidePageFactory.java:77) at com.codeborne.selenide.impl.SelenidePageFactory.page(SelenidePageFactory.java:64) at com.codeborne.selenide.impl.SelenidePageFactory.page(SelenidePageFactory.java:52) at com.codeborne.selenide.SelenideDriver.page(SelenideDriver.java:159) at com.codeborne.selenide.Selenide.page(Selenide.java:758)
The text was updated successfully, but these errors were encountered:
#2670 support mobile page object fields of type ElementsCollection
cb39cc7
will be fixed by #2677
Sorry, something went wrong.
b066027
asolntsev
Successfully merging a pull request may close this issue.
The problem
Using of ElementsCollection instead of SelenideAppiumCollection inside appium page object class throw and IllegalArgumentException exception.
Tell us about your environment
Code To Reproduce Issue [ Good To Have ]
Page:
Using:
Throw:
The text was updated successfully, but these errors were encountered: