playwright/browser_patches/firefox/juggler/protocol/AccessibilityHandler.js
Andrey Lushnikov a3f34fb4b7
chore: export juggler as a standalone folder for browser build (#2432)
This leaves our firefox diff to gecko instrumentation changes only.

Drive-by: rename webkit "src" folder into "embedder".
2020-06-02 16:51:13 -07:00

21 lines
615 B
JavaScript

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
class AccessibilityHandler {
constructor(session, contentChannel) {
this._contentPage = contentChannel.connect(session.sessionId() + 'page');
}
async getFullAXTree(params) {
return await this._contentPage.send('getFullAXTree', params);
}
dispose() {
this._contentPage.dispose();
}
}
var EXPORTED_SYMBOLS = ['AccessibilityHandler'];
this.AccessibilityHandler = AccessibilityHandler;