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

add a route of element screenshot for converted request as MJSONWP #370

Merged

Conversation

KazuCocoa
Copy link
Member

appium/appium#11988
A converted in base driver converts getting element screenshot from W3C to MJSONWP. The converted request sends to Espresso server.

The converted checked if it converts a request with response status. I think adding this URL is reasonable to change the converter's logic for v1.11.0 release.

cc @dpgraham
Can you take a look and include this into 1.11.0 if this way is approval?
This will fix failing taking element screenshot in Appium 1.9.?, 1.10.0 and comming 1.11.0

@@ -224,6 +224,9 @@
routeMap.addRoute(new RouteDefinition(Method.POST, "/session/:sessionId/appium/execute_mobile/backdoor", new MobileBackdoor(), MobileBackdoorParams.class));
routeMap.addRoute(new RouteDefinition(Method.POST, "/session/:sessionId/appium/execute_mobile/:elementId/flash", new MobileViewFlash(), ViewFlashParams.class));

// Compatibility for https://github.com/appium/appium-base-driver/blob/master/lib/jsonwp-proxy/protocol-converter.js
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually, this route is the correct one for the JSONWP protocol. Having a comment the W3C one is an alias to this one would be enough: https://github.com/appium/appium-uiautomator2-server/blob/20de6220d4d9b888892b8e148a1e16b6aa8b874d/app/src/main/java/io/appium/uiautomator2/server/AppiumServlet.java#L157

@mykola-mokhnach mykola-mokhnach merged commit 8bb1cac into appium:master Jan 13, 2019
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

Successfully merging this pull request may close these issues.

None yet

2 participants