class MyServicesView(MyServiceForm): title = Text(locator='//li[@class="active"]') paginator = SSUIPaginationPane() def in_myservices(self): return (self.logged_in_as_current_user and self.navigation.currently_selected == ["", "My Services"]) @property def is_displayed(self): return self.in_myservices and self.title.text == "My Services"
class MyServicesView(SSUIBaseLoggedInPage): title = Text(locator='//li[@class="active"]') service = SSUIlist() notification = Notification() paginator = SSUIPaginationPane() @property def in_myservices(self): return (self.logged_in_as_current_user and self.navigation.currently_selected == ["", "My Services"]) @property def is_displayed(self): return self.in_myservices and self.title.text == "My Services"
class MyServicesView(MyServiceForm): title = Text(locator='//li[@class="active"]') results = Text( locator='//div[contains(@class, "toolbar-pf-results")]/div/h5') paginator = SSUIPaginationPane() @property def in_myservices(self): return (self.logged_in_as_current_user and self.navigation.currently_selected == ["", "My Services"]) @property def is_displayed(self): if self.browser.product_version >= '5.8': return self.in_myservices and self.title.text == "My Services" else: return self.in_myservices