Class AppiumCommandExecutor

  • All Implemented Interfaces:
    org.openqa.selenium.logging.NeedsLocalLogs, org.openqa.selenium.remote.CommandExecutor

    public class AppiumCommandExecutor
    extends org.openqa.selenium.remote.HttpCommandExecutor
    • Constructor Summary

      Constructors 
      Constructor Description
      AppiumCommandExecutor​(java.util.Map<java.lang.String,​org.openqa.selenium.remote.CommandInfo> additionalCommands, java.net.URL addressOfRemoteServer)  
      AppiumCommandExecutor​(java.util.Map<java.lang.String,​org.openqa.selenium.remote.CommandInfo> additionalCommands, java.net.URL addressOfRemoteServer, org.openqa.selenium.remote.http.HttpClient.Factory httpClientFactory)  
      AppiumCommandExecutor​(java.util.Map<java.lang.String,​org.openqa.selenium.remote.CommandInfo> additionalCommands, org.openqa.selenium.remote.service.DriverService service)  
      AppiumCommandExecutor​(java.util.Map<java.lang.String,​org.openqa.selenium.remote.CommandInfo> additionalCommands, org.openqa.selenium.remote.service.DriverService service, org.openqa.selenium.remote.http.HttpClient.Factory httpClientFactory)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.openqa.selenium.remote.Response execute​(org.openqa.selenium.remote.Command command)  
      protected java.util.Map<java.lang.String,​org.openqa.selenium.remote.CommandInfo> getAdditionalCommands()  
      protected org.openqa.selenium.remote.http.HttpClient getClient()  
      protected org.openqa.selenium.remote.CommandCodec<org.openqa.selenium.remote.http.HttpRequest> getCommandCodec()  
      protected <B> B getPrivateFieldValue​(java.lang.Class<? extends org.openqa.selenium.remote.CommandExecutor> cls, java.lang.String fieldName, java.lang.Class<B> fieldType)  
      void refreshAdditionalCommands()  
      protected void setCommandCodec​(org.openqa.selenium.remote.CommandCodec<org.openqa.selenium.remote.http.HttpRequest> newCodec)  
      protected void setPrivateFieldValue​(java.lang.Class<? extends org.openqa.selenium.remote.CommandExecutor> cls, java.lang.String fieldName, java.lang.Object newValue)  
      protected void setResponseCodec​(org.openqa.selenium.remote.ResponseCodec<org.openqa.selenium.remote.http.HttpResponse> codec)  
      • Methods inherited from class org.openqa.selenium.remote.HttpCommandExecutor

        defineCommand, getAddressOfRemoteServer, getDefaultClientFactory, setLocalLogs
      • Methods inherited from class java.lang.Object

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

      • AppiumCommandExecutor

        public AppiumCommandExecutor​(java.util.Map<java.lang.String,​org.openqa.selenium.remote.CommandInfo> additionalCommands,
                                     org.openqa.selenium.remote.service.DriverService service,
                                     org.openqa.selenium.remote.http.HttpClient.Factory httpClientFactory)
      • AppiumCommandExecutor

        public AppiumCommandExecutor​(java.util.Map<java.lang.String,​org.openqa.selenium.remote.CommandInfo> additionalCommands,
                                     java.net.URL addressOfRemoteServer,
                                     org.openqa.selenium.remote.http.HttpClient.Factory httpClientFactory)
      • AppiumCommandExecutor

        public AppiumCommandExecutor​(java.util.Map<java.lang.String,​org.openqa.selenium.remote.CommandInfo> additionalCommands,
                                     java.net.URL addressOfRemoteServer)
      • AppiumCommandExecutor

        public AppiumCommandExecutor​(java.util.Map<java.lang.String,​org.openqa.selenium.remote.CommandInfo> additionalCommands,
                                     org.openqa.selenium.remote.service.DriverService service)
    • Method Detail

      • getPrivateFieldValue

        protected <B> B getPrivateFieldValue​(java.lang.Class<? extends org.openqa.selenium.remote.CommandExecutor> cls,
                                             java.lang.String fieldName,
                                             java.lang.Class<B> fieldType)
      • setPrivateFieldValue

        protected void setPrivateFieldValue​(java.lang.Class<? extends org.openqa.selenium.remote.CommandExecutor> cls,
                                            java.lang.String fieldName,
                                            java.lang.Object newValue)
      • getAdditionalCommands

        protected java.util.Map<java.lang.String,​org.openqa.selenium.remote.CommandInfo> getAdditionalCommands()
      • getCommandCodec

        protected org.openqa.selenium.remote.CommandCodec<org.openqa.selenium.remote.http.HttpRequest> getCommandCodec()
      • setCommandCodec

        protected void setCommandCodec​(org.openqa.selenium.remote.CommandCodec<org.openqa.selenium.remote.http.HttpRequest> newCodec)
      • setResponseCodec

        protected void setResponseCodec​(org.openqa.selenium.remote.ResponseCodec<org.openqa.selenium.remote.http.HttpResponse> codec)
      • getClient

        protected org.openqa.selenium.remote.http.HttpClient getClient()
      • refreshAdditionalCommands

        public void refreshAdditionalCommands()
      • execute

        public org.openqa.selenium.remote.Response execute​(org.openqa.selenium.remote.Command command)
                                                    throws org.openqa.selenium.WebDriverException
        Specified by:
        execute in interface org.openqa.selenium.remote.CommandExecutor
        Overrides:
        execute in class org.openqa.selenium.remote.HttpCommandExecutor
        Throws:
        org.openqa.selenium.WebDriverException