From 36cb87d2ac7a4057a0da1d47a34f33b76f91387e Mon Sep 17 00:00:00 2001 From: amolpati30 <151733635+amolpati30@users.noreply.github.com> Date: Wed, 24 Jul 2024 17:09:09 +0530 Subject: [PATCH] locator added in host view (#1439) --- airgun/views/computeresource.py | 8 +++++++- airgun/views/host.py | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/airgun/views/computeresource.py b/airgun/views/computeresource.py index e7f10e28e..560e1378a 100644 --- a/airgun/views/computeresource.py +++ b/airgun/views/computeresource.py @@ -218,7 +218,7 @@ class compute_profiles(SatTab): table = SatTable( './/table', column_widgets={ - 'Compute profile': Text('./a'), + 'Compute profile': Text('.//a'), }, ) @@ -432,6 +432,9 @@ class network_interfaces(RemovableWidgetsItemsListView): ROOT = "//fieldset[@id='network_interfaces']" ITEM_WIDGET_CLASS = ComputeResourceVMwareProfileNetworkItem + nic_type = FilteredDropdown(id='select2-chosen-9') + network = FilteredDropdown(id='select2-chosen-10') + @View.nested class storage(RemovableWidgetsItemsListView): ROOT = "//div[contains(concat(' ', @class, ' '), ' vmware-storage-container ')]" @@ -440,6 +443,9 @@ class storage(RemovableWidgetsItemsListView): add_item_button = Text( "//button[contains(concat(' ', @class, ' '), ' btn-add-controller ')]" ) + data_store = FilteredDropdown( + "//div[@class='select2-container form-control select2-allowclear']/a/span[1]" + ) @property def is_displayed(self): diff --git a/airgun/views/host.py b/airgun/views/host.py index 615d2eb45..98db827f8 100644 --- a/airgun/views/host.py +++ b/airgun/views/host.py @@ -277,6 +277,9 @@ class host(SatTab): locator=".//div[label[@for='compute_resource_id']]//button" ) deploy = FilteredDropdown(id='host_compute_resource') + inherit_compute_profile_option = ToggleButton( + locator=".//div[label[@for='compute_profile_id']]//button" + ) compute_profile = FilteredDropdown(id='s2id_host_compute_profile_id') lce = FilteredDropdown(id='host_lifecycle_environment') content_view = FilteredDropdown(id='host_content_view')