How to get website attribute hidden in html

There is this list <li> element which is a radio button on each page of the site.
There are two versions: one is when it’s enabled and can be selected, and the other is when it’s disabled.

The HTML code is identical in both cases, absolutely no difference.

But in the developer console, I see that in case of the disabled one, there is an extra attribute, which is disabled=“disabled”.

This attribute doesn’t show up in UiExplorer and there aren’t any other attributes related to visibility either.

What I want is to check if the radio button is enabled or disabled, so that I move forward only in case it’s enabled.

Is there a way to do this?

@anon37829306

Did you try using get attribute with giving the required Attribute?

cheers

For CSS Property Value Retrieval:

A property available for Javascript, but nullable and can be null, when not inital set.
One of a few options is to use Inject Js Script Activity and implement a Property Retrieval

Yes, trying to check on “disabled” with Get Attribute doesn’t work.
But that’s no wonder, since the attribute is not present in the html.

1 Like

Thanks for the insight, very useful.
I checked CSS and it has indeed
input:disabled {…}

So then is there a way to check css in UiPath…? I’ve never come across such a need before, so I don’t know what the approach should be with this…

Thanks.

we shared the link to the marketplace offering already above.

Kindly note: some CSS Properties are on inherit and set to parent elements. So also have more detail check if an element more up the tree path is maybe triggering the display / visibility by style or class infos

Thank you, I’ve been trying to install the package but it UiPath has a problem with the path.

When I add the package in ‘Manage Packages’, it sets correctly, no error.

But when I click on the package it shows the following error message:
“The path for the selected source could not be resolved”
I tried many locations and it’s the same.

I attach a screenshot.
Is this another bug in UiPath…?

@anon37829306

This package is currently supported only on windows- Legacy…please change the framework and try. I believe you are on windows

cheers

Correct, I’m on Windows. This particular program is still in legacy mode- see the screenshot.
Should I make other settings…?

@anon37829306

Please confirm the steps

  1. Download the package from marketplace and save it in a folder
  2. Go to settings in manage packages and give the folder location(not the file directly)
  3. Then check the package is present or not

cheers

Yes, I confirm all thre points.
I tried with copying the file in …\UiPath\Packages and this location (folder only) is present - in ‘Default package sources’

@anon37829306

Please select local and you would find the package under that

Cheers

You are right, it shows uder Local.
Now in the project, it shows in the Project tab too,
however in the Activities tab when I search ‘css’ nothing shows.
How can I use the activity inside the RPA flow?

Hi @anon37829306 ,

If you are already in a Windows-Legacy project, then you should be able to Install the Package directly using the Manage Packages option. You wouldn’t require to do the steps to access the package using the Local method.

Let us know if you are not able to perform this approach.

Hi, I think I could install the package. Accessing Local was just for the purpose of checking that it shows there, meaning it installed properly.
It shows in ‘All packages’ too, so I guess it installed OK.

My last question was about how to use this package, since in Activities when I search with ‘css’ it doesn’t show up so I can’t drag any activity in the RPA flow.

As mentioned above: the package is for legacy framework
In general we use the marketplace feed

the general flow is about:

  • get the element of interest (e.g. with a find element)

There are two activities:
grafik

get CSS Property Keys:
grafik

it will return a list of string with all abailable property keys (set is depending to implementations and varies for browser)

get CSS Property Value:
grafik

we pass the element and the key of interest (e.g. color)
and will get back the CSS Property value for the color property

Kindly note: there is also a docu available on the marketplace site:
grafik

Hi Pete, thanks for the guidance.
Unfortunately I don’t see andy of those fields - ‘CSSPropertyKey’ / ‘CSSPropertyValue’ under Input/Output in the Properties panel of Find Element activity.

What am I missing…?

please do one thing:

we mentioned that with find element we retrieve the element on which we want to work on.

and also we mentioned:

Thanks.
But as I mentioned in a previous post, no such activities are available for me.
I search with ‘Reply’ and ‘CSS’ but nothing shows up.

I attach a screenshot with the result when searching with ‘Reply’.

UiPath Project is set to Legacy (as the package is only offered for this setting)

When referenced:
grafik

then it should offer:
grafik