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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Checking Element in we...
Power Automate
Answered

Checking Element in website before downloading.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Ignore my spelling for my English is not too good. I have made a PAD flow that clicks a download link button every day and saves the  file on my computer. On the download button there is a date that shows if the file has been updated to the current day. How could I add a step that checks if this date is the current date. I attached a photo below of what the download button looks like. Thanks for your help

 

link button.PNG

I have the same question (0)
  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    I would try to "Get details of web page" and see if you can't extract the date (it has to be part of that element somewhere).  A last resort would OCR, but I would avoid this.

     

    Are there dates available on the output file that could give you this determination.  For example, if this is Excel, and the date always appears in A5, then I would just download it anyways and use that date to run this validation, because that is going to be much easier to set up.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks Michael for the quick reply and taking time to help. I have tried using the get details option but still not having any luck. I was thinking maybe you could make that date a variable somehow and check to see if it was updated using a if statement or some minor programming. 

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Can you inspect it, and show us the source code.  It has to be in there somewhere.

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Can you inspect it, and show us the source code.  It has to be in there somewhere.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I copied the element and pasted below. Thanks again for your help Michael.

     

    <span class="time">January 11, 2022</span>

  • Verified answer
    MichaelAnnis Profile Picture
    5,727 Moderator on at

    So, this page is a great example of what you should be able to do.  At the bottom of the page is a list of related topics and to the right is the date.  Here is a phot of the date with the related source code:

    MichaelAnnis_0-1641918062269.png


    I was able to 'Launch new Chrome' and attach to this window, then use 'Get details of element on web page' to extract the date. 

    MichaelAnnis_1-1641918346424.png

     

    So, here are your steps:

    1. Add 'Get details of element on web page' to your flow
    2. Make sure the right Browser Instance variable is in the top dropdown
    3. For UI element, click in there, and go to 'Add New UI element' (you should see a popup screen)
    4. Hover over the Liverpool Report download button, Hold CTRL and Left Click
      1. This will add the UI element to the popup window
    5. Click Done on the popup window
    6. Save 'Get details of element'

     

    Try to rerun it, and let's see what %AttributeValue% gets us.  Share the text with me here.  After that, it will probably just be using the text features to capture the date by itself.

     

     

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 474

#2
11manish Profile Picture

11manish 268

#3
David_MA Profile Picture

David_MA 243 Super User 2026 Season 1

Last 30 days Overall leaderboard