WinAppDriver fails to create new session on Surface. Got 404 error.
See original GitHub issueHi,
I have installed WinAppDriver on a brand-new Surface.
If I run the driver with localhost and run a remote selenium client then /session fails on 404 error. If I run the driver with ip address and run a remote selenium client then /session succeed.
Looks like driver checks IP Address from client request to what was passed to driver from command line. It is very strange behavior.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Not Found</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY>**<h2>Not Found</h2>
<hr><p>HTTP Error 404. The requested resource is not found.</p>**
</BODY></HTML>
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (2 by maintainers)
Top Results From Across the Web
The URL '/session' did not map to a valid resource
NOTE: You should start either appium server or winappdriver.exe. ... fix: The URL '/session' did not map to a valid resource capabilities: ...
Read more >UI testing for Windows apps with WinAppDriver and Appium
In this post we're going to learn the basics of adding UI tests to a WPF application, by leveraging WinAppDriver and Appium.
Read more >WebDriver
A new session could not be created. stale element reference, 404, stale element reference, A command failed because the referenced element is no ......
Read more >WinAppDriver:It is impossible to create a new session ...
WinAppDriver :It is impossible to create a new session because 'createSession' which takes HttpClient, InputStream and long was not found or it ...
Read more >Common WinAppDriver Errors - Plains Wheeler
Unable to Create New Remote Session ... This is similar to the last issue. Although in this case WinAppDriver is being asked to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The fact that it requires admin privileges to bind to non localhost suggests that driver might be using http.sys. It seems that it is possible to specify IP address as
*
. In that case driver will listen both on localhost and external ip address of you host machine. I’ve tried it locally and from the same machine I was able to get response both tohttp://localhost:5000/status
andhttp://10.211.55.6:5000/status
(IP option was set to*
, port option was set to5000
).By default we don’t want to bind to external-facing network interfaces for security reasons. It’s by design that we’re not remotely accessible.