// Licensed to the Software Freedom Conservancy (SFC) under one
// or more contributor license agreements.  See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership.  The SFC licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License.  You may obtain a copy of the License at
//
//   http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied.  See the License for the
// specific language governing permissions and limitations
// under the License.

package org.openqa.selenium.remote.html5;

import org.openqa.selenium.Capabilities;
import org.openqa.selenium.html5.WebStorage;
import org.openqa.selenium.remote.AugmenterProvider;
import org.openqa.selenium.remote.ExecuteMethod;

import java.util.function.Predicate;

import static org.openqa.selenium.remote.CapabilityType.SUPPORTS_WEB_STORAGE;

public class AddWebStorage implements AugmenterProvider<WebStorage> {

  @Override
  public Predicate<Capabilities> isApplicable() {
    return caps -> caps.is(SUPPORTS_WEB_STORAGE);
  }

  @Override
  public Class<WebStorage> getDescribedInterface() {
    return WebStorage.class;
  }

  @Override
  public WebStorage getImplementation(Capabilities capabilities, ExecuteMethod executeMethod) {
    return new RemoteWebStorage(executeMethod);
  }
}

@@ -979,16 +979,63 @@
 ovider;%0A
+import org.openqa.selenium.remote.BrowserType;%0A
 import o
@@ -1114,16 +1114,258 @@
 icate;%0A%0A
+import static org.openqa.selenium.remote.BrowserType.CHROME;%0Aimport static org.openqa.selenium.remote.BrowserType.EDGE;%0Aimport static org.openqa.selenium.remote.BrowserType.FIREFOX;%0Aimport static org.openqa.selenium.remote.BrowserType.OPERA;%0A
 import s
@@ -1586,16 +1586,204 @@
  caps -%3E
+%0A      FIREFOX.equals(caps.getBrowserName()) %7C%7C%0A      CHROME.equals(caps.getBrowserName()) %7C%7C%0A      EDGE.equals(caps.getBrowserName()) %7C%7C%0A      OPERA.equals(caps.getBrowserName()) %7C%7C%0A     
  caps.is

Extend the browsers that will be augmented to provide webstorage