Ejemplo n.º 1
0
 def __init__(self, driver: WebDriver, timeout: int = 5):
     super().__init__(driver, _URL, timeout)
     self._title = BasePageElement(InventoryDetailsLoc.TITLE, wait=self._wait)
     self._description = BasePageElement(InventoryDetailsLoc.DESCRIPTION, wait=self._wait)
     self._price = BasePageElement(InventoryDetailsLoc.PRICE, wait=self._wait)
     self._inv_btn = BasePageElement(InventoryDetailsLoc.BTN, wait=self._wait)
     self._back_btn = BasePageElement(InventoryDetailsLoc.BACK_BTN, wait=self._wait)
     self.header = Header(self._wait)
Ejemplo n.º 2
0
 def __init__(self, driver: WebDriver, timeout: int = 5):
     super().__init__(driver, _URL, timeout)
     self.__search_textbox = BasePageElement(GoogleLocators.SEARCH_TEXT_BOX,
                                             wait=self._wait)
     self.__search_btn = BasePageElement(GoogleLocators.SEARCH_BTN,
                                         wait=self._wait)
     self.__feeling_lucky_btn = BasePageElement(
         GoogleLocators.FEELING_LUCKY_BTN, wait=self._wait)
 def __init__(self, wait: WebDriverWait, root: WebElement):
     self._wait = wait
     self._title = BasePageElement(CartItemLoc.TITLE, wait=wait, root=root)
     self._description = BasePageElement(CartItemLoc.DESCRIPTION,
                                         wait=wait,
                                         root=root)
     self._price = BasePageElement(CartItemLoc.PRICE, wait=wait, root=root)
     self._inv_btn = BasePageElement(CartItemLoc.BTN, wait=wait, root=root)
Ejemplo n.º 4
0
 def __init__(self, driver: WebDriver, timeout: int = 5):
     super().__init__(driver, _URL, timeout)
     self.__user = BasePageElement(LoginPageLoc.USER, wait=self._wait)
     self.__password = BasePageElement(LoginPageLoc.PASSWORD,
                                       wait=self._wait)
     self.__login = BasePageElement(LoginPageLoc.LOGIN, wait=self._wait)
     self.__error_msg = BasePageElement(LoginPageLoc.ERROR_MSG,
                                        wait=self._wait)
Ejemplo n.º 5
0
 def __init__(self, driver: WebDriver, timeout: int = 5):
     super().__init__(driver, _URL, timeout)
     self.header = Header(self._wait)
     self.products = CartItems(CartLoc.CART_ITEMS, self._wait)
     self.__title = BasePageElement(CartLoc.TITLE, self._wait)
     self.__ctn_shopping = BasePageElement(CartLoc.CTN_SHOPPING, self._wait)
     self.__remove_button = BasePageElement(CartLoc.REMOVE_BUTTON, self._wait)
     self.__checkout_btn = BasePageElement(CartLoc.CHECKOUT_BTN, self._wait)
Ejemplo n.º 6
0
 def __init__(self, wait: WebDriverWait):
     self._wait = wait
     self._subtotal = BasePageElement(CheckoutLoc.SUBTOTAL_LABEL, wait=wait)
     self._total = BasePageElement(CheckoutLoc.TOTAL_LABEL, wait=wait)
     self._cancel_btn = BasePageElement(CheckoutLoc.CANCEL_BTN, wait=wait)
     self._finish_btn = BasePageElement(CheckoutLoc.FINISH_BTN, wait=wait)
     self._success_msg = BasePageElement(CheckoutLoc.SUCCESS_MSG, wait=wait)
     self._title = BasePageElement(CheckoutLoc.TITLE_LABEL, wait=wait)
Ejemplo n.º 7
0
 def __init__(self, wait: WebDriverWait):
     self._wait = wait
     self._firstname = BasePageElement(ContactInfoLoc.FIRSTNAME, wait=wait)
     self._lastname = BasePageElement(ContactInfoLoc.LASTNAME, wait=wait)
     self._postal_code = BasePageElement(ContactInfoLoc.POSTAL_CODE,
                                         wait=wait)
     self._warning_msg = BasePageElement(ContactInfoLoc.WARNING_MSG,
                                         wait=wait)
     self._cancel_btn = BasePageElement(ContactInfoLoc.CANCEL_BTN,
                                        wait=wait)
     self._continue_btn = BasePageElement(ContactInfoLoc.CONTINUE_BTN,
                                          wait=wait)
Ejemplo n.º 8
0
 def __init__(self, wait: WebDriverWait):
     self._wait = wait
     self._link = BasePageElement(HeaderLoc.LINK, wait=wait)
     self._badge = BasePageElement(HeaderLoc.BADGE, wait=wait)
     self._burger_btn = BasePageElement(HeaderLoc.BURGER_BTN, wait=wait)