mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-29 19:53:11 +01:00
20 lines
668 B
Plaintext
20 lines
668 B
Plaintext
|
*** 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}
|