The constructor RemoteWebDriver(URL, DesiredCapabilities) is undefined.
Hello Mark,
Are you trying to use the below RemoteWebDriver Class constructor?
RemoteWebDriver(java.net.URL remoteAddress, Capabilities desiredCapabilities)
If so, we would suggest you to first try replacing the below line:
RemoteWebDriver driver =RemoteWebDriver(new URL("http://localhost:4444/wb/hub")
Hope this helps!