Permalink
Browse files

Move Page.select() to FrameBase

Frames can select too!
  • Loading branch information...
zploskey committed Jun 8, 2018
1 parent 4990439 commit 6852beb41ee6ce0d2a14688904972958a15ceb20
Showing with 10 additions and 10 deletions.
  1. +10 −0 src/FrameBase.re
  2. +0 −10 src/Page.re
@@ -408,3 +408,13 @@ external focus : (~selector: string) => Js.Promise.t(unit) = "";
*/
[@bs.send.pipe: t]
external hover : (~selector: string) => Js.Promise.t(unit) = "";

/**
* Selects options in a `<select>` tag. Triggers a `change` and `input` event
* once all the provided options have been selected. If there's no `<select>`
* element matching selector it throws an error.
*/
[@bs.send.pipe: t]
external select :
(~selector: string, ~values: array(string)) => Js.Promise.t(array(string)) =
"";
@@ -268,16 +268,6 @@ external reload :
(~options: Navigation.options=?, unit) => Js.Promise.t(Response.t) =
"";

/**
* Selects options in a `<select>` tag. Triggers a `change` and `input` event
* once all the provided options have been selected. If there's no `<select>`
* element matching selector it throws an error.
*/
[@bs.send.pipe: t]
external select :
(~selector: string, ~values: array(string)) => Js.Promise.t(array(string)) =
"";

/**
* Toggles ignoring cache for each request based on the enabled state.
* Caching is enabled by default.

0 comments on commit 6852beb

Please sign in to comment.