Attach Browser - not working


#1

Hello Everyone,

Kindly help. My browser is open and and after done with other work, I want to work with the same browser which is currently open. What should I do to work with open browser. I am doing with the activity as Attach Browser and giving the link in Navigate to activity but it shows the error like, “value doesn’t fall within the expected range”

Thanks in advance.

Regards,
Hemal


#2

Did you pass the browser variable?


#3

yes I have passed though it is not working


#4

Check this post


#5

Hi,

If your specifying the browser variable in attach browser then no need of navigate activity please remove and try.
If still doesn’t works then remove browser variable and copy the selector of main browser and pass in attach browser.


#6

Hi,

Thanks to all for your quick response. I tried through selector @ddpadil and yes its working. Thanks again.

Regards,
Hemal


#7

Summary Of the Solution (For Rookies Like Me):

For a Sequence Like the the one below:
image

When you do a ‘Indicate on Screen’, You have to highlight the content of a given Tab. Not the whole browser window. Here’s the difference you will see in the selector :

Whole Window Selected (http://www.sha1-online.com/ open In IE.) :
< wnd app=‘iexplore.exe’ cls=‘IEFrame’ title=‘SHA1 online - Internet Explorer’ />

Only the Content of the Specific Tab:
< html title=‘SHA1 online’ />

When you select the Whole Window , we get the error you mentioned :
image

This is my first post on the forum, pardon me if there are any mistakes. :grinning: Kudos Every one Ui Path Rocks :sunglasses:

Thanks,
Nithin Prabhu


Web Automation - when I add the Attach Browser activity and specify the browser, I receive an error "Value does not fall within the expected range"
#9

@Nithin_P :slight_smile: it’s already done through selectors.
Thanks again !!