Get attribute - Error HRESULT E_FAIL has been returned from a call to a COM component

Hi,

I am getting this error when I am using the get attribute activity.
I have given the attribute as “Value”.
Not able to recreate the issue, got this error only once, but trying to understand the reason for the error.

Error HRESULT E_FAIL has been returned from a call to a COM component.
Get Attribute Reason: Error HRESULT E_FAIL has been returned from a call to a COM component.

Hi
welcome back to uipath community
if we are trying to get only the value then we can directly get that with GET TEXT activity or with SCREEN SCRAPPING method in design tab of uipath studio
which would either give us the value of the element
Cheers @Ash3

Hi @Ash3

Based on value property what was there in selector

Thanks
Ashwin S

@Ash3

Hi,

This error could appear while robot was trying to get access to that selector but element was busy by the system, then it was rejected and you got HRESULT error. I would strongly suggest to put activity it to the Try Catch or Retry Scope to handle error in the future.

Thanks…
I have added JavaScript instead of get attribute.

Thanks for the error explanation.

Thank you