Open tmshft opened 4 years ago
I'm wondering if it's the problem of Java webdriver. You may be able to help narrow down the problem:
//*
. here is my output of C# client in WinAppDriver console
{"using":"xpath","value":"//*"}
and it's "value": "\u002f\u002f*"
in your output.Per the XPath spec, //* would select every element in the session. I have a hard time conceiving of a situation where this is what you want. If your screen is complex, you might be timing out. The screen for WinAppDriver should inform you if this is the case. Pay attention to the timeout settings when you create the session. Default is 60 seconds.
@NathanZook , @licanhua Sorry it was bad example. No matter xPath is,(If I tried to using another xPath such as "//Window[@Name=\"{my_app window_name\"]") , then WinAppDriver hangs and no response. And I've tried Windows Calculator sample, and it worked fine.
It's hard to tell if it's the app or winappdriver problem. winappdriver connected to app by accessibility interface, so it makes WinAppDriver has no response if app itself has no response.
inspect
the application when problem happens.
Now , I am trying to operate Windows .Net form Application by WinAppDriver.
I can create session with remote connection, and I can get some properties such as winHandle,winTitle.
but when I try to findElementByXPath, the session hangs and no response. I had to shutdown session on cmd console to restart.
I want to know why it hangs, but it may be difficult to solve because the information I've showed is less.
So I wish that WinAppDriver will output some exeption or error log on such case.
Environment
master pc
remote pc