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
12 changes: 6 additions & 6 deletions pages/exercises_ru_words_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ 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)
# print(tab_title)
return tab_title

@allure.step("Get value of the breadcrumbs on the page")
Expand Down Expand Up @@ -221,7 +221,7 @@ def click_on_breadcrumbs_links(self):
self.element_is_present_and_clickable(self.locators.PAGE_LIST1_3).click()
time.sleep(1)
opened_pages.append(self.get_current_tab_url())
print(*opened_pages, sep='\n')
# print(*opened_pages, sep='\n')
return opened_pages

@allure.step("Click on group links and thereby open corresponding web pages in the same tab")
Expand All @@ -232,7 +232,7 @@ def click_on_group_links(self):
group_links[i].click()
time.sleep(1)
opened_pages.append(self.get_current_tab_url())
print(*opened_pages, sep='\n')
# print(*opened_pages, sep='\n')
return opened_pages

@allure.step("Click on subgroup link 'Family' and thereby open corresponding web pages in the same tab")
Expand All @@ -241,7 +241,7 @@ def click_on_subgroup_link_family(self):
time.sleep(1)
opened_page = self.get_current_tab_url()
self.driver.back()
print(opened_page)
# print(opened_page)
return opened_page

@allure.step("""Click on subgroup links 'Beloved Home', 'Food', 'Clothes'
Expand All @@ -263,7 +263,7 @@ def click_on_subgroup_link_beloved_home_food_clothes(self):
opened_pages.append(self.get_current_tab_url())
self.driver.back()
time.sleep(1)
print(*opened_pages, sep='\n')
# print(*opened_pages, sep='\n')
return opened_pages

# Checking images on the page
Expand Down Expand Up @@ -291,5 +291,5 @@ def check_size_changes_of_images(self):
for i in range(len(images)):
changed.append(i) if images_sizes_before[i] != images_sizes_after[i] else unchanged.append(i)
lost.append(i) if images_sizes_after[i] == {'height': 0, 'width': 0} else None
print('All images have changed sizes' if len(changed) == len(images) else 'Not all images have changed sizes')
# print('All images have changed sizes' if len(changed) == len(images) else 'Not all images have changed sizes')
return changed
2 changes: 1 addition & 1 deletion pages/header_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def get_list_of_direct_internal_links_auth(self):
direct_internal_links = []
for i in [2, 1, 3, 11, 0]:
direct_internal_links.append(links[i])
print([element.get_attribute("href") for element in direct_internal_links])
# print([element.get_attribute("href") for element in direct_internal_links])
return direct_internal_links

@allure.step("""Get the list of the 'Contacts', 'Specialists', 'Contributors', 'Used Resources' links "
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def exercises_ru_words_page_open(driver, main_page_open):
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(3)
time.sleep(4)


@pytest.fixture()
Expand Down
1 change: 0 additions & 1 deletion tests/exercises_ru_words_page_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ def test_erw_01_01_verify_page_presence_and_visibility(self, driver, exercises_r
@allure.title("Verify composition, visibility of elements on the 1st-6th levels of nesting on the page")
def test_erw_01_02_verify_page_structure_and_visibility(self, driver, exercises_ru_words_page_open):
page = ExercisesRuWordsPage(driver)
print(page.get_current_url())
structure_of_1st_level = page.get_structure_of_1st_level()
visibility_of_elements_on_1st_level = page.check_elements_visibility_on_1st_level()
structure_of_2nd_level = page.get_structure_of_2nd_level()
Expand Down