Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Selenium 无法使用包含“的”密码对URL进行身份验证@&引用;在硒/铬驱动中_Selenium_Selenium Webdriver_Basic Authentication_Selenium Remotedriver - Fatal编程技术网

Selenium 无法使用包含“的”密码对URL进行身份验证@&引用;在硒/铬驱动中

Selenium 无法使用包含“的”密码对URL进行身份验证@&引用;在硒/铬驱动中,selenium,selenium-webdriver,basic-authentication,selenium-remotedriver,Selenium,Selenium Webdriver,Basic Authentication,Selenium Remotedriver,我正在尝试在ChromeDriver上打开一个URL(适用于Chrome75.0.3770.142),身份验证的密码包含字符“@”,这是向URL添加用户名/密码的解决方案,例如:“甚至”“对我来说都不起作用(实际上,它只在第一次运行时起作用,然后在接下来的所有运行中,浏览器都会显示身份验证弹出窗口并请求会话凭据) 然后,我尝试使用包含以下内容的zip文件(credential.zip)向chrome添加一个基本身份验证扩展: manifest.json { "manifest_version

我正在尝试在ChromeDriver上打开一个URL(适用于Chrome75.0.3770.142),身份验证的密码包含字符“@”,这是向URL添加用户名/密码的解决方案,例如:“甚至”“对我来说都不起作用(实际上,它只在第一次运行时起作用,然后在接下来的所有运行中,浏览器都会显示身份验证弹出窗口并请求会话凭据)

然后,我尝试使用包含以下内容的zip文件(credential.zip)向chrome添加一个基本身份验证扩展:

manifest.json

{
  "manifest_version": 2,
  "name": "Authentication for Cartier PreProd",
  "version": "1.0.0",
  "permissions": ["<all_urls>", "webRequest", "webRequestBlocking"],
  "background": {
    "scripts": ["background.js"]
  }
}
有人知道如何解决这个问题吗?非常感谢

unknown error: failed to wait for extension background page to load: chrome-extension://knocbjhpojhilndiecljamdcccjifakk/_generated_background_page.html