Enforced robotframework standards.
- The standards are enforced using the rflint static anylysis tool.
- More standards will be added in future commits but this is a base
starting point.
Change-Id: I7dd8a2b0b42a51327b748cb730609d7ee2538de3
Signed-off-by: Joy Onyerikwu <onyekachukwu.joy.onyerikwu@ibm.com>
diff --git a/gui/obmc_gui/lib/resource.robot b/gui/obmc_gui/lib/resource.robot
index 9c901b0..088f645 100644
--- a/gui/obmc_gui/lib/resource.robot
+++ b/gui/obmc_gui/lib/resource.robot
@@ -271,8 +271,10 @@
# confirmation Server power operations confirmation
# (e.g. yes.)
- Click Element
- ... //*[@id='power-operations']/div[${main_element}]/div[${sub_element}]/confirm/div/div[${confirm_msg_elt}]/button[${confirmation}]
+ ${element_path}= Catenate //*[@id='power-operations']/div[${main_element}]/div[${sub_element}]
+ ... /confirm/div/div[${confirm_msg_elt}]/button[${confirmation}]
+ Click Element ${element_path.replace(" ","")}
+
GUI Power On
[Documentation] Power on the host using GUI.