Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to getContexts sometimes in hybrid environment #28

Open
charyj2000 opened this issue Jan 11, 2018 · 0 comments
Open

failed to getContexts sometimes in hybrid environment #28

charyj2000 opened this issue Jan 11, 2018 · 0 comments
Assignees

Comments

@charyj2000
Copy link

charyj2000 commented Jan 11, 2018

In hybrid environment(native is android with webview imbedded), when I want to get all contexts including both NATIVE and WEBVIEW, macaca hung there and there is no response within couple minutes.

I checked the source code and found that No_Such_Element is used still within getContexts(), getWindows() function as shown in following:

------ code snippet -----
getContexts = new ContextController() {
@OverRide
public NanoHTTPD.Response get(RouterNanoHTTPD.UriResource uriResource, Map<String, String> urlParams, NanoHTTPD.IHTTPSession session) {
String sessionId = urlParams.get("sessionId");
return NanoHTTPD.newFixedLengthResponse(getStatus(), getMimeType(), new Response(## Status.NoSuchElement, sessionId).toString());
}
};

//TODO
getWindows = new WindowController() {
@OverRide
public NanoHTTPD.Response get(RouterNanoHTTPD.UriResource uriResource, Map<String, String> urlParams, NanoHTTPD.IHTTPSession session) {
String sessionId = urlParams.get("sessionId");
return NanoHTTPD.newFixedLengthResponse(getStatus(), getMimeType(), new Response(## Status.NoSuchElement, sessionId).toString());
}
};


I don't know why. Would you please see if this part is already implemented too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants