playwright-core
Advanced tools
Comparing version 0.11.1-next.1583548749959 to 0.11.1-next.1583598839207
@@ -109,2 +109,3 @@ /** | ||
}>; | ||
inputActionEpilogue(): Promise<void>; | ||
pdf(options?: types.PDFOptions): Promise<platform.BufferType>; | ||
@@ -111,0 +112,0 @@ coverage(): CRCoverage; |
@@ -485,2 +485,5 @@ "use strict"; | ||
} | ||
async inputActionEpilogue() { | ||
await this._client.send('Page.enable').catch(e => { }); | ||
} | ||
async pdf(options) { | ||
@@ -487,0 +490,0 @@ return this._pdf.generate(options); |
@@ -228,3 +228,3 @@ "use strict"; | ||
await this._page.keyboard._ensureModifiers(restoreModifiers); | ||
}, options); | ||
}, options, true); | ||
} | ||
@@ -274,3 +274,3 @@ hover(options) { | ||
await this._page.keyboard.press('Delete'); | ||
}, options); | ||
}, options, true); | ||
} | ||
@@ -322,3 +322,3 @@ async setInputFiles(files) { | ||
await this._page.keyboard.type(text, options); | ||
}, options); | ||
}, options, true); | ||
} | ||
@@ -329,3 +329,3 @@ async press(key, options) { | ||
await this._page.keyboard.press(key, options); | ||
}, options); | ||
}, options, true); | ||
} | ||
@@ -332,0 +332,0 @@ async check(options) { |
@@ -98,3 +98,4 @@ /** | ||
}>; | ||
inputActionEpilogue(): Promise<void>; | ||
getFrameElement(frame: frames.Frame): Promise<dom.ElementHandle>; | ||
} |
@@ -368,2 +368,4 @@ "use strict"; | ||
} | ||
async inputActionEpilogue() { | ||
} | ||
async getFrameElement(frame) { | ||
@@ -370,0 +372,0 @@ const parent = frame.parentFrame(); |
@@ -44,3 +44,3 @@ /** | ||
frameAttached(frameId: string, parentFrameId: string | null | undefined): Frame; | ||
waitForNavigationsCreatedBy<T>(action: () => Promise<T>, options?: types.NavigatingActionWaitOptions): Promise<T>; | ||
waitForNavigationsCreatedBy<T>(action: () => Promise<T>, options?: types.NavigatingActionWaitOptions, input?: boolean): Promise<T>; | ||
frameWillPotentiallyRequestNavigation(): void; | ||
@@ -47,0 +47,0 @@ frameDidPotentiallyRequestNavigation(): void; |
@@ -73,3 +73,3 @@ "use strict"; | ||
} | ||
async waitForNavigationsCreatedBy(action, options) { | ||
async waitForNavigationsCreatedBy(action, options, input) { | ||
if (options && options.waitUntil === 'nowait') | ||
@@ -81,2 +81,4 @@ return action(); | ||
const result = await action(); | ||
if (input) | ||
await this._page._delegate.inputActionEpilogue(); | ||
await barrier.waitFor(); | ||
@@ -83,0 +85,0 @@ // Resolve in the next task, after all waitForNavigations. |
@@ -73,2 +73,3 @@ /** | ||
coverage?: () => any; | ||
inputActionEpilogue(): Promise<void>; | ||
} | ||
@@ -75,0 +76,0 @@ declare type PageState = { |
@@ -125,2 +125,3 @@ /** | ||
}>; | ||
inputActionEpilogue(): Promise<void>; | ||
getFrameElement(frame: frames.Frame): Promise<dom.ElementHandle>; | ||
@@ -127,0 +128,0 @@ _onRequestWillBeSent(session: WKSession, event: Protocol.Network.requestWillBeSentPayload): void; |
@@ -613,2 +613,4 @@ "use strict"; | ||
} | ||
async inputActionEpilogue() { | ||
} | ||
async getFrameElement(frame) { | ||
@@ -615,0 +617,0 @@ const parent = frame.parentFrame(); |
{ | ||
"name": "playwright-core", | ||
"version": "0.11.1-next.1583548749959", | ||
"version": "0.11.1-next.1583598839207", | ||
"description": "A high-level API to automate web browsers", | ||
@@ -5,0 +5,0 @@ "repository": "github:Microsoft/playwright", |
Sorry, the diff of this file is too big to display
2441982
57294