How to close a window with no tab? #3794
Eduardo-Qinttus
started this conversation in
General
Replies: 1 comment 1 reply
-
These are the available CDP Mode methods for handling tabs: sb.cdp.switch_to_tab(tab)
sb.cdp.switch_to_newest_tab()
sb.cdp.close_active_tab()
sb.cdp.get_active_tab()
sb.cdp.get_tabs() With Note that you can only control tabs that appear in |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
window_ = window
while window_ == window:
sb.cdp.switch_to_newest_window()
window_ = sb.cdp.get_window()
sleep(2)
sb.cdp.switch_to_window(window_)
sleep(1)
sb.cdp.close_active_tab()
the window_ is a about:blank opened with java script.
the error:
tab
must be an int or a Tab type!Beta Was this translation helpful? Give feedback.
All reactions