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
Hello, when I want to use pages with generic types, I get those:
Objects:
public class TempLoginPage<T> { public List<T> items; public List<T> getItems() { return items; } } public class LoginPage extends TempLoginPage<Object> { @iOSFindBy(uiAutomator = ".buttons()['Login']") public WebElement loginButton; } // main PageFactory.initElements(new AppiumFieldDecorator(getDriver()), new LoginPage());
Crashes with:
java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.TypeVariableImpl cannot be cast to java.lang.Class at io.appium.java_client.pagefactory.AppiumFieldDecorator.decorateWidget(AppiumFieldDecorator.java:185) at io.appium.java_client.pagefactory.AppiumFieldDecorator.decorate(AppiumFieldDecorator.java:160) at org.openqa.selenium.support.PageFactory.proxyFields(PageFactory.java:113) at org.openqa.selenium.support.PageFactory.initElements(PageFactory.java:105) at ... 47 more
I'm using 3.3.0 java client
The text was updated successfully, but these errors were encountered:
@SButterfly Thanks for the report
Sorry, something went wrong.
The bug was fixed here: #376 #377
I've found a few possible ways for the decoration enhancement but I think it is work for the 4.1.0
No branches or pull requests
Hello,
when I want to use pages with generic types, I get those:
Objects:
Crashes with:
I'm using 3.3.0 java client
The text was updated successfully, but these errors were encountered: