Skip to content

Make findElement return MobileElement #162

@alexec

Description

@alexec

I noticed in a presentation yesterday that they almost always casted to MobileElement. As MobileElement appears to be a sub-class of WebElement, you can modified the return type of findElement* to return MobileElement.

This would be backwards compatible.

If we want to get technical, we are dealing with covarient return types:

http://c2.com/cgi/wiki?CovariantReturnTypes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions