Fix for GUI Header related CT fails

1. Fixed "Element is not currently visible and so may not be interacted with"
2. Fixed "Month and day mismatch.: '' does not contain 'Jul 25'"

https://github.com/openbmc/openbmc-test-automation/issues/1899

Change-Id: I73a2c17e96106c3d38ace0ed6edfdcb54a209f2f
Signed-off-by: Anusha Dathatri <adathatr@in.ibm.com>
diff --git a/gui/test/gui_header/test_obmc_gui_ip_refresh_check.robot b/gui/test/gui_header/test_obmc_gui_ip_refresh_check.robot
index 053f9d0..81e342c 100644
--- a/gui/test/gui_header/test_obmc_gui_ip_refresh_check.robot
+++ b/gui/test/gui_header/test_obmc_gui_ip_refresh_check.robot
@@ -51,8 +51,10 @@
     # Verify power is on after refresh button.
 
     Expected Initial Test State  Off
+    Wait Until Element Is Visible  ${xpath_select_refresh_button}
     Click Element  ${xpath_select_refresh_button}
     GUI Power On
+    Wait Until Element Is Visible  ${xpath_select_refresh_button}
     Click Element  ${xpath_select_refresh_button}
     Wait Until Page Contains  Running
 
@@ -60,7 +62,9 @@
     [Documentation]  Verify Date Last Refreshed text in GUI header.
     [Tags]  Verify_Date_Last_Refreshed
 
+    Wait Until Element Is Visible  ${xpath_select_date_text}
     ${date_info_1st_read}=  Get Text  ${xpath_select_date_text}
+    Should Not Be Empty  ${date_info_1st_read}
     ${current_date}=  Get Time
     ${date_conversion}=  Convert Date  ${current_date}  result_format=%b %d %Y