Open Alek5andr opened 2 years ago
Please provide the full server log
Please provide the full server log
appium-server-logs.txt Here you go! If you know exactly what to look for, please share. I could not figure out useful info.
[debug] [35m[WinAppDriver][39m {"desiredCapabilities":{"platformName":"windows","ms:experimental-webdriver":true,"ms:waitForAppLaunch":21,"deviceName":"WindowsPC","appWorkingDir":"T:/Delphi/","app":"T:/Delphi/Lennuk-Shortcut.lnk"}}[info] [35m[WD Proxy][39m Got response with status 500: {"status":13,"value":{"error":"unknown error","message":"The specified executable is not a valid application for this OS platform."}} [debug] [35m[W3C][39m Matched W3C error code 'unknown error' to UnknownError [warn] [35m[WinAppDriver][39m Could not start WinAppDriver session error = 'An unknown server-side error occurred while processing the command. Original error: The specified executable is not a valid application for this OS platform.', attempt = '1' from 'undefined' [debug] [35m[WinAppDriver][39m HTTP/1.1 500 Internal Error
I'd say WAD does not support providing aliases as app
. It must be an executable or an UWP app name.
I'd say WAD does not support providing aliases as
app
. It must be an executable or an UWP app name.
Damn! In my situation shortcut is located on network drive, directing to last Delphi application version. It's impossible to predict, what version was released last (no info how dost shortcut compilates either).
Close the thread, if no more suggestions.
Isn't it possible to figure out what app path the alias is pointing to from the client code before creating the session? Something like https://stackoverflow.com/questions/39309779/how-to-get-full-target-string-from-shortcut-lnk
Isn't it possible to figure out what app path the alias is pointing to from the client code before creating the session?
As for a possible solution, I have implemented shortcut's target field's value grabber using command line tools:
import { execSync } from 'child_process';
execSync(`type ${filePath} | find "${searchValue}"`).toString();
where "type" - displays the contents of a text file, "find" - searches for a string of text in a file or files.
After grabbing I provide "app" property with a necessary app's version of exe-file.
Hi!
Test run fails with message:
when synergy of arguments "appWorkingDir" & "app" are used for launching application via its shortcut. For instance:
Launching the test with only property "app" is fine for shortcuts. However, the app uses a certificate, what it searches for in app's directory. That's why I need property "appWorkingDir" to work with shortcuts too (it's fine with app: '*.exe').
Immediate answer regarding *.exe: Path to direct .exe fail I cannot use, because its name changes constantly. The second reason is that specific flag = "appArguments" is specified in shortcut. There is no flag for the application to specify a path to the necessary certificate.
Any help/solution?