Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pages/contributors_page.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""Methods for verifying web elements on the 'Contributors' page"""
import time

import allure
import requests
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.wait import WebDriverWait as Wait
from pages.base_page import BasePage
from locators.contributors_page_locators import ContributorsPageLocators

Expand Down Expand Up @@ -90,8 +90,8 @@ def check_cards_visibility(self):

@allure.step("Get the list of descriptions in cards on the 4th level of nesting on the page")
def get_list_of_card_descriptions(self):
time.sleep(1)
return self.elements_are_present(self.locators.CARD_DESCRIPTIONS)
return Wait(self.driver, 10).until(
EC.visibility_of_all_elements_located(self.locators.CARD_DESCRIPTIONS))

@allure.step("Check descriptions in cards are visible")
def check_descriptions_visibility(self):
Expand Down
Loading