Selector Issue - IE 11 "Don't let this page create more messages"


#1

I’m working on a process that would input data into an external website, and part of the error handling is to extract text from certain pop-ups and use it to clear some input rows. The problem is, the second time the window pops up in a session, IE 11 adds the “Don’t let this page create more messages” checkbox. This changes the selector in a pretty significant way.

I was wondering if anyone had a way to handle this besides having two separate branches depending on which selector exists? I was already using a wildcard after “row” in selector, but I can’t just go from the window class as I need the text and the row number for further activity.

First time without IE checkbox:

wnd app=‘iexplore.exe’ cls=’#32770’ title=‘Message from webpage’
wnd ctrlid=‘65535’ title=‘The Plate Type in row 1 has to be PAS!’

Second time with IE checkbox:

wnd app=‘iexplore.exe’ cls=’#32770’ title=‘Message from webpage’
wnd aaname=‘Message from webpage’ cls=‘DirectUIHWND’
ctrl name=‘Message from webpage’ role=‘pane’
ctrl name=‘The Plate Type in row 5 has to be PAS!’ role=‘text’