Class AppiumW3CHttpCommandCodec

  • All Implemented Interfaces:
    org.openqa.selenium.remote.CommandCodec<org.openqa.selenium.remote.http.HttpRequest>

    public class AppiumW3CHttpCommandCodec
    extends org.openqa.selenium.remote.codec.w3c.W3CHttpCommandCodec
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.openqa.selenium.remote.codec.AbstractHttpCommandCodec

        org.openqa.selenium.remote.codec.AbstractHttpCommandCodec.CommandSpec
    • Constructor Summary

      Constructors 
      Constructor Description
      AppiumW3CHttpCommandCodec()
      This class overrides the built-in Selenium W3C commands codec, since the latter hardcodes many commands in Javascript, which does not work with Appium.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void alias​(java.lang.String commandName, java.lang.String isAnAliasFor)  
      protected java.util.Map<java.lang.String,​?> amendParameters​(java.lang.String name, java.util.Map<java.lang.String,​?> parameters)  
      • Methods inherited from class org.openqa.selenium.remote.codec.AbstractHttpCommandCodec

        decode, defineCommand, defineCommand, delete, encode, get, isSupported, post
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AppiumW3CHttpCommandCodec

        public AppiumW3CHttpCommandCodec()
        This class overrides the built-in Selenium W3C commands codec, since the latter hardcodes many commands in Javascript, which does not work with Appium. Check https://www.w3.org/TR/webdriver/ to see all available W3C endpoints.
    • Method Detail

      • alias

        public void alias​(java.lang.String commandName,
                          java.lang.String isAnAliasFor)
        Specified by:
        alias in interface org.openqa.selenium.remote.CommandCodec<org.openqa.selenium.remote.http.HttpRequest>
        Overrides:
        alias in class org.openqa.selenium.remote.codec.AbstractHttpCommandCodec
      • amendParameters

        protected java.util.Map<java.lang.String,​?> amendParameters​(java.lang.String name,
                                                                          java.util.Map<java.lang.String,​?> parameters)
        Overrides:
        amendParameters in class org.openqa.selenium.remote.codec.w3c.W3CHttpCommandCodec