How do I prevent this website from detecting selenium and asking me to enter login password every few iterations?

101 views
Skip to first unread message

Burhanuddin Murtaza

unread,
Oct 25, 2021, 2:53:25 PM10/25/21
to Selenium Users
Title says it all. Help me find a way to understand why the browser detects selenium as bot and ask me to enter login password. I tried automating that page too but sometimes it detects that as well.

Jim Evans

unread,
Oct 25, 2021, 3:01:02 PM10/25/21
to Selenium Users
Trying to "hide" the fact that you're using Selenium (or any other browser automation mechanism) to automate a site is usually a fool's errand. There is no way to fully "mask" that you're using WebDriver; the fact that you're using WebDriver is codified into the W3C WebDriver Specification, specifically to _allow_ websites to detect automated bot use. Even if you were allowed to remove the WebDriver flag from communication with the website, there are several other ways to detect an automated client. Not doing so is a security hole for the browser, and is likely to be a violation of the Terms of Service of virtually any website out there. While there may be several (many?) tutorials on the web that purport to be able to accomplish this, it's still a game of "walls and ladders," whereby anything that works today is likely to be patched by either the browser or the website in the future.
Reply all
Reply to author
Forward
0 new messages