How to detect webpage elements status?

Hi Pros,

I wish to know how do I detect a webpage status?
The download button is greyed out until it changes to blue (ready for download)

I wish to use UiPath studio to create an activity which can detect and wait for the button to turn blue then only click ‘Download’.

I also need to ensure the reports I download is the latest one (meaning within the webpage there are a lists of reports being downloaded)

Greyed Out
image

Able to download
image

Hi @Jackson_Hew

Using the Get Attribute activity, You can extract the value and compare if the button is disabled or enabled.

Or

You can use Element exists activity also to check if the enabled button is exists or not.

You can use this activity with re-try scope by giving
RetryInterval - Specifies the amount of time between each retry.

You can compare the timestamp “received time” to check which is latest one.

Hope this helps :slight_smile:

You can use Element exists activity also to check if the enabled button is exists or not.
You can use this activity with re-try scope by giving
RetryInterval - Specifies the amount of time between each retry.
You can compare the timestamp “received time” to check which is latest one.

Oh I never thought of that.
But what if I have many reports with different names?
Can I pinpoint which report to download first using ‘click’ activity?

Example:
Report A - Received time: 8:00AM Completed Time: 8:03AM Download - greyed out
Report B - Received time: 8:00AM Completed Time: 8:02AM Download - Available Blue

Script

Do
If(Download button greyed out)
loop ‘checking’
else(click ‘Available Blue’)

While
Reports are today’s date - dd-MM-YYYY

Yes you are on right path,

You can use the “Click” activity to pinpoint which report to download first based on specific criteria such as the status of the download button or the attributes of each report.

I would suggest use click activity & check the selector of different elements, if you can spot the difference between 2 buttons. You will idea to get it done using these conditions.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.