Use Application/Browser always opens a new window

Hi,
I have chrome running already and I want to open a new URL in a new tab in same chrome window using “Use Application/Browser”.
I see a option to adjust this setting and I did it but it still opens a new window and not attaching to running chrome window
image

@tejaskumar.darji If your application already opened then use Go to URL or Navigate Activity
to move in that page.

Hi @tejaskumar.darji

Please use single window option in window attach mode.
image

Hope it works!!

These both only work within the Use App activity

@tejaskumar.darji So you are opening your desire application first time

Thanks for your reply. I tried exactly like this but still opened the URL in a new Chrome window

@tejaskumar.darji

Keep the options as below
Close ------- never
Open ------- If not open

image

@tejaskumar.darji
Enable claasic activities and use this method.

  1. Attach Existing Browser using “Attach browser”
  2. Send Hotkey "Ctrl + t " to open a new tab
  3. Attach Newly opened tab using “Attach browser” Activity in the same browser
  4. Use the “Navigate” Activity to search the URL.

@tejaskumar.darji

Welcome to the community

The options in the properties work when you open same url…but if you wnat to open a new tab with different url then use the below steps

Cheers

Hi Thanks,
I tried with this but still, it opens a chrome window instead of creating just a new tab in the existing chrome window.
image

What am I missing here!

If you use the option Open = “If not open”, then it will open a new window if it doesn’t find the window that you targeted. So, you could check the Selector field and see if it’s valid when you click “Validate”.

In my scenario, a chrome window is already open with a couple of tabs. And now I want to run a new automation, which should not open a new window but just a new tab in the running chrome window itself. So how can I achieve that? I tried the provided options but it opens a separate window even though there is an existing chrome window available

If you are certain that a Chrome window is already opened, and you do not want to open a new one, set Open=Never.

If there’s no specific window you want to attach to, but just any, you can omit the “title” part of the window’s selector.

To open a new tab, you can try sending hotkey Ctrl+T, or by injecting JS (How to open new tab of the same browser - #3 by Yoichi)

I don’t see any option to edit the selector of the main window in the activity Use Application/Browser.
See attached snap

Check here:

Thanks for your quick replies. I found the selector option, and I did the omit. Now it’s not throwing any errors but also not opening the URL in a new tab
Main.xaml (8.7 KB)
. I’m attaching the flow here

To open a new tab, try these options:

Oh so we cant do it directly. This seems to be a long procedure!