How is the usage for iOSClassChain locator?

Hi all

I have the following locator:

@iOSFindBy(xpath = “//XCUIElementTypeCollectionView/XCUIElementTypeButton”)
private IOSElement profileButton;

I try to use other strategy to search the object as the following:

@HowToUseLocators(iOSXCUITAutomation = LocatorGroupStrategy.CHAIN)
@iOSXCUITFindBy(iOSNsPredicate = “type == ‘XCUIElementTypeCollectionView’”)
@iOSXCUITFindBy(iOSNsPredicate = “type == ‘XCUIElementTypeButton’”)
private IOSElement profileButton;

But, The object cant be found. I know that exist other locator for this (iOSClassChain). Can I use it for this? How is the usage for this?

Thanks for your help.

@Mauricio_A_Parra try:

@HowToUseLocators(iOSXCUITAutomation = LocatorGroupStrategy.CHAIN)
  @iOSXCUITFindBy(className = "XCUIElementTypeCollectionView")
  @iOSXCUITFindBy(className = "XCUIElementTypeButton")
private IOSElement profileButton;