如何在 python 中使用 selenium 填充此弹出窗口?右键单击时,未看到检查选项
How to fill in this popup using selenium in python? When right clicked, inspect option is not seen
下面是本地网站的截图。我尝试找到 XPath,切换 window 但无法完成用户输入。需要帮助。
[弹出图片]
那不是警报,它是浏览器级别 window 您无法从 selenium 处理它。您应该使用任何其他工具,如 silkuli、autoit 等
您也可以直接从 url 进行身份验证,以避免弹出 :
如果你的url像
将其更改为:
url = "https://username:password@yoururl.com"
driver.get(url)
下面是本地网站的截图。我尝试找到 XPath,切换 window 但无法完成用户输入。需要帮助。
[弹出图片]
那不是警报,它是浏览器级别 window 您无法从 selenium 处理它。您应该使用任何其他工具,如 silkuli、autoit 等
您也可以直接从 url 进行身份验证,以避免弹出 :
如果你的url像
将其更改为:
url = "https://username:password@yoururl.com"
driver.get(url)