Permalink
Browse files

Add Page.browser() and Target.browser()

  • Loading branch information...
zploskey committed May 16, 2018
1 parent 936da1b commit 28a58c0fde4f46d1791364d28fc4edb3d249b8d3
Showing with 7 additions and 1 deletion.
  1. +1 −1 src/Browser.re
  2. +2 −0 src/Page.re
  3. +2 −0 src/Target.re
  4. +2 −0 src/Types.re
@@ -1,4 +1,4 @@
type t;
type t = Types.browser;

external empty : unit => t = "%identity";

@@ -145,6 +145,8 @@ external authenticate : Js.Null.t(authOptions) => Js.Promise.t(unit) = "";
[@bs.send]
external bringToFront : t => Js.Promise.t(unit) = "";

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

[@bs.send.pipe: t]
external click :
(string, ~options: Click.clickOptions=?, unit) => Js.Promise.t(unit) =
@@ -5,6 +5,8 @@ external empty : unit => t = "%identity";
[@bs.deriving jsConverter]
type pageType = [ | `page | `service_worker | `browser | `other];

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

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

[@bs.send] external page : t => Js.Promise.t(Js.Nullable.t(Page.t)) = "";
@@ -1,3 +1,5 @@
type browser;

type elementHandle;

type executionContext;

0 comments on commit 28a58c0

Please sign in to comment.