From 886a1a80debec16169ed56b6424e7238072df05e Mon Sep 17 00:00:00 2001 From: Pavel Novotny Date: Mon, 1 Jul 2024 06:40:59 +0200 Subject: [PATCH] hosts table: fix locator for host Name column The `HostsView` Name table column XPath was missing leading '.' character, which caused that all host rows returned had the same Name value, equal to the first table row host Name. --- airgun/views/host.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airgun/views/host.py b/airgun/views/host.py index 6670c9496..8c14a2848 100644 --- a/airgun/views/host.py +++ b/airgun/views/host.py @@ -226,7 +226,7 @@ class HostsView(BaseLoggedInView, SearchableViewMixinPF4): column_widgets={ 0: Checkbox(locator=".//input[@class='host_select_boxes']"), 'Name': Text( - "//a[contains(@href, '/new/hosts/') and not(contains(@href, 'Insights'))]" + ".//a[contains(@href, '/new/hosts/') and not(contains(@href, 'Insights'))]" ), 'Recommendations': Text("./a"), 'Actions': ActionsDropdown("./div[contains(@class, 'btn-group')]"),