Skip to content

Commit

Permalink
check facts for host
Browse files Browse the repository at this point in the history
  • Loading branch information
amolpati30 committed Jan 16, 2025
1 parent 1133e16 commit a196041
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions airgun/entities/host.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,19 @@ def get_displayed_table_headers(self):
view.wait_displayed()
return view.displayed_table_header_names

def build_mode(self, entity_name, value=None):
"""On the host, it checks the facts and returns the value.
:steps: select host - click 3 dot - facts
"""
view = self.navigate_to(self, 'All')
view.table.row(name=entity_name)['Name'].widget.click()
host_view = NewHostDetailsView(self.browser)
host_view.wait_displayed()
host_view.dropdown.wait_displayed()
host_view.dropdown.item_select(value)
return host_view.read()


@navigator.register(HostEntity, 'All')
class ShowAllHosts(NavigateStep):
Expand Down

0 comments on commit a196041

Please sign in to comment.