EventPanelComponent
Модуль компонента панели событий. Содержит класс для работы с элементами панели.
EventPanelComponent
Bases: BaseComponent
Компонент панели событий. Предоставляет методы для взаимодействия с ней.
Source code in components\eventbar_component.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 | |
__init__(page)
Инициализирует компонент панели событий.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
page
|
Page
|
Экземпляр страницы Playwright. |
required |
Source code in components\eventbar_component.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | |
check_expand_less_button()
Проверяет наличие кнопки галочка вверх.
Source code in components\eventbar_component.py
106 107 108 109 110 111 112 113 114 | |
check_expand_more_button()
Проверяет наличие кнопки галочка вниз
Source code in components\eventbar_component.py
116 117 118 119 120 121 122 123 124 | |
click_expand_less_button()
Выполняет нажатие кнопки галочка вверх.
Source code in components\eventbar_component.py
45 46 47 48 49 50 | |
click_expand_more_button()
Выполняет нажатие кнопки галочка вниз.
Source code in components\eventbar_component.py
52 53 54 55 56 57 | |
do_logout()
Выполняет выход из системы.
Source code in components\eventbar_component.py
59 60 61 62 63 64 | |
get_event_button_values()
Возвращает набор значений кнопок счетчиков событий.
Source code in components\eventbar_component.py
78 79 80 81 82 83 84 85 86 87 88 | |
get_event_tooltip_texts()
Возвращает список текстов всплывающих подсказок кнопок счетчиков событий.
Source code in components\eventbar_component.py
66 67 68 69 70 71 72 73 74 75 76 | |
get_panel_position()
Возвращает текущее положение панели событий относительно страницы: "top", "center","bottom".
Source code in components\eventbar_component.py
90 91 92 93 94 95 96 97 98 99 100 101 102 103 | |
should_be_event_buttons()
Проверяет наличие блока кнопок-счетчиков событий.
Source code in components\eventbar_component.py
145 146 147 148 149 150 151 | |
should_be_search_button()
Проверяет наличие кнопки поиска.
Source code in components\eventbar_component.py
131 132 133 134 | |
should_be_tab_buttons()
Проверяет наличие блока tab-кнопок Состояния, Действия, События, Обслуживание, Системный журнал.
Source code in components\eventbar_component.py
136 137 138 139 140 141 142 143 | |
should_be_user_button()
Проверяет наличие кнопки пользователя.
Source code in components\eventbar_component.py
126 127 128 129 | |