Navigation Menu

Skip to content

Commit

Permalink
Move hover function to FrameBase
Browse files Browse the repository at this point in the history
Frames also have the hover function which is inherited by pages.
  • Loading branch information
zploskey committed Jun 8, 2018
1 parent 6705ec9 commit 01b5f51
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 8 additions & 0 deletions src/FrameBase.re
Expand Up @@ -390,3 +390,11 @@ external evaluateHandlePromise4 :
[@bs.send.pipe: t] [@bs.send.pipe: t]
external evaluateStringHandle : string => Js.Promise.t(JSHandle.t) = external evaluateStringHandle : string => Js.Promise.t(JSHandle.t) =
"evaluateHandle"; "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) = "";
8 changes: 0 additions & 8 deletions src/Page.re
Expand Up @@ -195,14 +195,6 @@ external goto :
Js.Promise.t(Js.null(Response.t)) = 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 = ""; [@bs.send] external isClosed : t => bool = "";


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

0 comments on commit 01b5f51

Please sign in to comment.