Recently, the version number of Chrome has been increased to 88. Some students found that the stealth.min.js file cannot hide window.navigator.webdriver correctly, as shown in the following figure:

image.png

This is because, starting from Chrome 88, its V8 engine has been upgraded and some interfaces have changed

Object.defineProperty(navigator, 'webdriver', {
       get: () =>undefined
})

If you run this code on Chrome 88 with Selenium running, you'll see an error.

What should I do in this situation?

When Google closed a door, it opened another window for you.

In fact, when we use Selenium to call Chrome, we only need to add a configuration parameter:

chrome_options.add_argument("--disable-blink-features=AutomationControlled")

You can hide window.navigator.webdriver again

The running effect is shown in the figure below

image.png

点赞(0)

评论列表 共有 0 评论

暂无评论

微信服务号

微信客服

淘宝店铺

support@elephdev.com

发表
评论
Go
顶部