简体   繁体   English

Selenium:网站中的特定页面出现空白/白屏

[英]Selenium: A specific page in website is coming blank / white screen

Using selenium I can browse through the entire website except for the login screen on a specific website.使用 selenium,我可以浏览整个网站,但特定网站上的登录屏幕除外。 When I checked page source I see some js codes.当我检查页面源代码时,我看到了一些 js 代码。

Using a normal chrome browser I can access the expected login screen.使用普通的 chrome 浏览器,我可以访问预期的登录屏幕。 Can anyone help me to overcome this issue?谁能帮我解决这个问题? Thanks in advance.提前致谢。

Chances are that the website is detecting that you are using a bot and is blocking you from accessing its login screen for that reason.可能是该网站检测到您正在使用机器人并因此阻止您访问其登录屏幕。 I can't know for sure that this is the reason because I haven't seen your issue in person, but most good websites don't like having non-human users interact with their pages, and a login page is exactly the type of page that the website would block you from accessing.我不能肯定这是原因,因为我没有亲眼见过你的问题,但大多数好的网站不喜欢让非人类用户与其页面交互,而登录页面正是这种类型的该网站会阻止您访问的页面。

You can try to change some things to make Selenium less detectable by the website, but it's quite difficult and inconsistent at best.您可以尝试更改一些内容以减少网站对 Selenium 的检测,但这充其量是非常困难和不一致的。 You can find some more information about achieving this here , but I wouldn't expect too much.您可以在此处找到有关实现此目标的更多信息,但我不会期望太多。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM