I’m working with a Windows application where I have a sequence that has the following steps;
-Use Application
-Find Element
-Click Element
If the application is already launched (either manually, or by a previous run through studio) then the find/click will work perfectly.
If the application is not yet instantiated, then the Find Element will fail every time.
I have played around with all the properties I can find in all activities.
Any suggestions on how to work around this would be most appreciated.
FYI I have found a workaround by breaking up this into 2 workflows (launch/click), which works just fine and suits the maturity of the process being developed (Launch goes into an Initialise workflow)
Would love to know if anyone can explain this behaviour though.
Actually use application itself will open a new instance every time if you want and If the application is not already open, it is opened when the project is executed
To do that * You can launch a new instance of the application or a new browser session, retaining the current configuration settings, by using the button next to the Application Path (in case of an application) or Browser URL (in case of a browser) field. If opening a Browser via this button, please note that all configurations made in the Options - Browser property section are applied, thus enabling you to test the behaviour of the activity at design time, mitigating possible failures at run time.
Configure application launch settings:
If the application is a web browser, you can click Plus on the right side of the Browser URL field, and then use one of the options in the menu to edit the URL of the web page to open.
If the application is not a web browser, you can specify parameters to pass to the target application at startup from the Application arguments field. For example, if the target application is Acrobat Reader, you can open a specific PDF file by providing the full path to the file. To open the file C:\Sample.pdf, click Plus > Text , and then enter C:\Sample.pdf in the Text Builder. Certain application types are automatically identified and autofill the Arguments property, such as Java apps, Office Suite apps, Adobe Acrobat, or Windows File Explorer.
If the application is not a web browser, you can click Plus on the right side of the Application path field, and then use one of the options in the menu to edit the full path of the executable file to open. For applications installed in user mode, the automation does not save the actual path that includes the username, a relative path is used and displayed in the field as User Folder .
Thanks @Palaniyappan & @AKM_Robinuzzaman for the quick replies.
I’m using v2021.10 which doesn’t have the Open Application activity, as it seems to have been replaced with the Use Application/Browser which to be honest has worked really well in all other cases so far.
If I open older projects, I can still see/use the Open Application activity, FYI.
Hi Ushu, thanks for your reply, sorry it took me so long to get back to this.
I have done what you mentioned, but it is still giving an error unless I split the 2 phases into multiple workflows, or I need to run the workflow a second time.
Anyway, I’ve got my workaround and it seems nobody else is having this problem so I’ll let it go for now, as I have bigger fish to fry.
Hi, I faced a similar issue today. I am automating a desktop application installed on my machine. I have used the ‘use application/browser’ activity and indicated the application. When I run the automation, if the application is already opened, then the automation runs and properly interacts with the application. But when the application is not already opened, automation opens the application but does not interact with the application and then times out.
This issue seems to be a bug to me.
So, I found another workaround to the one mentioned here. I used a ‘Retry Scope’ activity and then used the ‘use application/browser’ activity inside the ‘Retry Scope’. Hope this can help someone facing the same issue