/*
 * Copyright 2012-2013 eBay Software Foundation and selendroid committers.
 * 
 * Licensed 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 io.selendroid.server.model;

import java.util.List;
import java.util.Set;

import io.selendroid.android.WindowType;
import io.selendroid.android.internal.Dimension;
import org.json.JSONArray;
import org.json.JSONObject;
import io.selendroid.server.Session;

public interface SelendroidDriver {

  public AndroidElement findElement(By by);

  public List<AndroidElement> findElements(By by);

  public String getCurrentUrl();

  public Session getSession();

  public JSONObject getSessionCapabilities(String sessionId);

  public Object getWindowSource();

  public String initializeSession(JSONObject desiredCapabilities);

  public void stopSession();

  public void switchDriverMode(String type);

  public byte[] takeScreenshot();

  public Keyboard getKeyboard();

  public String getTitle();

  public void get(String url);

  public TouchScreen getTouch();

  public void addCookie(String url, Cookie cookie);

  public void deleteCookie(String url);

  public void deleteNamedCookie(String url, String name);

  public Set<Cookie> getCookies(String url);

  public Object executeScript(String script, JSONArray args);

  public Object executeScript(String script, Object... args);

  public String getWindowHandle();

  public Set<String> getWindowHandles();

  public Dimension getWindowSize();


}

@@ -667,95 +667,8 @@
 l;%0A%0A
-import java.util.List;%0Aimport java.util.Set;%0A%0Aimport io.selendroid.android.WindowType;%0A
 impo
@@ -712,16 +712,53 @@
 ension;%0A
+import io.selendroid.server.Session;%0A
 import o
@@ -808,43 +808,52 @@
 ct;%0A
+%0A
 import 
-io.selendroid.server.Session
+java.util.List;%0Aimport java.util.Set
 ;%0A%0Ap

Clean up imports. No logical change.