from abc import ABC
from lib.element import Element
from lib.selenium_utils import SeleniumUtils


class PageModel(ABC, SeleniumUtils):

    def __init__(self, driver, url):
        self.driver = driver
        self.url = url
        self.__set_elements_driver()

    def open(self):
        self.driver.get(self.url)

    def __set_elements_driver(self):
        for attr in dir(self):
            real_attr = getattr(self, attr)
            if isinstance(real_attr, Element):
                real_attr.driver = self.driver

9670443b536cc1915ba50d332c55df8dc9644bd6
<mask token>


class PageModel(ABC, SeleniumUtils):
    <mask token>

    def open(self):
        self.driver.get(self.url)
    <mask token>

<mask token>


class PageModel(ABC, SeleniumUtils):

    def __init__(self, driver, url):
        self.driver = driver
        self.url = url
        self.__set_elements_driver()

    def open(self):
        self.driver.get(self.url)
    <mask token>

<mask token>


class PageModel(ABC, SeleniumUtils):

    def __init__(self, driver, url):
        self.driver = driver
        self.url = url
        self.__set_elements_driver()

    def open(self):
        self.driver.get(self.url)

    def __set_elements_driver(self):
        for attr in dir(self):
            real_attr = getattr(self, attr)
            if isinstance(real_attr, Element):
                real_attr.driver = self.driver

from abc import ABC
from lib.element import Element
from lib.selenium_utils import SeleniumUtils


class PageModel(ABC, SeleniumUtils):

    def __init__(self, driver, url):
        self.driver = driver
        self.url = url
        self.__set_elements_driver()

    def open(self):
        self.driver.get(self.url)

    def __set_elements_driver(self):
        for attr in dir(self):
            real_attr = getattr(self, attr)
            if isinstance(real_attr, Element):
                real_attr.driver = self.driver
