appium-webdriveragent 5.10.1 → 5.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [5.11.0](https://github.com/appium/WebDriverAgent/compare/v5.10.1...v5.11.0) (2023-10-05)
2
+
3
+
4
+ ### Features
5
+
6
+ * Add /calibrate endpoint ([#785](https://github.com/appium/WebDriverAgent/issues/785)) ([ae1603a](https://github.com/appium/WebDriverAgent/commit/ae1603a3b5b5c4828ed4959c63d6274254f832a2))
7
+
1
8
  ## [5.10.1](https://github.com/appium/WebDriverAgent/compare/v5.10.0...v5.10.1) (2023-10-05)
2
9
 
3
10
 
@@ -220,6 +220,16 @@ static NSString *const FBServerURLEndMarker = @"<-ServerURLHere";
220
220
  [response respondWithString:@"I-AM-ALIVE"];
221
221
  }];
222
222
 
223
+ NSString *calibrationPage = @"<html>"
224
+ "<title>{\"x\":null,\"y\":null}</title>"
225
+ "<header>"
226
+ "<script>document.addEventListener(\"click\",function(e){document.title=JSON.stringify({x:e.clientX,y:e.clientY})})</script>"
227
+ "</header>"
228
+ "</html>";
229
+ [self.server get:@"/calibrate" withBlock:^(RouteRequest *request, RouteResponse *response) {
230
+ [response respondWithString:calibrationPage];
231
+ }];
232
+
223
233
  [self.server get:@"/wda/shutdown" withBlock:^(RouteRequest *request, RouteResponse *response) {
224
234
  [response respondWithString:@"Shutting down"];
225
235
  [self.delegate webServerDidRequestShutdown:self];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "appium-webdriveragent",
3
- "version": "5.10.1",
3
+ "version": "5.11.0",
4
4
  "description": "Package bundling WebDriverAgent",
5
5
  "main": "./build/index.js",
6
6
  "scripts": {