@@ -2,10 +2,11 @@ module Playwright.Options where
22
33import Playwright.Data
44
5−import Foreign.Object (Object)
5+import Data.String.Regex (Regex)
66import Foreign (Foreign)
7−import Untagged.Union (UndefinedOr, type (|+|))
7+import Foreign.Object (Object)
88import Literals.Null (Null)
9+import Untagged.Union (UndefinedOr, type (|+|))
910
1011type Opt a = UndefinedOr a
1112
@@ -93,3 +94,29 @@ type ClickOptions =
9394 , noWaitAfter :: Opt Boolean
9495 , timeout :: Opt Int
9596 }
97+
98+type MouseClickOptions =
99+ { button :: Opt MouseButton
100+ , clickCount :: Opt Int
101+ , delay :: Opt Int
102+ }
103+
104+type MouseDblClickOptions =
105+ { button :: Opt MouseButton
106+ , delay :: Opt Int
107+ }
108+
109+type MouseUpDownOptions =
110+ { button :: Opt MouseButton
111+ , clickCount :: Opt Int
112+ }
113+
114+type MouseMoveOptions =
115+ { steps :: Opt Int
116+ }
117+
118+type WaitForNavigationOptions =
119+ { timeout :: Opt Int
120+ , url :: Opt (String |+| Regex |+| URL -> Boolean)
121+ , waitUntil :: Opt WaitUntil
122+ }