from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC


class BaseView(object):

    def __init__(self, driver):
        self.driver = driver
        self.wait = WebDriverWait(self.driver, 5)

    def wait_for(self, locator):
        return self.wait.until(EC.presence_of_element_located(locator))

    def find(self, locator):
        return self.driver.find_element(*locator)

    @classmethod
    def instance(cls, driver):
        android_cls = getattr(cls, '_ANDROID', cls)
        ios_cls = getattr(cls, '_IOS', cls)
        actual_cls = ios_cls if driver._platform == 'ios' else android_cls
        return actual_cls(driver)

c8d8bb47532277b2c944ec04d32999fdc2686205
<mask token>


class BaseView(object):

    def __init__(self, driver):
        self.driver = driver
        self.wait = WebDriverWait(self.driver, 5)

    def wait_for(self, locator):
        return self.wait.until(EC.presence_of_element_located(locator))
    <mask token>
    <mask token>

<mask token>


class BaseView(object):

    def __init__(self, driver):
        self.driver = driver
        self.wait = WebDriverWait(self.driver, 5)

    def wait_for(self, locator):
        return self.wait.until(EC.presence_of_element_located(locator))
    <mask token>

    @classmethod
    def instance(cls, driver):
        android_cls = getattr(cls, '_ANDROID', cls)
        ios_cls = getattr(cls, '_IOS', cls)
        actual_cls = ios_cls if driver._platform == 'ios' else android_cls
        return actual_cls(driver)

<mask token>


class BaseView(object):

    def __init__(self, driver):
        self.driver = driver
        self.wait = WebDriverWait(self.driver, 5)

    def wait_for(self, locator):
        return self.wait.until(EC.presence_of_element_located(locator))

    def find(self, locator):
        return self.driver.find_element(*locator)

    @classmethod
    def instance(cls, driver):
        android_cls = getattr(cls, '_ANDROID', cls)
        ios_cls = getattr(cls, '_IOS', cls)
        actual_cls = ios_cls if driver._platform == 'ios' else android_cls
        return actual_cls(driver)

from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC


class BaseView(object):

    def __init__(self, driver):
        self.driver = driver
        self.wait = WebDriverWait(self.driver, 5)

    def wait_for(self, locator):
        return self.wait.until(EC.presence_of_element_located(locator))

    def find(self, locator):
        return self.driver.find_element(*locator)

    @classmethod
    def instance(cls, driver):
        android_cls = getattr(cls, '_ANDROID', cls)
        ios_cls = getattr(cls, '_IOS', cls)
        actual_cls = ios_cls if driver._platform == 'ios' else android_cls
        return actual_cls(driver)
