Skip to content

Error systematic on function close of a Tab #26

@claudeBoulayTub

Description

@claudeBoulayTub

when you initiate a Tab with new_tab=driver.open_link_in_new_tab(link) as a exemple and you want to close it later with new_tab.close()
you get that error :
AttributeError: 'Tab' object has no attribute 'is_closed'
botasaurus_driver\core\tab.py", line 1085, in close
if not self.is_closed:

because is_closed is not initiate at init() which is a problem in python
adding the line self.is_closed=None line 163 of tab.py resolve this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions