org.openqa.selenium.WebDriverException: It is impossible to create a new session because 'createSession' which takes HttpClient, InputStream and long was not found or it is not accessible
Build info: version: '3.14.0', revision: 'aacccce0', time: '2018-08-02T20:19:58.91Z'
System info: host: 'NOLAPF2FFLWS598', ip: '172.22.56.49', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_181'
Driver info: driver.version: WindowsDriver
at io.appium.java_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:195)
at io.appium.java_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:209)
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:231)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:548)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
at io.appium.java_client.windows.WindowsDriver.execute(WindowsDriver.java:1)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:212)
at org.openqa.selenium.remote.RemoteWebDriver.
Originally posted by @vnair1986 in https://github.com/Microsoft/WinAppDriver/issues/418#issuecomment-444499486
{"status":13,"value":{"error":"unknown error","message":"Element not found. (Exception from HRESULT: 0x80070490)"}} [debug] [35m[W3C][39m Matched W3C error code 'unknown error' to UnknownError [debug] [35m[WinAppDriver][39m Deleting WinAppDriver session
Caused by: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Element not found. (Exception from HRESULT: 0x80070490)
Build info: version: '3.14.0', revision: 'aacccce0', time: '2018-08-02T20:19:58.91Z'
System info: host: 'NOLAPF2FFLWS598', ip: '172.22.56.49', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_181'
Driver info: driver.version: WindowsDriver
remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: Element not found. (Exception from HRESULT: 0x80070490)
at errorFromW3CJsonCode (C:\Users\vipin.nair\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\protocol\errors.js:802:25)
at ProxyRequestError.getActualError (C:\Users\vipin.nair\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\protocol\errors.js:685:14)
at JWProxy.command$ (C:\Users\vipin.nair\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\jsonwp-proxy\proxy.js:236:19)
at tryCatch (C:\Users\vipin.nair\AppData\Roaming\npm\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (C:\Users\vipin.nair\AppData\Roaming\npm\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (C:\Users\vipin.nair\AppData\Roaming\npm\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (C:\Users\vipin.nair\AppData\Roaming\npm\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:136:37)
at
Hi @vnair1986,
Can you launch the WinAppDriver.exe console window directly and paste the log that is generated there?
Also if you could share your test code, that would also help looking into this.
Thanks!
Any Updates on this
@vnair1986 An alternate solution would be to evoke the application separately using Process Class and creating the Desktop Session and finding the Parent window of the application.
@vnair1986 An alternate solution would be to evoke the application separately using Process Class and creating the Desktop Session and finding the Parent window of the application.
Can you please provide me little more details or sample how to do it.
@hassanuz any update on this ?
@vnair1986 I hope this helps.
https://simplifyautomation.blogspot.com/2019/01/simple-winappdriver-code-for-creating.html
@vnair1986 I hope this helps.
https://simplifyautomation.blogspot.com/2019/01/simple-winappdriver-code-for-creating.html
@dhapolapankaj its didn't work for me. as my application is not launched through Appium.
@hassanuz you can close this issue as I am able to Launch the application by providing application ID after the package.
Hi, nice to see this blog.. I am testing widows application on desktop using winapp driver, my application will have links to click on folder and chromebrowser. i can be able to click on those links and then pop up with folder and chrome browser. but i cant move my session control to those windows, do yo have any idea how move the session control from desktop application to chrome browser??
please give me your answer, or if you give me your number i can call you..