Return the active tab. The active tab is the one currenly controlled by CDP. The active tab MIGHT NOT be the currently visible tab! (If a page opens a new tab, the new tab WON'T be active) To switch the active tab, call: sb.switch_to_tab(tab)
(self)
| 1401 | return self.loop.run_until_complete(self.page.close()) |
| 1402 | |
| 1403 | def get_active_tab(self): |
| 1404 | """Return the active tab. |
| 1405 | The active tab is the one currenly controlled by CDP. |
| 1406 | The active tab MIGHT NOT be the currently visible tab! |
| 1407 | (If a page opens a new tab, the new tab WON'T be active) |
| 1408 | To switch the active tab, call: sb.switch_to_tab(tab)""" |
| 1409 | return self.page |
| 1410 | |
| 1411 | def get_tabs(self): |
| 1412 | driver = self.driver |
no outgoing calls
no test coverage detected