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 / How I get href links f...
Power Automate
Answered

How I get href links for elements has no links ?

(0) ShareShare
ReportReport
Posted on by 70

Hi

 

I want to scrap https://bubble.io/videos youtube links but the tip/course blue area has no href so how I get the link ?

 

zin45_0-1673044025948.png

 

I have the same question (0)
  • Kaif_Siddique Profile Picture
    2,108 Super User 2024 Season 1 on at

    The element is not having YouTube link. So i would suggest first click on it and copy url from next page.

  • VJR Profile Picture
    7,635 on at

    If nothing else works use Move mouse to text on screen (OCR) and send a mouse click. 

     

    VJR_0-1673146373101.png

     

  • zin45 Profile Picture
    70 on at

    Thanks guys can you please provide more details about the actions and loop I need to use ? I am beginner with power automate 

  • Verified answer
    VJR Profile Picture
    7,635 on at

    If you want to extract the hyperlinks use as below

    1. Launch browser (Chrome/Edge)

    2. Choose the Extract data from web page action

    (look up the internet for some videos on how to use this action -> Power Automate Desktop : Web Data Extraction - Extract Data from Web Page - YouTube)

     

    Right click on the "How to use.." and then the ones mentioned below in yellow highlighted 

    VJR_0-1673235175731.png

     

     

    Then go to the Advanced settings of the Live web helper window

    VJR_1-1673235264864.png

     

     

    Make changes to the selector as below

     

    VJR_2-1673235387381.png

     

    html > body > div:eq(1) > div:eq(3) > div > div:eq(1) > div:eq(0) > div

    div > div > div > div:eq(1) > a

    href

     

     

    The Live web helper window now shows the list of hyperlinks

    VJR_3-1673235483786.png

     

     

    After running the process you should now see all the hyperlinks in a datatable variable

    VJR_4-1673235572741.png

     

     

    The website you are working on also has pagination

    VJR_5-1673235660239.png

     

    So you need to use set element as pager to get the links of the other pages as shown in below video

    Extract Data from Multiple Web Pages In Power Automate Desktop - YouTube

     

    Best wishes!

     

     

  • zin45 Profile Picture
    70 on at

    Many thanks

     

    When the short menu appear and try to go the mouse pointer to next menu the menu always close and disappear !!

     

    Another problem the automation reach last page 13 and keep pressing on this page instead I want to store the urls in csv file so I tried like this:

     

     

  • zin45 Profile Picture
    70 on at

    WebAutomation.LaunchChrome.LaunchChrome Url: $'''https://bubble.io/videos''' WindowState: WebAutomation.BrowserWindowState.Normal ClearCache: False ClearCookies: False WaitForPageToLoadTimeout: 60 Timeout: 60 BrowserInstance=> Browser IF (WebAutomation.IfWebPageContains.WebPageDoesNotContainText BrowserInstance: Browser Text: $'''13 OF 13''') THEN WebAutomation.ExtractData.ExtractTableUsingPagingFromAllPages BrowserInstance: Browser Control: $'''html > body > div:eq(1) > div:eq(3) > div > div:eq(1) > div:eq(0) > div''' ExtractionParameters: {[$'''div > div > div > div:eq(1)''', $'''Own Text''', $'''''', $'''Value #1'''], [$'''div > div > div > div:eq(1) > a''', $'''Href''', $'''''', $'''Value #2'''] } PagerCssSelector: $'''html > body > div:eq(1) > div:eq(3) > div > div:eq(1) > div:eq(1) > div:eq(2) > button''' PostProcessData: True TimeoutInSeconds: 60 ExtractedData=> DataFromWebPage END File.WriteToCSVFile.WriteCSV VariableToWrite: DataFromWebPage CSVFile: $'''C:\\Users\\iuser3\\Documents\\bubble.csv''' CsvFileEncoding: File.CSVEncoding.UTF8 IncludeColumnNames: True IfFileExists: File.IfFileExists.Overwrite ColumnsSeparator: File.CSVColumnsSeparator.SystemDefault

  • zin45 Profile Picture
    70 on at

    Untitled.png

     

  • zin45 Profile Picture
    70 on at

    Moving from here to here is a big pain

     

    zin45_0-1673309185474.png

     

  • VJR Profile Picture
    7,635 on at

    Follow as below to get links of all 13 pages.

    VJR_0-1673321689187.png

     

     

     

    VJR_1-1673321777416.png

     

    After running the process:

     

    You will get 0 to 116 ie; 117 links

     

    VJR_2-1673321829189.png

     

    Either you can write the above DataFromWebpage variable to a csv using Write to CSV.

     

    Or store it in Excel spreadsheet in the Extract data from webpage action.

    VJR_3-1673321907440.png

     

  • zin45 Profile Picture
    70 on at

    but just in case I did not know there still 13 pages 

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

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard