When testing OAuth 2.0 flows with Selenium, what is the recommended approach for handling the authorization code exchange?
-
A
Automate the full browser redirect flow each time
-
B
Use a pre-obtained access token injected via API to skip the browser UI
-
C
Store credentials in a shared test fixture file
-
D
Disable OAuth and use basic auth in test environments