Skip to content

Find element using iOSClassChain locator strategy #659

@himankarbn

Description

@himankarbn

Need help... So far we have been using XCUITest for our automation. We recently started with Appium Ruby and would like to use class_chain locator type strategy but we are having some trouble with it. Here is a the sample tree of our login screen
screen shot 2017-09-06 at 10 12 14 am

In XCTest to get the Password text field we use table.cells.containing(.staticText, identifier:"Password").children(matching: .secureTextField).element

Is there a better/shorter way to find the password field using class_chain ?
find_elements(:class_chain, 'XCUIElementTypeWindow/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeTable/XCUIElementTypeCell[3]/XCUIElementTypeStaticText')[0]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions