Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add entity that reads filled searchbox on new and old hosts pages #1589

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions airgun/entities/all_hosts.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ def search(self, host_name):
view.wait_displayed()
return view.search(host_name)

def read_filled_searchbox(self):
"""Read filled searchbox"""
view = self.navigate_to(self, 'All')
self.browser.plugin.ensure_page_safe(timeout='5s')
view.wait_displayed()
return view.searchbox.read()

def read_table(self):
"""Read All Hosts table"""
view = self.navigate_to(self, 'All')
Expand Down
7 changes: 7 additions & 0 deletions airgun/entities/host.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,13 @@ def search(self, value):
view = self.navigate_to(self, 'All')
return view.search(value)

def read_filled_searchbox(self):
"""Read filled searchbox"""
view = self.navigate_to(self, 'All')
self.browser.plugin.ensure_page_safe(timeout='5s')
view.wait_displayed()
return view.searchbox.read()

Comment on lines +87 to +93
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes are working absolutely fine, I tested it locally, and now running in CI as part of this robottelo PR SatelliteQE/robottelo#16641
These changes are here in another airgun PR #1593

def new_ui_button(self):
"""Click New UI button and return the browser URL"""
view = self.navigate_to(self, 'All')
Expand Down
Loading