Исправления в компоненте навигационной панели
- Исправлена ошибка R1705 pylint: удален лишний 'else' после 'return' в методе click_sub_item - Улучшена логика извлечения текста для элементов навигации: + node_texts = node_text.splitlines() + if len(node_texts) > 1: + node_text = node_texts[1]new_add_edit_user
parent
ef9d9c632a
commit
5a6d0054ba
|
|
@ -115,7 +115,7 @@ class NavigationPanelComponent(BaseComponent):
|
||||||
if found_loc:
|
if found_loc:
|
||||||
if parent is None:
|
if parent is None:
|
||||||
return found_loc
|
return found_loc
|
||||||
else:
|
|
||||||
root_texts = root_locator.locator(
|
root_texts = root_locator.locator(
|
||||||
f">div:nth-child({index + 1})"
|
f">div:nth-child({index + 1})"
|
||||||
).inner_text().splitlines()
|
).inner_text().splitlines()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue