mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-18 08:41:49 +03:00
21 lines
615 B
JavaScript
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;
|