This error message...
org.openqa.selenium.WebDriverException: unknown error: unable to discover open pages
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'WX-PC123456', ip: '192.168.56.1', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_211'
Driver info: driver.version: ChromeDriver
remote stacktrace: Backtrace:
Ordinal0 [0x013A0C83+1707139]
...implies that the ChromeDriver was unable to initiate/spawn a new Browsing Context i.e. Chrome Browser session.
It seems the issue is with ChromeDriver,s security feature of Sandboxing. To bypass this feature you can use the argument:
--no-sandbox
So your effective code block will be:
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…