e-nms_qa_automation/locators/table_locators.py

13 lines
907 B
Python
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

class TableLocators:
"""Локаторы для табличных элементов в рабочей области.
Атрибуты:
TABLE_WORK_AREA (str): XPath локатор основной таблицы в рабочей области.
Ищет элемент table, находящийся по пути:
scrollarea__body -> div -> div -> div -> table
TABLE_SCROLL_CONTAINER (str): XPath локатор контейнера с прокруткой таблицы.
Ищет tbody внутри div с классом scrollarea__body,
содержащего таблицу с классом scrolltable__container.
"""
TABLE_WORK_AREA = "//div[@class='scrollarea__body']/div/div/div/table"
TABLE_SCROLL_CONTAINER = "//div[contains(@class, 'scrollarea__body') and .//table[@class='scrolltable__container']]//tbody"