1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:07:44 +00:00

WebDriver: Rename Session::get_window() to current_window_handle()

Pure getters should always match their member name. Also return a const
reference and let the caller make a copy if needed.
This commit is contained in:
Linus Groh 2022-10-18 22:17:21 +02:00
parent c6fbeb5845
commit f2435a6237

View file

@ -33,7 +33,7 @@ public:
HashMap<String, NonnullOwnPtr<Window>>& get_window_handles() { return m_windows; }
Optional<Window*> get_window_object() { return m_windows.get(m_current_window_handle); }
String get_window() { return m_current_window_handle; }
String const& current_window_handle() { return m_current_window_handle; }
ErrorOr<void> start();
ErrorOr<void> stop();