/*
 * 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();


}

/*
 * 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 io.selendroid.android.internal.Dimension;
import io.selendroid.server.Session;
import org.json.JSONArray;
import org.json.JSONObject;

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

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();


}

Clean up imports. No logical change.