BMC web failure fix

-Changed xpath for elements in Hardware status

Change-Id: Ide0350eb10d9092c4f4fe19e9cf360a58dc5c131
Signed-off-by: Anusha Dathatri <adathatr@in.ibm.com>
diff --git a/gui/test/server_health/test_obmc_gui_hardware_status.robot b/gui/test/server_health/test_obmc_gui_hardware_status.robot
index f50693d..7491823 100644
--- a/gui/test/server_health/test_obmc_gui_hardware_status.robot
+++ b/gui/test/server_health/test_obmc_gui_hardware_status.robot
@@ -16,10 +16,10 @@
 ${xpath_inventory_search}  //*[@id="content__search-input"]
 ${xpath_inventory_search_button}  //*[@id="content__search-submit"]
 ${xpath_inventory_search_text_clear}  //button[@class='clear-input']
-${xpath_bmc_expand}  //*[@id="inventory-categories"]/div[5]/button
-${xpath_system_expand}  //*[@id="inventory-categories"]/div[2]/button
-${xpath_motherboard_expand}  //*[@id="inventory-categories"]/div[4]/button
-${xpath_chassis_expand}  //*[@id="inventory-categories"]/div[3]/button
+${xpath_bmc_expand}  //*[text()="bmc"]//following::button[1]
+${xpath_system_expand}  //*[text()="system"]//following::button[1]
+${xpath_motherboard_expand}  //*[text()="motherboard"]//following::button[1]
+${xpath_chassis_expand}  //*[text()="chassis"]//following::button[1]
 
 *** Test Cases ***
 
@@ -74,8 +74,8 @@
     # xpath_hardware_item
     ${xpath_system_expand}
     ${xpath_chassis_expand}
-    ${xpath_bmc_expand}
     ${xpath_motherboard_expand}
+    ${xpath_bmc_expand}
 
 *** Keywords ***
 
@@ -95,4 +95,4 @@
    # xpath_hardware_item    Hardware inventory item to be expand. e.g. fan.
 
    Page Should Contain Element  ${xpath_hardware_item}
-   Click Element  ${xpath_hardware_item}
+   Click Button  ${xpath_hardware_item}