Fix for LED ON and display event logs test cases

Change-Id: Id8152f3533b4797b9b36ae1229736c59eb439d1a
Signed-off-by: Ashwini Chandrappa <Ashwini.Chandrappa777@ibm.com>
diff --git a/gui/gui_test/control_menu/test_server_led_sub_menu.robot b/gui/gui_test/control_menu/test_server_led_sub_menu.robot
index aedec87..9abd504 100644
--- a/gui/gui_test/control_menu/test_server_led_sub_menu.robot
+++ b/gui/gui_test/control_menu/test_server_led_sub_menu.robot
@@ -52,7 +52,8 @@
     # Turn Off the server LED via Redfish.
     Redfish.Patch  /redfish/v1/Systems/system  body={"IndicatorLED":"Off"}   valid_status_codes=[200, 204]
 
-    # Turn ON the server LED via GUI.
+    # Refresh GUI and turn ON the server LED via GUI.
+    Click Element  ${xpath_refresh_button}
     Click Element At Coordinates  ${xpath_led_toggle}  0  0
     Wait Until Element Contains  ${xpath_led_value}  On  timeout=15
 
@@ -69,7 +70,8 @@
     # Turn ON the server LED via Redfish.
     Redfish.Patch  /redfish/v1/Systems/system  body={"IndicatorLED":"Lit"}   valid_status_codes=[200, 204]
 
-    # Turn Off the server LED via GUI.
+    # Refresh GUI and turn OFF the server LED via GUI.
+    Click Element  ${xpath_refresh_button}
     Click Element At Coordinates  ${xpath_led_toggle}  0  0
     Wait Until Element Contains  ${xpath_led_value}  Off  timeout=30