简体   繁体   English

Pythom-Selenium 基于浏览器的登录弹出窗口

[英]Pythom-Selenium browser-based login popup

I would like to create an automated login for a website trough python + selenium + chromedriver.我想通过 python + selenium + chromedriver 为网站创建一个自动登录。 I saw tutorials on logging into embedded login elements using the element inspect etc, but this doesnt work here, since the login window is a popup and can't be inspected.我看到了使用元素检查等登录嵌入式登录元素的教程,但这在这里不起作用,因为登录 window 是一个弹出窗口,无法检查。

The popout from the browser I want to get my data in:我想在其中获取数据的浏览器弹出窗口:弹出

Please help me, thanks: (:请帮助我,谢谢:(:

On the image provided this looks to me like this is an htaccess 'popup'.在提供的图像上,这在我看来是一个 htaccess 的“弹出窗口”。

If so, you could put password and username in the url like:如果是这样,您可以在 url 中输入密码和用户名,例如:

https://username:password@my-awesome-url.com

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

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