Hello,
I am facing some problem while I am going to use “get Text” activity , and want to extract some text form website. I have used dynamic selector for all same type of value extraction. While I am click on highlights into selector editor, then it highlights correct text every time. But when going to run the project, getting the below error:
The error you’re encountering with the “Get Text” activity in UiPath can occur for various reasons. To help you resolve the issue, here are some troubleshooting steps:
Check Selector Validity: Verify that the dynamic selector you’ve created is still valid and matches the element you intend to extract text from. Ensure that there are no changes in the webpage structure or the element you’re targeting. Sometimes, websites update their structure, causing selectors to become invalid.
Use UiExplorer: Open UiExplorer (from the “Design” tab in UiPath Studio) and use it to fine-tune your selector. You can manually validate the selector by highlighting the element on the web page and seeing if it matches the expected element. Make sure to indicate elements correctly in UiExplorer.
Selector Attributes: Ensure that the attributes you’re using in the dynamic selector are unique and stable. Common attributes include “id,” “name,” or “class.” Avoid using attributes that frequently change.
Dynamic Elements: If the web page uses dynamically generated elements, you may need to make your selector more dynamic as well. Use wildcards or variables to accommodate changing values.
Selector Timeout: Ensure that the “WaitForReady” property of the “Get Text” activity is set correctly. It should be set to “COMPLETE” if you need the entire page to load before extracting text.
Browser Extension: Make sure the UiPath browser extension is properly installed and enabled for the browser you’re automating (e.g., Chrome, Firefox). Sometimes, issues can arise if the extension is not working correctly.
Try Different Methods: If you’re still having trouble, consider using other methods to extract text, such as the “Screen Scraping” wizard or the “Get Full Text” activity. These methods can be more robust in certain situations.
Error Details: Pay attention to the error message details. It might provide more specific information about what went wrong. Sometimes, it could be related to browser compatibility or other environmental factors.
Debugging: Use UiPath’s debugging features to step through your workflow and inspect variables and selectors at runtime. This can help identify the exact point where the issue occurs.
Browser Updates: Ensure that your web browser is up to date, as updates can sometimes affect automation.
If you’ve tried these steps and are still facing issues, please provide more specific information about the error message or the web page you are trying to automate. This additional information will help in diagnosing and providing a more accurate solution.