1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:17:35 +00:00

WebDriver: Rename Session::{get_window_object => current_window}()

- It's not a "window object" (in the JS sense), it's a simple struct
  storing a handle and is_open property
- We usually omit 'get' for getters
- The new name makes it more clear that this is looked up using the
  m_current_window_handle as a key
This commit is contained in:
Linus Groh 2022-10-19 19:47:47 +02:00
parent 7812b3c130
commit 7cb9b85c25
2 changed files with 19 additions and 20 deletions

View file

@ -33,7 +33,7 @@ public:
i32 id;
};
Optional<Window*> get_window_object() { return m_windows.get(m_current_window_handle); }
Optional<Window*> current_window() { return m_windows.get(m_current_window_handle); }
String const& current_window_handle() { return m_current_window_handle; }
ErrorOr<void> start();