[need help!] A selector issue with Ariba P2P


Click ‘FBP reports’: Could not find the user-interface (UI) element for this action.

Warning message: Click ‘FBP reports’: Could not find the user-interface (UI) element for this action.
Possible solutions:

  • • Ensure application is opened and the UI element is visible on the screen at execution time*
  • • Edit the Target of the UI activity and use Validation to debug the issue. *
  • • If needed, re-indicate the element as its properties might have changed*
  • • Use “Check state” activity to check the application state before executing the action*
  • • Increase the “Delay before” value to allow time to the application to render entirely and become responsive*

My program is always stuck with the selector issue. It seems due to Ariba UI element. How to resolve this? appreciate your advice &help please.
Thank you!

Hi @beginner_RPA

Please try giving the anchor which is near to the target and also if possible provide some delay before performing this activity.

Regards

Hi @beginner_RPA
Try to give the anchor near to the target of the element.

Hope it helps!!

Hi,

Here’s how you can address the selector issue based on the screenshot and details you’ve provided:

  1. Verify Application State: Before the click action, use the “Check App State” activity to ensure that the “FBP reports” element is present and interactive.
  2. Dynamic Selectors: If the selector for “FBP reports” changes due to dynamic attributes, you’ll need to identify stable attributes and construct a reliable selector. Use wildcards (*) for dynamic parts if necessary.
  3. Anchor Base Activity: Since you have the “Target & anchors OK”, use the “Anchor Base” activity to anchor the “FBP reports” button to a nearby stable element.
  4. Delay Before: Increase the “Delay before” property of the click activity to give the application more time to render the UI element.
  5. UI Frameworks: Try changing the UI Framework used by UiPath to identify elements. You can change this in the UiPath Explorer by selecting “UI Framework” and then choosing “Active Accessibility” or “UI Automation”.
  6. Fuzzy Selector: As shown in your screenshot, you’re using a fuzzy selector. Adjust the “Accuracy” property if the fuzzy selector is not providing reliable results.
  7. Re-Indicate on Screen: If the UI has changed, you may need to re-indicate the element on the screen to capture the updated selector.
  8. UiPath Extensions: Ensure you have the necessary UiPath extension for the browser or application installed and enabled.
  9. Debugging: Use “Highlight” in UiPath Explorer to test if the selector is correctly identifying the element.
  10. Logging: Implement logging before and after the click action to capture the application’s state and any possible errors.
  11. Error Handling: Use “Try Catch” blocks to handle exceptions that may occur when the element is not found.

thanks ! i did choose anchor near to the target, it does not work.

image
i did actually add delay activity.

Hi @beginner_RPA

did it worked or not?

Regards

If anchoring near the target element in UiPath did not resolve the issue, here are some additional steps you can take to troubleshoot and fix the problem:

  1. Selector Validation: Revalidate and update the selector for the “FBP reports” element. The application’s UI may have changed, causing the selector to become invalid.
  2. UI Frameworks: Try switching the UI Automation framework. In UiExplorer, you can change the framework to “Active Accessibility” or “UIA” to see if that improves the selector’s reliability.
  3. Delay Activity: Add a “Delay” activity before the click action to give the application more time to load the UI element.
  4. Wait Activity: Use “Wait Element Vanish” or “Find Element” activities to ensure the UI element is available before trying to click.
  5. Visibility Check: Use the “Element Exists” or “Check App State” activity to verify the element’s presence and visibility on the screen.
  6. Image-Based Automation: As a last resort, if the selector-based approach fails, use image-based activities like “Click Image”. This method does not rely on selectors and can sometimes work when selector-based methods fail.
  7. Debugging: Use the “Highlight” activity to test if UiPath can correctly identify the element on the screen.
  8. Simulate Click: Ensure the “Simulate Click” or “SendWindowMessages” properties are enabled, which can help with background automation.

it does not work with delay