Skip to content

how to cast MobileElement to IOSElement #185

@aznime

Description

@aznime

Recently updated to latest 2.2.0 but this piece of code fails due to setValue() being moved to IOSElement.

        if (driver instanceof IOSDriver) {
            element.setValue(value)   // element is of MobileElement
        } else if (driver instanceof AndroidDriver) {
            element.sendKeys(value)
        }

Any ideas on how I can get it to work with the latest java-client?

Thanks in advance.

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