File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,13 @@ def search(self, value):
84
84
view = self .navigate_to (self , 'All' )
85
85
return view .search (value )
86
86
87
+ def new_ui_button (self ):
88
+ """Click New UI button and return the browser URL"""
89
+ view = self .navigate_to (self , 'All' )
90
+ view .new_ui_button .click ()
91
+ view .wait_displayed ()
92
+ return self .browser .url
93
+
87
94
def reset_search (self ):
88
95
"""This function loads a HostsView and clears the searchbox."""
89
96
view = HostsView (self .browser )
Original file line number Diff line number Diff line change @@ -221,6 +221,7 @@ class HostsView(BaseLoggedInView, SearchableViewMixinPF4):
221
221
export = Text (".//a[contains(@class, 'btn')][contains(@href, 'hosts.csv')]" )
222
222
new = Text (".//div[@id='rails-app-content']//a[contains(normalize-space(.),'Create Host')]" )
223
223
register = PF4Button ('OUIA-Generated-Button-secondary-2' )
224
+ new_ui_button = Text (".//a[contains(@class, 'btn')][contains(@href, 'new/hosts')]" )
224
225
select_all = Checkbox (locator = "//input[@id='check_all']" )
225
226
table = SatTable (
226
227
'.//table' ,
You can’t perform that action at this time.
0 commit comments