Skip to content

Issue_189_SPECIALISTS_PAGE_tests #559

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 13, 2025
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
18 changes: 6 additions & 12 deletions pages/specialists_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,54 +28,48 @@ def check_visibility_of_page_content(self):

@allure.step("Get structure of the 1st level of nesting on the page")
def get_structure_of_1st_level(self):
elements = self.elements_are_present(self.locators.PAGE_FIRST_LEVEL_ELEMENTS)
# tags = [element.tag_name for element in elements]
return elements
return self.elements_are_present(self.locators.PAGE_FIRST_LEVEL_ELEMENTS)

@allure.step("Check if elements of the 1st level of nesting are visible")
def check_elements_visibility_on_1st_level_on_page(self):
return all(element.is_displayed() for element in self.get_structure_of_1st_level())

@allure.step("Get structure of the 2nd level of nesting on the page")
def get_structure_of_2nd_level(self):
elements = self.elements_are_present(self.locators.PAGE_SECOND_LEVEL_ELEMENTS)
return elements
return self.elements_are_present(self.locators.PAGE_SECOND_LEVEL_ELEMENTS)

@allure.step("Check if elements of the 2nd level of nesting are visible")
def check_elements_visibility_on_2nd_level_on_page(self):
return all(element.is_displayed() for element in self.get_structure_of_2nd_level())

@allure.step("Get structure of the 3rd level of nesting on the page")
def get_structure_of_3rd_level(self):
elements = self.elements_are_present(self.locators.PAGE_THIRD_LEVEL_ELEMENTS)
return elements
return self.elements_are_present(self.locators.PAGE_THIRD_LEVEL_ELEMENTS)

@allure.step("Check if elements of the 3rd level of nesting are visible")
def check_elements_visibility_on_3rd_level_on_page(self):
return all(element.is_displayed() for element in self.get_structure_of_3rd_level())

@allure.step("Get structure of the 4th level of nesting on the page")
def get_structure_of_4th_level(self):
elements = self.elements_are_present(self.locators.PAGE_FOURTH_LEVEL_ELEMENTS)
return elements
return self.elements_are_present(self.locators.PAGE_FOURTH_LEVEL_ELEMENTS)

@allure.step("Check if elements of the 4th level of nesting are visible")
def check_elements_visibility_on_4th_level_on_page(self):
return all(element.is_displayed() for element in self.get_structure_of_4th_level())

@allure.step("Get structure of the 5th level of nesting on the page")
def get_structure_of_5th_level(self):
elements = self.elements_are_present(self.locators.PAGE_FIFTH_LEVEL_ELEMENTS)
return elements
return self.elements_are_present(self.locators.PAGE_FIFTH_LEVEL_ELEMENTS)

@allure.step("Check if elements of the 5th level of nesting are visible")
def check_elements_visibility_on_5th_level_on_page(self):
return all(element.is_displayed() for element in self.get_structure_of_5th_level())

@allure.step("Get structure of the 6th level of nesting on the page")
def get_structure_of_6th_level(self):
elements = self.elements_are_present(self.locators.PAGE_SIXTH_LEVEL_ELEMENTS)
return elements
return self.elements_are_present(self.locators.PAGE_SIXTH_LEVEL_ELEMENTS)

@allure.step("Check if elements of the 6th level of nesting are visible")
def check_elements_visibility_on_6th_level_on_page(self):
Expand Down