arnoudbuzing / webtools

A Wolfram Language package which automates interactions with web browsers
Other
33 stars 6 forks source link

Suggestion: verify connection to browser after InstallWebUnit[] #9

Open ssmit1986 opened 6 years ago

ssmit1986 commented 6 years ago

Today I found an issue where WebUnit would throw mysterious errors. After some digging, it turned out that the system running WebUnit did not have permissions to use the command line, so it could never launch the web driver.

In the code of InstallWebUnit[] there is the line Quiet[URLFetch[webDriverBaseURL<>"/status"]] that checks if the process is already running. Maybe this check should be performed again after launching the driver to check if it really did launch.

arnoudbuzing commented 6 years ago

Thanks. I will rework this functionality. Also note that I renamed the package to WebTools to avoid problems with the upcoming 11.3 release (which includes a modified copy of WebUnit)

arnoudbuzing commented 6 years ago

Please note that I had to rename the package from WebUnit to WebTools (to avoid a compatibility issue with an upcoming release of 11.3)

This also means you have to use InstallWebTools instead of InstallWebUnit

wjxway commented 6 years ago

So in Mathematica 11.3 we would have current WebUnit(or WebTools) functionalities embedded?

arnoudbuzing commented 6 years ago

11.3 has a modified version of WebUnit included, yes. This is why I need to rename this repo (they are going to diverge). But in 11.3 the syntax is different, so you have to decide what will work for you:

https://reference.wolframcloud.com/cloudplatform/ref/externalevaluationsystem/WebDriverChrome.html

arnoudbuzing commented 6 years ago

Use this:

PacletInstall["https://github.com/arnoudbuzing/webtools/releases/download/v0.1.0/WebTools-0.1.0.paclet"]

if you want to continue this paclet