code4craft / webmagic

A scalable web crawler framework for Java.
http://webmagic.io/
Apache License 2.0
11.44k stars 4.18k forks source link

Selenium drivers options issue #1177

Open nktltv opened 1 month ago

nktltv commented 1 month ago

Have the same issue both for Firefox Gecko driver and Chromedriver. Appears because of merging options with sCaps:

mDriver = new FirefoxDriver(new FirefoxOptions(sCaps));
mDriver = new ChromeDriver(new ChromeOptions().merge(sCaps));

image image

LyuXiaobu commented 1 month ago

您的邮件我已收到,祝你天天开心! 

nktltv commented 1 month ago

Moreover, it'd be really nice to be able to add custom Chrome configurations, at least make it run headless