Skip to content

How to extends from MobileElement #433

Closed

Description

@HlebHalkouski

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

Activity

  1. TikhomirovSergey commented on Jul 5, 2016

    @TikhomirovSergey
    Contributor

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

  2. HlebHalkouski commented on Jul 5, 2016

    @HlebHalkouski
    ContributorAuthor

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

  3. tfcardoso commented on Apr 12, 2018

    @tfcardoso

    @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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions