Attempting to use UI Explorer to read a selector in a drop down box, but when the focus moves from the application to UI Explorer it returns ‘The UiElement is no longer valid’ comes up as it does not have access to the Element long enough to read it.
The steps are to ‘Indicate Element’, F2, Click the Drop Down, wait for the timer to stop, Click the Element. This all works fine, but when UI Explorer becomes the focus, the box closes and is no longer available to be read and it is unable to continue to read the Selector.
Using F2 to set the element in Studio for Activities does work and it returns the Selector information but this does not provide enough detail to use as a reliable selector that can be used to find the different element. The only variable item between elements in the drop down are IDX, and are not fixed. The IDX change based on the scroll and not on specific elements. As usual, IDX is not a good option . Thus the need for UI Explorer to interrogate deeper.
Down arrow, tab, or other keyboard manipulation is not an option as the Tick Boxes only respond to Clicks via mouse. The only option is to find the element and use a Mouse Click on the Tick Box.