Running Selenium from Command line and forcing use of a specific profile

26 views
Skip to first unread message

Mark B

unread,
Nov 19, 2024, 9:23:33 AMNov 19
to Selenium Users
I am attempting to utilize Selenium to do some simple automated testing of some web applications my team supports and would prefer to do this testing without the implementation of a testing framework as these are very simple tests and most members of the team are not knowledgeable of the languages supported. I see that Selenium tests can be run through the command line (Side-Runner)The issue I am running into is due to the implementation of SSO, an authentication window is thrown during the running of test scripts via Side-Runner. I know that I can force the driver (at least the Chrome driver) to use a specific profile, but that leads me back to having to use a test framework to programmatically force the use of a profile. Is there any way to force Selenium/browser driver to use a specific profile via command line arguments or without having to code it at the browser driver creation level? In my exhaustive search of the internet that Selenium can be passed a "profileTemplate" for Firefox, but that appears to be only related to Selenium RC from what I can tell. Any ideas or even other tools that someone could suggest that could be used with Selenium that would not require coding knowledge that my other team members do not possess would be greatly appreciated.

Thank you,
MarkB
Reply all
Reply to author
Forward
0 new messages