Skip to content

Commit b8a0d3e

Browse files
committed
Enhance browser opening logic to handle different browser names and prevent password manager leak detection in Chrome
1 parent b33a8f1 commit b8a0d3e

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

atest/acceptance/keywords/textfields.robot

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,10 @@ Attempt Clear Element Text On Non-Editable Field
8181

8282
Open Browser To Start Page Disabling Chrome Leaked Password Detection
8383
[Arguments] ${alias}=${None}
84-
Open Browser ${FRONT PAGE} ${BROWSER} remote_url=${REMOTE_URL}
85-
... options=add_experimental_option("prefs", {"profile.password_manager_leak_detection": False}) alias=${alias}
84+
${browser}= Evaluate "${BROWSER}".replace(" ", "").lower()
85+
IF "${browser}" in ["chrome", "googlechrome", "gc", "headlesschrome"]
86+
Open Browser ${FRONT PAGE} ${BROWSER} remote_url=${REMOTE_URL}
87+
... options=add_experimental_option("prefs", {"profile.password_manager_leak_detection": False}) alias=${alias}
88+
ELSE
89+
Open Browser ${FRONT PAGE} ${BROWSER} remote_url=${REMOTE_URL} alias=${alias}
90+
END

0 commit comments

Comments
 (0)