Class Augmenter

java.lang.Object
org.openqa.selenium.remote.Augmenter

@Beta public class Augmenter extends Object
Enhance the interfaces implemented by an instance of the WebDriver based on the returned Capabilities of the driver. Note: this class is still experimental. Use at your own risk.
  • Constructor Details

    • Augmenter

      public Augmenter()
  • Method Details

    • addDriverAugmentation

      public <X> Augmenter addDriverAugmentation(AugmenterProvider<X> provider)
    • addDriverAugmentation

      public <X> Augmenter addDriverAugmentation(String capabilityName, Class<X> implementThis, BiFunction<org.openqa.selenium.Capabilities,ExecuteMethod,X> usingThis)
    • addDriverAugmentation

      public <X> Augmenter addDriverAugmentation(Predicate<org.openqa.selenium.Capabilities> whenThisMatches, Class<X> implementThis, BiFunction<org.openqa.selenium.Capabilities,ExecuteMethod,X> usingThis)
    • augment

      public org.openqa.selenium.WebDriver augment(org.openqa.selenium.WebDriver driver)
      Enhance the interfaces implemented by this instance of WebDriver if that instance is a RemoteWebDriver. The WebDriver that is returned may well be a dynamic proxy. You cannot rely on the concrete implementing class to remain constant.
      Parameters:
      driver - The driver to enhance
      Returns:
      A class implementing the described interfaces.