From de735fb9fa4a035fad4d1e03df6048e0e0642ecd Mon Sep 17 00:00:00 2001 From: Radislav Date: Fri, 5 Dec 2025 09:53:33 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D0=BE=D0=B1=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=BA=D0=B0=20=D1=82=D0=B5=D0=BA=D1=81=D1=82=D0=B0=20=D1=8D?= =?UTF-8?q?=D0=BB=D0=B5=D0=BC=D0=B5=D0=BD=D1=82=D0=BE=D0=B2=20=D0=B8=20?= =?UTF-8?q?=D1=83=D0=BF=D1=80=D0=BE=D1=89=D0=B5=D0=BD=D0=B0=20=D0=BB=D0=BE?= =?UTF-8?q?=D0=B3=D0=B8=D0=BA=D0=B0=20=D0=B2=20find=5Fand=5Fclick=5Fitem?= =?UTF-8?q?=20>>=20>>=20=D0=9E=D1=81=D0=BD=D0=BE=D0=B2=D0=BD=D1=8B=D0=B5?= =?UTF-8?q?=20=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=D0=B8=D1=8F=20?= =?UTF-8?q?=D0=B2=20navbar=5Fcomponent.py:=20>>=201.=20=D0=A3=D0=B4=D0=B0?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D0=B0=20=D0=BE=D0=B1=D1=80=D0=B0=D0=B1=D0=BE?= =?UTF-8?q?=D1=82=D0=BA=D0=B0=20=D0=BC=D0=BD=D0=BE=D0=B3=D0=BE=D1=81=D1=82?= =?UTF-8?q?=D1=80=D0=BE=D1=87=D0=BD=D0=BE=D0=B3=D0=BE=20=D1=82=D0=B5=D0=BA?= =?UTF-8?q?=D1=81=D1=82=D0=B0=20=D0=B8=D0=B7=20node=5Fcontent=20>>=20=20?= =?UTF-8?q?=20=20-=20=D0=A3=D0=B1=D1=80=D0=B0=D0=BD=D0=BE=20=D1=80=D0=B0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-8?q?=D1=8B=D0=B9=20else=20=D0=BF=D0=BE=D1=81=D0=BB=D0=B5=20return?= =?UTF-8?q?=20=D0=B2=20=D1=81=D1=82=D1=80=D0=BE=D0=BA=D0=B5=20116=20>>=20?= =?UTF-8?q?=20=20=20-=20=D0=9A=D0=BE=D0=B4=20=D0=B2=D0=BD=D1=83=D1=82?= =?UTF-8?q?=D1=80=D0=B8=20else=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BD=D0=B5?= =?UTF-8?q?=D1=81=D0=B5=D0=BD=20=D0=B2=D0=BD=D1=83=D1=82=D1=80=D1=8C=20if?= =?UTF-8?q?=20=D1=81=20=D0=BA=D0=BE=D1=80=D1=80=D0=B5=D0=BA=D1=82=D0=BD?= =?UTF-8?q?=D1=8B=D0=BC=20=D0=BE=D1=82=D1=81=D1=82=D1=83=D0=BF=D0=BE=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/navbar_component.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/navbar_component.py b/components/navbar_component.py index 4a8b318..1e0a96d 100644 --- a/components/navbar_component.py +++ b/components/navbar_component.py @@ -51,6 +51,9 @@ class NavigationPanelComponent(BaseComponent): node_content = node.locator('div.v-treeview-node__content') if node_content.count() > 0: node_text = node_content.first.inner_text().strip() + node_texts = node_text.splitlines() + if len(node_texts) > 1: + node_text = node_texts[1] if item_name == node_text: node_attr = node.get_attribute('class') if "v-treeview-node--leaf" not in node_attr: