Merge pull request #22196 from DanStach/patch-1

Puppeteer - fix return type for page.select to match documentation
This commit is contained in:
Arthur Ozga
2017-12-19 15:50:10 -08:00
committed by GitHub

View File

@@ -968,7 +968,7 @@ export interface Page extends EventEmitter, FrameBase {
* @param values Values of options to select. If the `<select>` has the `multiple` attribute,
* all values are considered, otherwise only the first one is taken into account.
*/
select(selector: string, ...values: string[]): Promise<void>;
select(selector: string, ...values: string[]): Promise<string[]>;
/**
* Sets the page content.