ошибки.
                  
                  
                  Вот такая функция, 
                  
                  
                      def no_card_input_phone_number_continue(self):
                  
                  
                          input_continue = self.browser.find_element(*OrderLocatorsLoyalty.input_phone_number_apply)
                  
                  
                          input_continue.click()
                  
                  
                          time.sleep(2)
                  
                  
                          if self.browser.find_element(*OrderLocatorsLoyalty.input_phone_number_apply):
                  
                  
                              input_continue.click()
                  
                  
                              time.sleep(2)
                  
                  
                          else:
                  
                  
                              time.sleep(1)
                  
                  
                          assert self.browser.find_element(*OrderLocatorsLoyalty.code_input_no_card), "Не появилось поле ввода кода из смс"
                  
                  
                  Вызывается в тесте, не находит элемент "*OrderLocatorsLoyalty.code_input_no_card", но вместо текста из assert выдаёт 
                  
                  
                  FAILED test_order_page.py::TestLoyaltyCard::test_guest_guest_adds_physical_card - selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: .t-card-code-check-input
                  
                  
                  Что делаю не так?
                  
                  
                
Unable to locate element: .t-card-code-check-input This. 99% обосрамс с CSS.
Обсуждают сегодня