How to check whether the browser is attached or not?

1 Like


Sorry I did not get you. Could you please tell more details about the issue for better understanding.

May be this will help you,

When you try to Indicate the window on screen, it will show the pop up new window individually to click and will take it as a new screen :slight_smile:

Attach browser is something which is a new windows of the browser when you click or it open something.

We have a application, in that we need to process 2 flow…
Both starts from the home page, which has 2 icon(Old customer,New customer)

In case of queue item with the reference old,
we will click the old customer icon and a new page opens, process continues and return back to the home page and next item continues

In case of queue item with the reference New,
we will click the new customer icon and this time a new tab is opened and the process flows

I this case if the reference new comes… each time clicking on the icon the new tab is opened
so, if we check whether that browser is opened we can process in that, otherwise we can start the process from first that is check the icon, new tab opens and process

so this can be handled with element exists activity
either when we press new or old customer icon, we will be directed to a new page for sure
–so there would be some distinct element or image that appears on either of the pages…
–choose any one page (lets first consider old customer page) first with an element or image using Element exists or Image exists (if not able to select as individual element)
–where the output of both the activities is a boolean variable and name it out_bool_old
–now use a if condition and mention the condition like out_boo_old = True
so if the condition satisfies it will go to THEN part where we can continue with the process of old customer or it will go to ELSE part where we can check with element exists by choosing the element for new customer page and validate again with a if condition (while still being inside the ELSE condition) like out_bool_new = True
and if it satisfies it will go to THEN part where we can proceed with new customer page process


if we are not able to find any unique element then we can use Get attribute activity when new page appears and select the whole page as element and we can check with any of the attribute that depicts the page title (either old or new) like attributes title (now lets take for old customer page)
–get the output with a stringvariable named out_attr
–now use a if conditionlike out_attr.ToString.Contains(“old”) and if the condition passes it will go to THEN part where we can proceed with OLD Customer process or will go to ELSE part where we can proceed with NEW Customer process

simple isn’t it
hope this would help you
Kindly try this and let know for any queries or clarfication
Cheers @Sweety_Girl