0
$\begingroup$

I have successfully installed the chrome driver. By the way, StartWebSession["Chrome"] has an error. What is the reason?

enter image description here

enter image description here

$\endgroup$

1 Answer 1

2
$\begingroup$

If you are using a proxy, and the setting of the Mathematica is as follows, then this problem occurs.

In[1]:= $DefaultProxyRules

Out[1]= <|"UseProxy" -> Automatic, "HTTP" -> None, "HTTPS" -> None, 
 "FTP" -> None, "Socks" -> None|>

Changing to use no proxy in the current session and future sessions will fix the failure. Remember to restore the original value afterwards.

In[2]:= $DefaultProxyRules["UseProxy"] = None;
session = StartWebSession["Chrome"];
(*Your code here*)
DeleteObject[session];
$DefaultProxyRules["UseProxy"] = Automatic;

PS: If C:\Users\(*Your user name*) contains non-ASCII characters, other problems may occur.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.