appium / appium-for-mac

[deprecated] Application for automating a mac app with JSON wire protocol
Apache License 2.0
193 stars 70 forks source link

are partial / relative AXPaths still an option? #27

Open btdaniel2 opened 7 years ago

btdaniel2 commented 7 years ago

Current documentation points out the Absolute AXPath performance enhancement, but as I am new to this project, I'm wondering if there is still a partial path option available in some form. The application I am working with (and perhaps many do) changes it's group ordinals based on behavior in the application so that an object found under AXGroup[7] could sometimes be under AXGroup[8], AXGroup[11], etc. Test execution failures ensue as I'm sure you are familiar.

Could someone please advise or point out any appropriate documentation? I am currently using a java selenium framework with the RemoteWebDriver pointed to http://localhost:4622/wd/hub.

Regards,

MadaraUchiha-314 commented 5 years ago

@btdaniel2 See this line : https://github.com/appium/appium-for-mac/blob/master/AppiumForMac/Server/Controller/AfMElementLocator.m#L103

BOOL const requireAbsoluteAXPath = NO;

should have done the trick. But even I could not get it working after that.