diff options
Diffstat (limited to 'components/script_traits')
-rw-r--r-- | components/script_traits/lib.rs | 2 | ||||
-rw-r--r-- | components/script_traits/webdriver_msg.rs | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs index f0aa1516ca2..1aa37e56533 100644 --- a/components/script_traits/lib.rs +++ b/components/script_traits/lib.rs @@ -797,6 +797,8 @@ pub enum WebDriverCommandMsg { KeyboardAction(BrowsingContextId, KeyboardEvent), /// Act as if the mouse was clicked in the browsing context with the given ID. MouseButtonAction(MouseEventType, MouseButton, f32, f32), + /// Act as if the mouse was moved in the browsing context with the given ID. + MouseMoveAction(f32, f32), /// Set the window size. SetWindowSize( TopLevelBrowsingContextId, diff --git a/components/script_traits/webdriver_msg.rs b/components/script_traits/webdriver_msg.rs index 23fa60efddb..8a691d75eb5 100644 --- a/components/script_traits/webdriver_msg.rs +++ b/components/script_traits/webdriver_msg.rs @@ -75,6 +75,7 @@ pub enum WebDriverScriptCommand { GetElementRect(String, IpcSender<Result<Rect<f64>, ErrorStatus>>), GetElementTagName(String, IpcSender<Result<String, ErrorStatus>>), GetElementText(String, IpcSender<Result<String, ErrorStatus>>), + GetElementInViewCenterPoint(String, IpcSender<Result<Option<(i64, i64)>, ErrorStatus>>), GetBoundingClientRect(String, IpcSender<Result<Rect<f32>, ErrorStatus>>), GetBrowsingContextId( WebDriverFrameId, |