Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package io.appium.java_client;
 
 import  org.openqa.selenium.remote.ExecuteMethod;
 import  org.openqa.selenium.remote.Response;
 
 import java.util.Map;
 
 public class AppiumExecutionMethod implements ExecuteMethod {
  private final AppiumDriver<?> driver;
  public AppiumExecutionMethod(AppiumDriver<?> driver) {
    this. = driver;
  }
  public Object execute(String commandNameMap<String, ?> parameters) {
    Response response;
    if (parameters == null || parameters.isEmpty()) {
      response = .execute(commandName, ImmutableMap.<StringObject>of());
    } else {
      response = .execute(commandNameparameters);
    }
    return response.getValue();
  }
New to GrepCode? Check out our FAQ X