How to Force SOATest to Start Edge in InPrivate Mode
I have a large number of tests that run in Microsoft Edge (the browser we must use here) and I need to run it in InPrivate mode because of mandated multi-factor authentication. I do have InPrivate mode working in the Selenic tests but am not sure how to implement this in SOATest. Searches for this in the Forum did not return any helpful results.
Any suggestions?
Thanks!
Comments
-
So far all the suggestions I have found describe how to set InPrivate or Incognito are for Selenium. Is there not a property or configuration setting to do this in SOATest?
0 -
Edge must be started with the "-inprivate" command line argument. Unfortunately,SOAtest does not expose any mechanism to pass extra command line arguments to Edge.
On Linux, I can create a small bash script that delegates to the real "microsoft-edge".
#!/usr/bin/env bash exec /usr/bin/microsoft-edge-stable -inprivate "$@"
Let's say the script was saved as
/usr/bin/microsoft-edge-wrapper.sh
. I can then use "update-alternatives" to point to my script:sudo update-alternatives --install /usr/bin/microsoft-edge microsoft-edge /usr/bin/microsoft-edge-wrapper.sh 100 sudo update-alternatives --set microsoft-edge /usr/bin/microsoft-edge-wrapper.sh
I am not aware of a trick like this for Windows.
0