-
Notifications
You must be signed in to change notification settings - Fork 30
Description
Swiz has a BaseMetadataProcessor (BMP) class which creates elements from metadata.
The app I'm working in leverages this construct - passing in a bunch of name/value pairs and letting the BMP construct and display ui elements. In this case the elements are similar to modal windows.
So far i have been unable to successfully click a child button w/i one of these dynamically constructed elements.
Is it possible that Flex Pilot is unaware of their 'automationName' prop/val because the elements do not exist upon the application's creationComplete?
My tests are written in ruby and leverage javascript.
I've tried accessing the infoButton by chain @driver.execute_script("document.App.fp_click({chain:'name:ImageEditingContextualMenu2147/name:ImageEditingContextualMenuSkin2148/id:contextualMenuWrapper/name:ContextualMenuSkin2150/id:contentGroup/id:contentGroup/automationName:infoButton'})")
and by automationName
@driver.execute_script("document.App.fp_click({automationName:'infoButton'})")
Any insight or workaround would be greatly appreciated.
Thanks