Skip to content

Commit

Permalink
Use the 'Jump to section' links to scroll elements into view
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Giorgi <[email protected]>
  • Loading branch information
lugi0 committed Aug 10, 2023
1 parent 77cc822 commit 695f500
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,13 @@ Create Workbench
END
IF "${storage}" == "Persistent"
IF ${pv_existent} == ${TRUE}
Scroll Element Into View xpath=//input[@name="persistent-existing-storage-type-radio"]
# Use the `Jump to section` links in the page to scroll the section into view
Click Element //a[@href="#cluster-storage"]
Click Element xpath=//input[@name="persistent-existing-storage-type-radio"]
Select An Existent PV name=${pv_name}
ELSE IF ${pv_existent} == ${FALSE}
Scroll Element Into View xpath=//input[@name="persistent-new-storage-type-radio"]
# Use the `Jump to section` links in the page to scroll the section into view
Click Element //a[@href="#cluster-storage"]
Click Element xpath=//input[@name="persistent-new-storage-type-radio"]
Fill In New PV Data name=${pv_name} description=${pv_description} size=${pv_size}
ELSE
Expand All @@ -94,7 +96,8 @@ Add Environment Variables In Workbench
ELSE
${add_key_value_text}= Set Variable Add another variable
END
Scroll Element Into View ${WORKBENCH_ADD_VAR_BTN_XP}
# Use the `Jump to section` links in the page to scroll the section into view
Click Element //a[@href="#environment-variables"]
Click Element ${WORKBENCH_ADD_VAR_BTN_XP}
${n_objects}= Get Length ${env_variables}
FOR ${idx} ${env_variable} IN ENUMERATE @{env_variables} start=1
Expand Down

0 comments on commit 695f500

Please sign in to comment.