Skip to content
New issue

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

How to extends from MobileElement #433

Closed
HlebHalkouski opened this issue Jul 4, 2016 · 3 comments
Closed

How to extends from MobileElement #433

HlebHalkouski opened this issue Jul 4, 2016 · 3 comments

Comments

@HlebHalkouski
Copy link
Contributor

I would like to create TypifiedMobileElement and I was extends from io.appium.java_client.MobileElement :
public class MobileElement extends io.appium.java_client.MobileElement { }
and then I had compilation exception:
Error:(32, 8) java: findElements(org.openqa.selenium.By) in io.appium.java_client.MobileElement cannot implement findElements(org.openqa.selenium.By) in org.openqa.selenium.WebElement return type java.util.List<io.appium.java_client.MobileElement> is not compatible with java.util.List<org.openqa.selenium.WebElement>

java client: 4.0

Can we extends from MobileElement?
Thanks for the answer

@TikhomirovSergey
Copy link
Contributor

@HlebHalkouski This issue has been fixed.
FIX: #413
Related issues: #362, #220, #323
Please wait for a the new release

@HlebHalkouski
Copy link
Contributor Author

HlebHalkouski commented Jul 5, 2016

@TikhomirovSergey thank you for fast answer!
Maybe close this issue?

@tfcardoso
Copy link

@SrinivasanTarget @TikhomirovSergey

In order to try and extend MobileElement I already tried to set "Eclipse compiler" in IDEA and edited by pom.xml as suggested in here (#220 (comment))

But still I'm getting errors for return types being incompatible. Can you help me on how to proceed?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants