Skip to content

Commit 7debe8e

Browse files
authored
remove extra commits (#2272)
1 parent c6eedfa commit 7debe8e

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

airgun/entities/all_hosts.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,25 @@ def manage_table_columns(self, values: dict):
151151
view.fill(values)
152152
view.submit()
153153

154+
def disable_vulnerability_analysis(self, host_name):
155+
"""Disable vulnerability analysis for a host via kebab menu
156+
157+
Args:
158+
host_name: Name of the host to disable vulnerability analysis for
159+
"""
160+
view = self.all_hosts_navigate_and_select_hosts_helper(host_names=host_name)
161+
# Get the first row after search/filter
162+
row = view.table[0]
163+
# Access via the row's browser element directly
164+
row_element = row.__locator__()
165+
kebab_button = view.browser.element(
166+
'.//td[contains(@class, "pf-v5-c-table__action")]//button', parent=row_element
167+
)
168+
kebab_button.click()
169+
# Now find and click the menu item
170+
view.browser.click('.//button[contains(., "Disable vulnerability analysis")]')
171+
self.browser.plugin.ensure_page_safe(timeout='10s')
172+
154173
def get_displayed_table_headers(self):
155174
"""
156175
Return displayed columns in the hosts table.

0 commit comments

Comments
 (0)