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:
parent
c6fbeb5845
commit
f2435a6237
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue