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 / Extracting Links from ...
Power Automate
Unanswered

Extracting Links from a webpage

(0) ShareShare
ReportReport
Posted on by 6

I am attempting to use the desktop recorder to copy an excel value from an excel sheet, paste the value into a microsoft edge search bar, grab the first link that appears after pressing search, and then paste this link next to the name found on the original excel sheet. I have unsuccessfully been able to extract the links from this page. Would anyone know an efficient way of extracting the first link of a search page and pasting this link back into an excel cell using the desktop recorder or any other suggested methods?

I have the same question (0)
  • VJR Profile Picture
    7,635 on at

    After Launching the browser, use "Extract data from webpage"

     

    Once you drag "Extract data from webpage" action to the PAD editor -> Double click and open it (do not close it) -> While keeping this action open, go to the website -> You will automatically get a "Live web helper" -> Right click on the first link and select the href link element -> Then Ctrl left click. The first link should be added to the Live Web helper box -> Click Finish

     

     

    VJR_1-1651805590945.png

     

     

  • KNash Profile Picture
    6 on at

    Thank you that does seem to help with grabbing the link itself and having it inputted. Would you know how I can make this a loop though using the names on the excel sheet I am referencing as the search criteria then cycling through this so that each name may have a link found next to it just like you had explained.

  • VJR Profile Picture
    7,635 on at

    This is how your Pseudo logic would look like. Feel free to make amends where necessary.

     

    1. Launch Excel

    2. Find First free row/column.

    3. Launch browser

    4. Loop   (Start from 2 if headers row is 1. End To FirstFreeRow minus 1)

    • "Read from Excel worksheet" (Value of single cell. Start Column A assuming it contains your search criteria. Start Row will be LoopIndex variable coming from output of Step 4 action.) This is will give you the TextToSearch
    •        "Go to web page" to navigate to the home page of bing search
    • Search for TextToSearch
    • "Get details of element on webpage" to read the href value of the 1st link element
    • "Write to Excel worksheet" the value returned from previous step. (Column B and Row is LoopIndex)

       End loop

    5. Saving of Excel 

    6. Close web browser

  • KNash Profile Picture
    6 on at

    I was able to get up to a certain point until I am asked to reference the variable 'browser' which is made on your step 3. For example when I get to "Get details of element on webpage" I get an error that reads "Argument 'BrowserInstance' must be 'Web browser instance." I do not believe it is asking me to rename the variable as I have already tried that, but what else do you think could be causing this?

  • VJR Profile Picture
    7,635 on at

    Another forum member got the issue resolved after re-installing the Microsoft Power Automate browser extension.

    And in the same thread (link below) it is said to be occurring only in IE and Automation browser. Are you also getting it when you use any of the latest ones like Edge, Chrome, etc?

    https://powerusers.microsoft.com/t5/Power-Automate-Desktop/Argument-BrowserInstance-must-be-Web-browser-instance/td-p/1399294

     

  • KNash Profile Picture
    6 on at

    Yes I am primarily using Edge for any web interaction. Would reinstalling the application help?

  • VJR Profile Picture
    7,635 on at

    Not the application, at first did you try re-installing the extension as per the other forum member who got the issue resolved by doing so?

    Also what are your observations on - Are you also getting it when you use any of the latest ones like Edge, Chrome, etc?

  • Asim_Jibran Profile Picture
    2 on at

    Hi Were you able to get links using Power Automate. I a unable to run the loop as it gets failed on UI element as UI elements change with each search

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard