mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-29 03:33:17 +01:00
20 lines
669 B
Plaintext
20 lines
669 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}
|
|
|
|
Browse To 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} |