Skip to content

Commit 7c8e733

Browse files
authored
Update README.md
1 parent a9acb54 commit 7c8e733

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ $options->setExperimentalOption('prefs', $prefs);
111111

112112
//启动浏览器
113113
$caps = DesiredCapabilities::chrome();
114+
$caps ->setPlatform('Linux');
115+
//这是一个刚补的坑,此处必须setPlatform
116+
//否则将因`--disable-gpu`导致出现"Curl error thrown for http POST to /session with params"
117+
//通常这个错误是因为url为空,jar未启动,或chrome未启动.
114118

115119
//除了上方的代理方式还可以用这个
116120
$caps = [

0 commit comments

Comments
 (0)