I want to get the code from the excel file , find where the code is in the web page and click on the pdf icon beside it and download the pdf document. how is this possible ?
Hi @Harish_saravanan_R ,
Use find children activity for the result grid- descendants property.
Then loop through it or use linq to filter the attribute.
U loop through the elements and inside that use get attribute activity to check the text u want and click if tht matches
Else you can also search through the UI elements collection using linq provided that attribute is present in the fetched UI elements collection.
Thanks,
Geetishree
→ You can use the For each Ui element activity, indicate the first button it will automatically capture the remaining buttons. Output is CurrentElement.
→ Inside for each insert the Get attribute activity, then pass the CurrentElement to the Input Element option in the properties and select the attribute which contains the required number and create a variable in the output.
→ After Get attribute activity insert the If activity to check the condition.
→ Inside then block insert the Click activity and pass the CurrentElement to the Input element field in properties.
Hope it helps!!
In the “Get attribute activity” , the input element is the the “CurrentElement” and the attribute should be the number from excel right “V2017B” ?
If you are using Modern activities,
Just use Click activity,
Choose Target as that left most icon that you have indicated.
Anchor as 3rd column Manufacturing Part Number and just make the selector dynamic by using aaname or some other attribute where the whole name is coming and replace that with CurrentRow(“Product number”).toString .
You should be able to do that.
Thanks
Happy Automation!
I tried this now , its downloading the same document repeatedly.
Download_Automation.zip (2.9 MB)
Uploaded the file for how i have done it .
Can you please check this workflow attached, you followed what I said to a certain part, and didn’t create a dynamic selector for the anchor.
Download_Automation (2).zip (11.4 KB)
Please Check this and let me know If this works.
Happy Automation!
It is working a huge thanks , but i did the the same thing . There is no anchor text in your program but for it gives an error . Is there anything i am missing ?
I could show you on how I did it, DM me if you need that information.
Happy Automation!
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.