Switching to new tab in Chrome

Hey everyone I am trying to automate a form filling activity in chrome. When I click on certain activity a tab open in chrome (** Lets call Original Tab T1 and new Tab T2**), in which i want certain action to be done. But what happens is the bot does the activity in T1 and not T2. It someone switches to the T1 itself. I have tried using Attach window, but no success, Kindly help!!!

@Palaniyappan @DanielMitchell @kirti.iyer @ImPratham45 Please help

1 Like

Hi @Aditya_Bhalerao

Try to pass the browser variable and set new session as unchecked
Thanks
Ashwin.S

1 Like

Hey can you please share a work flow file., That will be really helpful

@Palaniyappan Please share a Solution

i hope using a click activity and click on the new page will not let it to go from new page to first page
Cheers @Aditya_Bhalerao

I tried doing that but that it didnt work

Hi @Aditya_Bhalerao

You can try to do it with send hot key as Ctrl+tab and pass the selector for tab1 and then use it for tab2

Thanks
Ashwin.S

Did it , but didnt work

Some how the bot is hinged on Original Tab

May i know how we actually get when we do it manually in that webpage
is it getting back to the first page once opening the second one
Cheers @Aditya_Bhalerao

It does all the operation that i have programmed to be done on Tab 2 on Tab 1

1 Like

Hi @Aditya_Bhalerao
You can use “Activate” activity.
image

1 Like

Hi
–does the TAB 2 go any unique URL in it …!
–if so use Navigate to Activity where pass that URL as input
and once getting to that page use a element exists activity to choose any unique element in that page and get the output with a variable of type boolean named out_bool
–now use a if condition liek out_bool = True
if the condition passes it will go to THEN part where we can include the sequence of process to be taken in the TAB 2
if not it will go to ELSE part where leave it empty so that no process will be taken in the TAB2 and in TAB 1 as well

hope this would help yoy
Kindly try this and let know for any queries of clarification
Cheers @Aditya_Bhalerao

Nope the website doesnt have a unique URL

Hey Can you please share a workflow, so that I know how to use it.

Hi @Aditya_Bhalerao
Please find attached flow
test.zip (20.5 KB)

1 Like

@kirti.iyer thanks for the workflow, let me take a look at it and get back to you.

@kirti.iyer This one doesnt work.

Please highlight the element again for your system.

PLease take a look at it and let me know, what mistake am i making .

CrashTestDummy.xaml (7.9 KB)