Need help in Get Attribute Activity

Hi,

To Automate Web Application, When i enter a data in a input box, the Next button should enable, Or else, the Next button should be disabled. can anyone help me to find this using Get Attribute Activity in UiPath ver 2024.2.1?

Thanks in Advance,
Abi

Hello abianbu,

I haved provided some steps which will help you out please find it below:

  1. Open UiPath Studio and create a new sequence.
  2. Use activities such as ‘Open Browser’ or ‘Attach Browser’ to navigate to your web application.
  3. Use the ‘Type Into’ activity to enter data into the input box.
  4. Next, add a ‘Get Attribute’ activity to retrieve the value of the ‘disabled’ attribute of the Next button.
  5. Use an ‘If’ activity to check the value of the ‘disabled’ attribute.
  6. If the ‘disabled’ attribute is set to ‘true’, then disable the Next button.
  7. If the ‘disabled’ attribute is set to ‘false’, then enable the Next button.

Here’s a sample workflow:

  1. Drag an ‘Open Browser’ activity into the sequence and specify the URL of your web application.
  2. Use a ‘Type Into’ activity to enter data into the input box.
  3. Add a ‘Get Attribute’ activity and indicate the Next button to retrieve its ‘disabled’ attribute.
  4. Create an ‘If’ activity and use a condition to check if the value of the ‘disabled’ attribute is ‘true’.
  5. Inside the ‘Then’ section, disable the Next button.
  6. Inside the ‘Else’ section, enable the Next button.

Here’s how you can set up the activities:

Here’s how you can configure the ‘Get Attribute’ activity:

  • Selector: Indicate the Next button to retrieve its ‘disabled’ attribute.
  • Attribute: Set it to ‘disabled’.

Here’s a sample condition for the ‘If’ activity:

attributeValue = "true"

In this condition, attributeValue is the output variable of the ‘Get Attribute’ activity.

Inside the ‘Then’ section, you can add activities to disable the Next button, and inside the ‘Else’ section, you can add activities to enable the Next button.

Ensure that you properly handle exceptions and timeouts as per your application’s behavior.

Please let me know if my suggestion resolves your issue.

Thank you :slight_smile:
Happy Automation!!

Hi @hrishikesh.k

Thanks for your response!!
I’m unable to find the “disabled” attribute in the get attribute activity once indicating the Ui Element. so I have manually entered the attribute name as “disabled”. but its not working.

Can you please add some screenshots of workflow and website to assist you in detail.

Thank you :slight_smile:
Happy Automation!!