NiceTeen
NiceTeen
我在ubuntu中也出现这个问题,我注释掉无头模式并且下载了xmanager,使用x11转移,可以在有图形化的系统中看到服务器传过来的浏览器图像,现象是DrissionPage可以打开浏览器但是无法连接,我的代码如下: `co = ChromiumOptions() co.set_paths(browser_path=r'/opt/google/chrome/google-chrome') co.set_argument('--no-sandbox') # 无沙盒模式 # co.set_argument('--headless=new') # 无头 co.set_argument('--remote-debugging-port=9222') # 端口设置 co.set_argument('--disable-gpu') # 无gpu page = ChromiumPage(co) page.get("https://cn.bing.com/")` 浏览器路径设置没有问题并且跟--no-sandbox这个参数也无关,然后我更换了端口就发现可以正常连接打开网页了,修改后的代码如下: ` co = ChromiumOptions() co.set_paths(browser_path=r'/opt/google/chrome/google-chrome') co.set_argument('--no-sandbox') #...