How to active page (tab) in a form view that is visible in view_attributes()

In a view_attributes() method, visible a tab in a form view.

    @classmethod
    def view_attributes(cls):
        states = {'invisible': ~Bool(Eval('has_sales'))}
        return super().view_attributes() + [
            ('/form//page[@id="other-sales"]', 'states', states),
            ]
        return super().view_attributes()

How to active this tab (page) when is visible?

The user has to click on the tab, there is no posibility to activate the tab from code.