Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

How to Force SOATest to Start Edge in InPrivate Mode

Options
Speedy993
Speedy993 Posts: 86

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

  • Speedy993
    Speedy993 Posts: 86

    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?

  • benken_parasoft
    benken_parasoft Posts: 1,360 ✭✭✭
    edited June 25

    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.