GUI Network Settings Fix

Changes:
   Added line for verify web element before clicking.

Tested:
Successfully tested from sandbox.

Change-Id: I75c064393246a3f1220bdd05cc16db3b7561ec02
Signed-off-by: Anvesh-Kumar_Rayankula <anvesh.kumar.rayankula@ibm.com>
diff --git a/gui/gui_test/settings_menu/test_network_sub_menu.robot b/gui/gui_test/settings_menu/test_network_sub_menu.robot
index c569cf6..76b43d8 100644
--- a/gui/gui_test/settings_menu/test_network_sub_menu.robot
+++ b/gui/gui_test/settings_menu/test_network_sub_menu.robot
@@ -261,7 +261,8 @@
     # expected_status     Expected status while adding static ipv4 address
     # ....                (e.g. Invalid format / Field required).
 
-    Wait Until Keyword Succeeds  30 sec  10 sec  Click Element  ${xpath_add_static_ipv4_address_button}
+    Wait Until Element Is Enabled  ${xpath_add_static_ipv4_address_button} timeout=60sec
+    Click Element  ${xpath_add_static_ipv4_address_button}
 
     Input Text  ${xpath_input_ip_address}  ${ip_address}
     Input Text  ${xpath_input_subnetmask}  ${subnet_mask}
@@ -274,7 +275,8 @@
 
     ...  ELSE IF  '${expected_status}' == 'Invalid format'
     ...  Run Keywords  Page Should Contain  Invalid format  AND
-    ...  Click Button  ${xpath_cancel_button}
+    ...  Click Button  ${xpath_cancel_button}  AND
+    ...  Wait Until Page Does Not Contain Element  ${xpath_cancel_button}
 
 
 Configure And Verify Network Settings Via GUI