I am trying to access WebStorage when running my tests, I am running tests locally using ChromeDriver and remotely in the pipeline using RemoteWebDriver.
I am unable to access WebStorage when using RemoteWebDriver
WebStorage webStorage = (RemoteWebStorage) new Augmenter().augment(driver);
I am getting:
org.openqa.selenium.remote.RemoteWebDriver cannot be cast to org.openqa.selenium.remote.html5.RemoteWebStorage