feat: added more logging info for $ (#7344)

This commit is contained in:
Anirudh Modi 2021-06-30 23:47:09 +05:30 committed by GitHub
parent e9246089d5
commit 8f2bfed659
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -681,6 +681,7 @@ export class Frame extends SdkObject {
}
async $(selector: string): Promise<dom.ElementHandle<Element> | null> {
debugLogger.log('api', ` finding element using the selector "${selector}"`);
return this._page.selectors._query(this, selector);
}