Permalink
Browse files

Move hover function to FrameBase

Frames also have the hover function which is inherited by pages.
  • Loading branch information...
zploskey committed Jun 8, 2018
1 parent 6705ec9 commit 01b5f510bcdd54ce04fbb6809e2710836e125a57
Showing with 8 additions and 8 deletions.
  1. +8 −0 src/FrameBase.re
  2. +0 −8 src/Page.re
@@ -390,3 +390,11 @@ external evaluateHandlePromise4 :
[@bs.send.pipe: t]
external evaluateStringHandle : string => Js.Promise.t(JSHandle.t) =
"evaluateHandle";

/**
* Fetches the first element matching `selector`, scrolls it into view if not
* already visible, then hovers over the center of the element using
* [Page.mouse]. Throws an error if no element matches `selector`.
*/
[@bs.send.pipe: t]
external hover : (~selector: string) => Js.Promise.t(unit) = "";
@@ -195,14 +195,6 @@ external goto :
Js.Promise.t(Js.null(Response.t)) =
"";

/**
* Fetches the first element matching `selector`, scrolls it into view if not
* already visible, then hovers over the center of the element using
* [Page.mouse]. Throws an error if no element matches `selector`.
*/
[@bs.send.pipe: t]
external hover : (~selector: string) => Js.Promise.t(unit) = "";

[@bs.send] external isClosed : t => bool = "";

/** The page's virtual keyboard. */

0 comments on commit 01b5f51

Please sign in to comment.