Unable to launch the application for Mac OS using the below Karate-robot fork option
- robot {fork: ‘/WindowsApps/ABCD.apk’}
Meanwhile same application path is working fine in windows with karate-robot-fork option.
Desktop application elements which is identified in Windows are not recognized in Mac OS.
For launching the application instead of using Karate Robot fork option I have used external Java class and call the function.
I am also able to launch the application in Mac by calling the external java class.
Expectation: need a help to launch the application in mac via Robot fork command.
For Object identification issue, I have used the external Java function to recognize the objects as below
def `appleScriptHelper `= Java.type('utils.AppleScriptHelper')
# Open the application
* appleScriptHelper.openApplication(appPath)
# Click the login button
* appleScriptHelper.clickLoginButton()
user26374107 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2