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 / Custom UI Element to C...
Power Automate
Answered

Custom UI Element to Click on Chrome

(0) ShareShare
ReportReport
Posted on by 22

Hello, 

 

Was wondering if anyone could help. I am trying to setup a Flow on Power Automate Desktop where I download a file every month from a website. This website generates a new div every month for the latest month's download. For instance, In Jan, there will be a new div on the web page where <div title="Jan 2022"> which will prompt the download if I click on the div.

 

I am trying to setup the automator such that it will download based on the current date. For instance, For Jan 2022, I want Power Automate to click on the button where div title is "Jan 2022". Jan will be returned from the day when the flow is running. The flow will be scheduled to run every month.

 

If I were to write in expression, the div title will always be 

 = formatDateTime(utcNow(),'MMM yyyy')

 

I tried a Custom Link like this, but didn't work 

Community Post.png

 

Would be very thankful if anyone could help me out 

Categories:
  • Verified answer
    Expiscornovus Profile Picture
    34,005 Most Valuable Professional on at

    Hi @Imrans23,

     

    You could use a Get current data time and a Convert date time to text and store that in a variable. That variable can be used in the selector builder.

     

    Below is an example.

     

    These would be the two actions

     

    DateTime.GetCurrentDateTime.Local DateTimeFormat: DateTime.DateTimeFormat.DateAndTime CurrentDateTime=> CurrentDateTime
    Text.ConvertDateTimeToText.FromCustomDateTime DateTime: CurrentDateTime CustomFormat: $'''MMM yyyy''' Result=> FormattedDateTime

     

     

    datetimeformatting_pad.png

     

    In the Selector Builder you can refer to the FormattedDateTime variable like this:

     

    div[Title="%FormattedDateTime%"]

     

     

    formatteddatetime_pad.png

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 307 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 289

#3
Henil Profile Picture

Henil 127

Last 30 days Overall leaderboard