How to solve cannot click element on web page in Power Automate Desktop

by

In this article, I will share about how to working with web page that automatically open new tab and robot cannot switch to work in the new tab.

The below are working step in this article

  1. Open website
  2. Click Link 1 (Browser will open new tab)
  3. Click Link 2 on the new tab for download file

Example of Failed Flow

Below image is example of failed flow with toggle breakpoint (Line 3) before click Link 2 (Line 5) on the new tab.

Below image show that robot can click Link 1 (Line 2) and the new tab had been opened.

However, if we run after breakpoint, robot will try to find element on previous tab and error to click Link 2 (Line 5).

Robot work on previous tab so it cannot find the element on new tab
Error because cannot found element

Solved Flow

Use “Launch new Chrome” action and set parameter as follow:

Launch mode: Attach to running instance

Attach to Chrome tab: Use forground window

Variables produced: Browser2

Edit Web browser instance in “Click link on web page” action

Tips

For Google Chrome

Left Click will open browser in current tab

Middle Click will open browser in new tab (=Ctrl + Left Click)

Hope this article helpful. Happy automating 🙂

Did You Enjoy this Article?

Subscription to get new articles sent to your inbox each week for FREE

Question?

If you have any questions or feedback about this article please leave a message in the comments section below.


Comments

Leave a comment

Subscribe to get new articles sent to your inbox each week for FREE