Add class chain locator type for iOS XCUITest-based driver by mykola-mokhnach · Pull Request #599 · appium/java-client

@mykola-mokhnach @SrinivasanTarget: Need some 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]