I need to check that an opened tab is empty and switch to another one.
I tried the get_current_url()
method, but it does not work.
def check_is_tab_empty(self, link):
self.click(link)
self.focus_active_tab()
tab = self.get_current_url()
This line tab = self.get_current_url()
- does not work if a tab is empty, like about:blank
.