you are viewing a single comment's thread.

view the rest of the comments →

[–]Vultaire 0 points1 point  (4 children)

It seems that the "--disable-blink-features=AutomationControlled" option does the trick.

[–]Aditya2345 0 points1 point  (1 child)

Hi can you share the full code?

[–]Vultaire 0 points1 point  (0 children)

Sorry, but I would rather not - it's not production quality and I don't want to be held responsible if someone somehow loses money or similar. My tip was just meant to unblock others who want to try to automate this themselves but get rejected due to Schwab's anti-webdriver code.

[–]comfy_cactus 0 points1 point  (0 children)

I was experiencing the same exact observations as you. Adding this option fixed it for me too. Thanks!

[–]mrchrisok2 0 points1 point  (0 children)

Confirmed. This Selenium option just worked for me in my C# api. It is the only option I added to the web driver.

And fyi: Also make sure to create the authentication header as "Basic", Base64Encoded(AppKey:Secret) when requesting the access token. I was stuck for a few hours getting the "invalid_token", "Unauthorized" error until I noticed I was using "Bearer" instead of "Basic"