Open radhakrishnanakireddy opened 3 years ago
Can you try C:\Windows\System32\notepad.exe and C:\Windows\notepad.exe? If you are using 1.2RC or 1.2.x WinAppDriver, you may change the timer like this appCapabilities.SetCapability("ms:waitForAppLaunch", "25");
. Here 25 is seconds.
For the calculator, you should be able to use Microsoft.WindowsCalculator_8wekyb3d8bbwe!App
.
@licanhua thanks a lot for your reply, I tried using "ms:waitForAppLaunch", but still getting the same issue for calculator if we use "C:\\windows\\system32\\calc.exe"
path, but its working fine for C:\Windows\notepad.exe
.
could you please explain me that what could be reason and it would be useful for all users 👍
I can reproduce your problem and I think it's a bug of WinAppDriver. I'm not the developer of WinAppDriver, so need @kat-y to confirm it.
If you use procmon, you will find that you launched calc.exe, but the actual application is calculator.exe.(A process launched another process and then killed itself).
There are two possible issues in WinAppDriver:
I can think of the only workaround for you is(I didn't do the testing):
appCapabilities.SetCapability("app", "Root");
appCapabilities.SetCapability("appTopLevelWindow", "Calculator");
then continue the testing just like before.
Hi, I am using Ruby, selenium-webdriver and winapp driver to automate calculator to try it, but I am facing the issue when I launch calculator app with below code
Every time I am getting below error from WinAppdriver
status":13,"value":{"error":"unknown error","message":"Failed to locate opened application window with appId: C:\\Windows\\System32\\calc.exe, and processId: 14656"
Is there anyway to solve this isse in Ruby with selenium-webdriver or any suggestion for itNote: Above code is working fine when we use ApplicationID as 'Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge' etc, but it is not working If we have any custom apps like PostMan, or Notepad++
Anyone could you please help with this issue and it would be great helpful for RUBY guys
I had referred old questions also, but it did not help me to solve this issue
Thank a lot!