Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/366.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/google-chrome/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
Java 铬/铬合金特殊型材无头_Java_Google Chrome_Selenium_Ubuntu_Headless - Fatal编程技术网

Java 铬/铬合金特殊型材无头

Java 铬/铬合金特殊型材无头,java,google-chrome,selenium,ubuntu,headless,Java,Google Chrome,Selenium,Ubuntu,Headless,我在Chrome/Chrome的headless上有问题,因为我不能在headless模式下使用Chrome或Chrome的特定配置文件。在使用geckodriver的firefox中,我没有这个问题,但我辞职了,因为geckodriver使用了很多ram。在GoogleChrome/chrome中,Headless模式是使用默认配置文件,但当我尝试用命令检查xpath在哪里时chrome://version,只有在tmp文件夹中,所以每次我用headless打开我的项目时,它都是新的随机配置文

我在Chrome/Chrome的headless上有问题,因为我不能在headless模式下使用Chrome或Chrome的特定配置文件。在使用geckodriver的firefox中,我没有这个问题,但我辞职了,因为geckodriver使用了很多ram。在GoogleChrome/chrome中,Headless模式是使用默认配置文件,但当我尝试用命令检查xpath在哪里时chrome://version,只有在tmp文件夹中,所以每次我用headless打开我的项目时,它都是新的随机配置文件,但我必须在我的项目特定cookie中使用,并保存页面。如何使用特定配置文件或默认配置文件,但不在tmp文件夹中?我查看了这个网站上的每一个主题,但仍然没有找到这个问题的答案。我正在使用Ubuntu18.04和JavaSelenium