2FAuth/tests/EndToEnd/Pages/settings.resource

20 lines
668 B
Plaintext
Raw Normal View History

2023-08-30 15:48:04 +02:00
*** Settings ***
Library SeleniumLibrary
*** Variables ***
${OPTIONS TAB} lnkTabOptions
${ACCOUNT TAB} lnkTabAccount
${OAUTH TAB} lnkTabOAuth
${WEBAUTHN TAB} lnkTabWebauthn
${CLOSE BUTTON} btnClose
*** Keywords ***
Exit Settings
Wait Until Page Contains Element ${CLOSE BUTTON}
Click Link ${CLOSE BUTTON}
Activate Settings Tab
[Arguments] ${tab}
Wait Until Page Contains Element ${tab}
${requested tab is active}= Run Keyword And Return Status Element Attribute Value Should Be .tabs > li.is-active a id ${tab}
Run Keyword If ${requested tab is active} == False Click Link ${tab}