i have situation where i am trying to save document as pdf. i have different method but it is not working for me it seems.
when i open the word document, there will be one pop-up which i need to close and that is working fine using check app state activity and close or click activity, but in case if pop up doesnβt appear it should save that word document as PDF
Currently you are using Check App State so after that add 2-4 sec of delay and apply the logic like if target appear then click and close the popup and save the file as .pdf
If target does not appear then directly save the file
Another approach
Use Element Exists activity to check for pop-up
Store result in a Boolean variable
Use If activity
If popupExists = True β Close pop-up
If does not exist then
popupExists = False β Skip
Thanks for the reply..
but, my problem is first i opened the word application scope and passed the path, after that i am checking the pop up using check app state, if appear it will close in Target appear section, but it not appear it will go to target doesnβt appear section where i kept save document as pdf, but it says i need to keep the document in word application scope and when i pass again, bot say already open document can not open again.
Word Application Scope (Document Path)
βββ Check App State (Popup)
βββ Target Appears
β βββ Close Popup
β βββ Save Document as PDF
βββ Target Does Not Appear
βββ Save Document as PDF
One document β one Word Application Scope
All actions (popup handling + save PDF) stay inside it
Use Check App State or Element Exists to detect the pop-up. If it appears, close it; if not, proceed to save the Word document as PDF using Word Application Scope.
Anything related to Microsoft products, Word, Excel, Outlook etc.. use coded workflow and Microsoft.Office.Interop. Using UiPath activites probably save you some time now, but in long run, itβs beneficial if you use .Net native methods.