def go_to_category(): """ go to category :return: """ if Element("BottomNavigation", "BottomNavigation").is_exist(): if Element("BottomNavigation", "CATEGORY").is_exist(): bar_me = Element("BottomNavigation", "CATEGORY").gets(1) bar_me.click()
def go_to_me(): """ go to consumer center :return: """ if Element("BottomNavigation", "BottomNavigation").is_exist(): if Element("BottomNavigation", "ME").is_exist(): bar_me = Element("BottomNavigation", "ME").gets(4) bar_me.click()