When I am doing web automation, I’ve decided to first add the Attach Browser activity and then manually specify the browser. However, whenever I run the activities inside the browser, I receive an error saying “Value does not fall within the expected range” with Argument exception. As a result, I need to use a work around which is to record the web automation sequence by first using Web Recording. This way, the Attach Browser activity is automatically generated, and later I could manually add activities to the sequence and then run it without any problem. Has anyone experienced this issue as well?
I suppose the issue is due to the difference in the Attach Browser selector. When I manually specify the browser, the selector value is this:
<wnd app='iexplore.exe' cls='IEFrame' title='Google - Internet Explorer' />
However, when I use Web Recording, the automatically generated Attach Browser selector has a much simpler value:
<html title='Google' />