-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Description
def close_window(handle)
raise ArgumentError, 'Not allowed to close the primary window' if handle == window_handles.first
within_given_window(handle) do
browser.close
end
end
I propose we remove this guard. Because there seems to be plenty of legitimate reasons why you may want to close the "first" window. Especially if it's not the active one. A test may cycle through three different windows and you only want the last window
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels