mirror of
https://github.com/status-im/status-react.git
synced 2025-01-10 19:16:59 +00:00
e66b5c435b
Signed-off-by: Oskar Thoren <ot@oskarthoren.com>
29 lines
761 B
Python
29 lines
761 B
Python
from views.base_view import BaseView
|
|
import time
|
|
from views.base_element import *
|
|
|
|
|
|
class AllRecent(BaseButton):
|
|
|
|
def __init__(self, driver):
|
|
super(AllRecent, self).__init__(driver)
|
|
self.locator = self.Locator.xpath_selector("//*[@text='Recent statuses']/..//*[@text='ALL']")
|
|
|
|
|
|
class AllPopular(BaseButton):
|
|
|
|
def __init__(self, driver):
|
|
super(AllPopular, self).__init__(driver)
|
|
|
|
self.locator = self.Locator.xpath_selector("//*[@text='Popular #hashtags']/..//*[@text='ALL']")
|
|
|
|
|
|
class DiscoverView(BaseView):
|
|
|
|
def __init__(self, driver):
|
|
super(DiscoverView, self).__init__(driver)
|
|
|
|
self.driver = driver
|
|
self.all_popular = AllPopular(self.driver)
|
|
self.all_recent = AllRecent(self.driver)
|