Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions WebDriverAgentLib/Routing/FBWebServer.m
Original file line number Diff line number Diff line change
Expand Up @@ -269,13 +269,17 @@ - (void)registerServerKeyRouteHandlers
[response respondWithString:@"<!DOCTYPE html><html><title>Health Check</title><body><p>I-AM-ALIVE</p></body></html>"];
}];

// Deprecated: no longer needed since appium-xcuitest-driver handles calibration
// itself (https://github.com/appium/appium-xcuitest-driver/pull/2948). Kept for
// backward compatibility; will be removed in a future major release.
NSString *calibrationPage = @"<html>"
"<title>{\"x\":null,\"y\":null}</title>"
"<header>"
"<script>document.addEventListener(\"click\",function(e){document.title=JSON.stringify({x:e.clientX,y:e.clientY})})</script>"
"</header>"
"</html>";
[self.server get:@"/calibrate" withBlock:^(RouteRequest *request, RouteResponse *response) {
[FBLogger logFmt:@"The /calibrate endpoint is deprecated and will be removed in a future release"];
[response respondWithString:calibrationPage];
}];

Expand Down
Loading