Permalink
Browse files

Add Target.opener()

New in puppeteer 1.5.
  • Loading branch information...
zploskey committed Jun 8, 2018
1 parent deb635e commit a9490077c80a52aae023dc32e11cb03612e39d64
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/Target.re
@@ -22,8 +22,15 @@ let pageTypeFromJs = targetTypeFromJs;

[@bs.send] external browser : t => Types.browser = "";

/* TODO: browserContext() */

[@bs.send] external createCDPSession : t => Js.Promise.t(CDPSession.t) = "";

/** Target that opened this target. Top-level targets don't have an opener. */
[@bs.send]
[@bs.return nullable]
external opener : t => option(t) = "";

[@bs.send] external page : t => Js.Promise.t(Js.Nullable.t(Page.t)) = "";

[@bs.send] external typeString : t => string = "type";

0 comments on commit a949007

Please sign in to comment.