Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/360.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
Python linux中的无头chrome身份验证和ssl错误_Python_Linux_Selenium_Ssl_Selenium Chromedriver - Fatal编程技术网

Python linux中的无头chrome身份验证和ssl错误

Python linux中的无头chrome身份验证和ssl错误,python,linux,selenium,ssl,selenium-chromedriver,Python,Linux,Selenium,Ssl,Selenium Chromedriver,我正试图访问我们公司的内部网站,在RedhatLinux上使用无头chrome来截图 为此,我使用Python、Selenium、Poppler和Chromedriver 它在Windows上工作得很好,但在没有选项的非gui linux上工作得很好。添加_参数('--ignore certificate errors')返回的白色空白页,但使用('ignore-certificate-errors')选项添加了错误。 如果您有任何建议,可以选择忽略证书错误 options.add_argum

我正试图访问我们公司的内部网站,在RedhatLinux上使用无头chrome来截图

为此,我使用Python、Selenium、Poppler和Chromedriver

它在Windows上工作得很好,但在没有选项的非gui linux上工作得很好。添加_参数('--ignore certificate errors')返回的白色空白页,但使用('ignore-certificate-errors')选项添加了错误。


如果您有任何建议,可以选择忽略证书错误

options.add_argument('--ignore-certificate-errors')

您没有添加
--

忽略证书错误的选项是

options.add_argument('--ignore-certificate-errors')

您没有添加
--

我可以通过下面的操作实现我想要的

First I made connection to let it cache my cookie
driver.get("https://username:password@mywebsite")
and then do it again
URL = 'username:password@mywebsite

我能够通过下面的工作实现我想要的

First I made connection to let it cache my cookie
driver.get("https://username:password@mywebsite")
and then do it again
URL = 'username:password@mywebsite

该错误来自服务器,而不是客户端。该消息告诉您需要登录或以其他方式验证才能访问该页面。那么该页面的身份验证要求是什么呢?嘿,它使用的是基本身份验证。是否仍然需要使用selenium进行身份验证?该错误来自服务器,而不是客户端。该消息告诉您需要登录或以其他方式验证才能访问该页面。那么该页面的身份验证要求是什么呢?嘿,它使用的是基本身份验证。是否仍然需要使用selenium进行身份验证?