File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ class DeleteHardwareModelDialog(Pf5ConfirmationDialog):
1515class HardwareModelsView (BaseLoggedInView , SearchableViewMixinPF4 ):
1616 delete_dialog = DeleteHardwareModelDialog ()
1717 title = Text ("//h1[normalize-space(.)='Hardware models']" )
18- new = Text ("//a[contains(@href, '/models/new')]" )
18+ new = Text ('//button[@data-ouia-component-id="action-buttons-button"]' )
1919 table = PF5OUIATable (
2020 component_id = 'table' ,
2121 column_widgets = {
@@ -35,7 +35,7 @@ class HardwareModelCreateView(BaseLoggedInView):
3535 hardware_model = TextInput (id = 'model_hardware_model' )
3636 vendor_class = TextInput (id = 'model_vendor_class' )
3737 info = TextInput (id = 'model_info' )
38- submit = Text ('//input[@name="commit "]' )
38+ submit = Text ('//button[@data-ouia-component-id="model_submit_button "]' )
3939
4040 @property
4141 def is_displayed (self ):
You can’t perform that action at this time.
0 commit comments