09-06-22 02:54 PM
Answered! Go to Answer.
09-06-22 07:46 PM
09-06-22 03:23 PM
09-06-22 06:32 PM
09-06-22 07:46 PM
10-06-22 02:43 PM
Hi Devneet,
I used the method to check UI automation attribute as you suggested, and it threw the exception that the order text could not be retrieved (when the action page is run and when the entire process is run).
I don’t know if it’s helpful information, but some of the web elements I’m scraping are UIA Control Type Text (like Server Name) and others are UIA Control Type Edit (like Port). The element type for all of them is Edit Box(UIA). They all have the Data Type Text. This is how they appear in the browser:
I remember using a Trim() function in the consolidation exercise for the foundation training, would you recommend I try that here if the problem is whitespace?
Thank you for the advice about breaking up the read stages into individual action pages! At the moment, I’m scraping 5 web elements from one link on a table, but once I have this part working, I have 25 more tables to pull this same information from. I wonder if you have a suggestion for how to condense it or if I’m going to have to create 100+ action pages for this process 😊.
Thank you!
12-06-22 03:17 AM
"I used the method to check UI automation attribute as you suggested, and it threw the exception that the order text could not be retrieved (when the action page is run and when the entire process is run)."
- If you have replaced your elements which you need to read with this action and it is throwing an error then it sounds good as at least now you can throw errors directly in case the element value is null. "I remember using a Trim() function in the consolidation exercise for the foundation training, would you recommend I try that here if the problem is whitespace?"
- Post this wait stage you can use the 'Reader' stage and then trim the value of your text data item using a Calculation stage to again store the value in the same data item which would be the output of this reader stage. Then check if that trimmed out value is null or not in a decision stage. If the value is null, throw an error and this would add as a double check in case any whitespaces are only coming up."Thank you for the advice about breaking up the read stages into individual action pages! At the moment, I’m scraping 5 web elements from one link on a table, but once I have this part working, I have 25 more tables to pull this same information from. I wonder if you have a suggestion for how to condense it or if I’m going to have to create 100+ action pages for this process 😊"
- You can create like 25 different actions one for each table and make your element dynamic to pull all the data from the table at once such that whatever value you are interested in taking up you can simply manipulate the values and keep taking up the data. If that approach seems tedious to you, then you can use multiple read stages but just make sure you do all the checks after each read stage as I have indicated above.13-06-22 07:20 PM