web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Acquire a newly opened...
Power Automate
Unanswered

Acquire a newly opened tab or a clever way to retrieve the HTML source.

(1) ShareShare
ReportReport
Posted on by 4

Goal: Implement a loop process that performs the following steps: search in a web system, display the top result page, show the HTML source of that page, and save it.

Issue: When displaying the HTML source of the search result page using Ctrl+U, the source opens in a new tab. I want to save this tab using Ctrl+S, but sending the keystroke does not trigger a response.
Since new tabs are generated dynamically through searches, they cannot be specified by name.

Steps taken to resolve the issue: Launched a new Chrome instance with Launch mode: Attach to running instance, obtained the foreground window, and focused the generated %Browser2%. Sent the keystroke to %Browser2%.

Result: No response.

Browser used: Google Chrome

If you have any complaints about my English, take it up with Copilot.

I have the same question (0)
  • Suggested answer
    Riyaz_riz11 Profile Picture
    3,844 Super User 2025 Season 2 on at
    Hi,

    Make sure the browser is active, post that while using Send keys use instead of foreground use Instance and pass the browser instance.
     
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.
    Regards,
    Riyaz
  • Riyaz_riz11 Profile Picture
    3,844 Super User 2025 Season 2 on at
    For your reference am attaching code.

    You can achieve using create new tab action or using send keys browser instance
    WebAutomation.LaunchChrome.LaunchChrome Url: $'''www.gooogle.com''' WindowState: WebAutomation.BrowserWindowState.Normal ClearCache: False ClearCookies: False WaitForPageToLoadTimeout: 60 Timeout: 60 PiPUserDataFolderMode: WebAutomation.PiPUserDataFolderModeEnum.AutomaticProfile TargetDesktop: $'''{\"DisplayName\":\"Local computer\",\"Route\":{\"ServerType\":\"Local\",\"ServerAddress\":\"\"},\"DesktopType\":\"local\"}''' BrowserInstance=> Browser
    WebAutomation.CreateNewTab.CreateNewTab BrowserInstance: Browser Url: $'''www.fb.com''' WaitForPageToLoadTimeout: 60 NewBrowserInstance=> NewBrowser
    MouseAndKeyboard.SendKeys.FocusAndSendKeysByInstanceOrHandle WindowInstance: Browser TextToSend: $'''{Control}({S})''' DelayBetweenKeystrokes: 10 SendTextAsHardwareKeys: False
    
     
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.
    Regards,
    Riyaz
  • Suggested answer
    HMD Profile Picture
    4 on at
    thx for your speedy response ,but can't solve my problem...
    press Ctrl+U is create new tab, and it's URL is generated dynamically.
    Your solution seems to need new tab's URL in advance.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard