Skip to content

Keyword for Close Safari Browser Tabs #446

@luprochazka-cen63872

Description

@luprochazka-cen63872

For our tests, we need to close browser tabs in Safari. Since we couldn't achieve this using Appium Library keywords, we created a custom keyword.

@keyword
def close_window(self):
    """
    Closes the currently open browser tab. 
    """
    self.driver = self.get_current_driver().close()

If you approve this change, I can prepare a pull request for it.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions