def logout(self): """ Clicks the 'logout' button. Returns :class:`LoginPage`. ..warning:: Since login isn't done anymore, this actually results in exiting the server. """ self('logout_button').click() from login import LoginPage return LoginPage.verify(self.browser, self.port)