diff --git a/pages/exercises_ru_words_page.py b/pages/exercises_ru_words_page.py index 84eb67285a..76c422a731 100644 --- a/pages/exercises_ru_words_page.py +++ b/pages/exercises_ru_words_page.py @@ -123,9 +123,6 @@ def check_list3_visibility(self): def get_list4_of_links(self): elements = self.elements_are_present(self.locators.CARD_IMAGES_LIST4) # tags = [element.tag_name for element in elements] - # style = [element.get_attribute("style") for element in elements] - # print(*style, sep='\n') - # print(len(style)) return elements @allure.step("Check the list4 is visible") @@ -136,7 +133,6 @@ def check_list4_visibility(self): @allure.step("Get value of the title of the tab") def get_value_of_tab_title(self): tab_title = self.get_current_tab_title() - # print(tab_title) return tab_title @allure.step("Get value of the breadcrumbs on the page") diff --git a/tests/conftest.py b/tests/conftest.py index b09cb67cae..a9242420d8 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -56,20 +56,13 @@ def exercises_ru_page_open(driver, auto_test_user_authorized): @allure.step(f'Open page: {ExercisesUrls.URL_EXERCISES_RU_SIMILAR_PHRASES_PAGE}') def exercises_ru_similar_phrases_page_open(driver, exercises_ru_page_open): driver.get(ExercisesUrls.URL_EXERCISES_RU_SIMILAR_PHRASES_PAGE) - # time.sleep(1) @pytest.fixture() @allure.step(f'Open page: {ExercisesUrls.URL_EXERCISES_RU_WORDS_PAGE}') -def exercises_ru_words_page_open(driver, main_page_open): - page = BasePage(driver) - page.element_is_present_and_clickable(MainPageLocators.LOGIN_BUTTON).click() - page.element_is_visible(LoginPageLocators.INPUT_LOGIN).send_keys(os.environ["LOGIN"]) - page.element_is_visible(LoginPageLocators.INPUT_PASSWORD).send_keys(os.environ["PASSWORD"]) - page.element_is_present_and_clickable(LoginPageLocators.SIGN_IN_BUTTON).click() - page.element_is_present_and_clickable(HeaderUnauthorizedLocators.RU_BUTTON).click() - page.element_is_present_and_clickable(GroupsPageLocators.PAGE_LINK2).click() - time.sleep(4) +def exercises_ru_words_page_open(driver, exercises_ru_page_open): + driver.get(ExercisesUrls.URL_EXERCISES_RU_WORDS_PAGE) + time.sleep(2) @pytest.fixture()