appium-webdriveragent 5.10.0 → 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,17 @@
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
+
8
+ ## [5.10.1](https://github.com/appium/WebDriverAgent/compare/v5.10.0...v5.10.1) (2023-10-05)
9
+
10
+
11
+ ### Miscellaneous Chores
12
+
13
+ * Remove the hardcoded keyboard wait delay from handleKeys ([#784](https://github.com/appium/WebDriverAgent/issues/784)) ([f043d67](https://github.com/appium/WebDriverAgent/commit/f043d67dd90fbfca00b8cf53ccae63dbd67fa150))
14
+
1
15
  ## [5.10.0](https://github.com/appium/WebDriverAgent/compare/v5.9.1...v5.10.0) (2023-09-25)
2
16
 
3
17
 
@@ -557,11 +557,6 @@
557
557
  {
558
558
  NSString *textToType = [request.arguments[@"value"] componentsJoinedByString:@""];
559
559
  NSUInteger frequency = [request.arguments[@"frequency"] unsignedIntegerValue] ?: [FBConfiguration maxTypingFrequency];
560
- if (![FBKeyboard waitUntilVisibleForApplication:request.session.activeApplication
561
- timeout:1
562
- error:nil]) {
563
- [FBLogger log:@"The on-screen keyboard seems to not exist. Continuing with typing anyway"];
564
- }
565
560
  NSError *error;
566
561
  if (![FBKeyboard typeText:textToType frequency:frequency error:&error]) {
567
562
  return FBResponseWithStatus([FBCommandStatus invalidElementStateErrorWithMessage:error.description
@@ -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.0",
3
+ "version": "5.11.0",
4
4
  "description": "Package bundling WebDriverAgent",
5
5
  "main": "./build/index.js",
6
6
  "scripts": {