Skip to content

Commit 886a1a8

Browse files
pnovotnypondrejk
authored andcommitted
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.
1 parent ccac4bc commit 886a1a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

airgun/views/host.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ class HostsView(BaseLoggedInView, SearchableViewMixinPF4):
226226
column_widgets={
227227
0: Checkbox(locator=".//input[@class='host_select_boxes']"),
228228
'Name': Text(
229-
"//a[contains(@href, '/new/hosts/') and not(contains(@href, 'Insights'))]"
229+
".//a[contains(@href, '/new/hosts/') and not(contains(@href, 'Insights'))]"
230230
),
231231
'Recommendations': Text("./a"),
232232
'Actions': ActionsDropdown("./div[contains(@class, 'btn-group')]"),

0 commit comments

Comments
 (0)