Is there a way to have a WaitForCreate method for the child of a control when the child can't be interrogated itself?
We have to interact with IE's Save As popup dialog box to save files in a certain location. We interrogate the overall box, then use a "clickChildByText" method and pass the number "6" in as a parameter, which allows you to click on the arrow next to save, and from there click the "Save As" option. But right now we are having to add a static pause to give the "6" child a moment to be created. Is there any way to perform a WaitForCreate on this child so that the automation will continue the moment it's created?
The sample solution available in the article contains a script for automating the 'Save as' click, but it also uses a pause to make sure that it is created.
The script uses UI Automation to get controls from the parent and perform actions on them, so I suppose you can implement your own method where you would try to get the control in a loop with a small pause until the assignment does not result in a null value.