Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 0 additions & 4 deletions pages/exercises_ru_words_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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")
Expand Down
13 changes: 3 additions & 10 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down