Permalink
Browse files

Frames can also focus

Move focus() to FrameBase from Page.
  • Loading branch information...
zploskey committed Jun 8, 2018
1 parent 3b109ac commit 5d728a45831edfb4eab9e76289b686401d27cdfe
Showing with 3 additions and 3 deletions.
  1. +3 −0 src/FrameBase.re
  2. +0 −3 src/Page.re
@@ -398,6 +398,9 @@ external click :

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

[@bs.send.pipe: t]
external focus : (~selector: string) => Js.Promise.t(unit) = "";

/**
* Fetches the first element matching `selector`, scrolls it into view if not
* already visible, then hovers over the center of the element using
@@ -163,9 +163,6 @@ external evaluateOnNewDocument : (unit => unit) => Js.Promise.t(unit) = "";

/* TODO: exposeFunction */

[@bs.send.pipe: t]
external focus : (~selector: string) => Js.Promise.t(unit) = "";

/** Array of all frames attached to the page. */
[@bs.send]
external frames : t => array(Frame.t) = "";

0 comments on commit 5d728a4

Please sign in to comment.