question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WinAppDriver fails to create new session on Surface. Got 404 error.

See original GitHub issue

Hi,

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>

session

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
NickAbcommented, Jul 27, 2016

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 to http://localhost:5000/status and http://10.211.55.6:5000/status (IP option was set to *, port option was set to 5000).

1reaction
paulcam206commented, Jul 26, 2016

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found