OS: OSX 10.9.1Android Emulator: 4.3 API Level 18
Appium: v0.15.0
Chrome driver: v2.9
DesiredCapabilities cap = new DesiredCapabilities();
// android simulator
cap.setCapability("device", "Android");
cap.setCapability("app", "chrome");
driver = new RemoteWebDriver(new URL("http://127.0.0.1:4723/wd/hub"), cap);
driver.get("http://www.google.com");
driver.get("http://www.bing.com");
driver.quit();
info: Welcome to Appium v0.15.0 (REV a7fc7c504d3b15f52d549f1da3da67634feb395e)
info: Appium REST http interface listener started on 127.0.0.1:4723
info - socket.io started
info: Spawning instruments force-quitting watcher process
info: [FQInstruments STDERR] Force quit unresponsive instruments v0.0.1
debug: Appium request initiated at /wd/hub/session
debug: Request received with params: {"desiredCapabilities":{"app":"chrome","device":"Android"}}
info: Looks like we want chrome on android
info: Creating new appium session 4092fea7-31eb-452f-a810-6074b7711c9d
info: Ensuring Chromedriver exists
debug: Pushing unlock helper app to device...
debug: executing: adb install "/Users/vid401t/Work/automation/mobile/appium/build/unlock_apk/unlock_apk-debug.apk"
debug: executing: adb shell "dumpsys window"
info: Writing dumpsys output to /Users/vid401t/Work/automation/mobile/appium/.dumpsys.log
debug: Screen already unlocked, continuing.
info: Killing any old chromedrivers, running: ps -e | grep /Users/vid401t/Work/automation/mobile/appium/build/chromedriver | grep -v grep |grep -e '--port=9515$' | awk '{ print $1 }' | xargs kill -15
info: Successfully cleaned up old chromedrivers
info: Spawning chromedriver with: /Users/vid401t/Work/automation/mobile/appium/build/chromedriver
info: [CHROMEDRIVER] Starting ChromeDriver (v2.9.248307) on port 9515
info: Creating Chrome session
info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session","method":"POST","json":{"sessionId":null,"desiredCapabilities":{"chromeOptions":{"androidPackage":"com.android.chrome"}}}}
info: Successfully started chrome session
info: Overriding session id with "a792450804fdf2bad37baee2bd467f35"
info: Device launched! Ready for commands (will time out in 60secs)
info: Appium session started with sessionId a792450804fdf2bad37baee2bd467f35
POST /wd/hub/session 303 15713ms - 9b
debug: 127.0.0.1 - - "POST /wd/hub/session HTTP/1.1" 303 9 "-" "-"
debug: Appium request initiated at /wd/hub/session/a792450804fdf2bad37baee2bd467f35
debug: Request received with params: {}
debug: Proxying command to 127.0.0.1:9515
info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/a792450804fdf2bad37baee2bd467f35","method":"GET"}
debug: Proxied response received with status 200: "{\"sessionId\":\"a792450804fdf2bad37baee2bd467f35\",\"status\":0,\"value\":{\"acceptSslCerts\":true,\"applicationCacheEnabled\":false,\"browserConnectionEnabled\":false,\"browserName\":\"chrome\",\"chrome\":{},\"cssSelectorsEnabled\":true,\"databaseEnabled\":false,\"handlesAlerts\":true,\"javascriptEnabled\":true,\"locationContextEnabled\":true,\"nativeEvents\":true,\"platform\":\"ANDROID\",\"rotatable\":false,\"takesHeapSnapshot\":true,\"takesScreenshot\":true,\"version\":\"32.0.1700.99\",\"webStorageEnabled\":true}}"
GET /wd/hub/session/a792450804fdf2bad37baee2bd467f35 200 5ms - 475b
debug: 127.0.0.1 - - "GET /wd/hub/session/a792450804fdf2bad37baee2bd467f35 HTTP/1.1" 200 475 "-" "-"
debug: Appium request initiated at /wd/hub/session/a792450804fdf2bad37baee2bd467f35/url
debug: Request received with params: {"url":"http://www.google.com"}
debug: Proxying command to 127.0.0.1:9515
info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/a792450804fdf2bad37baee2bd467f35/url","method":"POST","json":{"url":"http://www.google.com"}}
debug: Proxied response received with status 200: {"sessionId":"a792450804fdf2bad37baee2bd467f35","status":0,"value":null}
POST /wd/hub/session/a792450804fdf2bad37baee2bd467f35/url 200 11300ms - 85b
debug: 127.0.0.1 - - "POST /wd/hub/session/a792450804fdf2bad37baee2bd467f35/url HTTP/1.1" 200 85 "-" "-"
debug: Appium request initiated at /wd/hub/session/a792450804fdf2bad37baee2bd467f35
debug: Request received with params: {}
info: Shutting down appium session...
info: Killing chromedriver
info: Chromedriver exited with code null
info: (killed by signal SIGTERM)
info: [ADB] Getting connected devices...
debug: executing: adb devices
info: [ADB] 1 device(s) connected
debug: executing: adb shell "am force-stop com.android.chrome"
info: Cleaning up appium session
info: Responding to client with success: {"status":0,"value":null,"sessionId":"a792450804fdf2bad37baee2bd467f35"}
DELETE /wd/hub/session/a792450804fdf2bad37baee2bd467f35 200 2661ms - 85b
debug: 127.0.0.1 - - "DELETE /wd/hub/session/a792450804fdf2bad37baee2bd467f35 HTTP/1.1" 200 85 "-" "-"
$ adb shell
root@generic:/ # su
root@generic:/ # chmod 777 /data/local/
--
http://appium.io
---
You received this message because you are subscribed to the Google Groups "Appium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to appium-discus...@googlegroups.com.
Visit this group at http://groups.google.com/group/appium-discuss.
For more options, visit https://groups.google.com/groups/opt_out.
OS: OSX 10.9.1Android Emulator: 4.3 API Level 18
Appium: v0.15.0
Chrome driver: v2.9
driver.get("http://www.google.com");
try {Thread.sleep(20000);} catch (InterruptedException e) {e.printStackTrace();}
No error output is seen either on the java console in eclipse where I'm running the sample code.
Attaching a short .mov to showcase what I'm seeing (using the appium gui tool).
Any thoughts?
Thanks,
~Ravid
debug: Appium request initiated at /wd/hub/session/c0d2e39474acd06f45533c9d82ba289d/url
debug: Request received with params: {"url":"http://www.google.com"}
debug: Proxying command to 127.0.0.1:9515
info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/c0d2e39474acd06f45533c9d82ba289d/url","method":"POST","json":{"url":"http://www.google.com"}}
When the browser tried to navigate to bing as the next step, I see this:
debug: Appium request initiated at /wd/hub/session/c0d2e39474acd06f45533c9d82ba289d
debug: Request received with params: {}
info: Shutting down appium session...
Any ideas on why the params is empty? Could it be why the browser crashes b/c it doesn't understand how to handle empty params?
Just throwing ideas out.
Thanks,
~Ravid
Feb 12, 2014 4:35:34 PM org.apache.http.impl.client.DefaultRequestDirector tryExecute
INFO: I/O exception (org.apache.http.NoHttpResponseException) caught when processing request: The target server failed to respond
Feb 12, 2014 4:35:34 PM org.apache.http.impl.client.DefaultRequestDirector tryExecute
INFO: Retrying request
Exception in thread "main" org.openqa.selenium.remote.UnreachableBrowserException: Error communicating with the remote browser. It may have died.
Build info: version: '2.30.0', revision: 'dc1ef9c', time: '2013-02-19 00:15:27'
System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.1', java.version: '1.6.0_65'
Driver info: driver.version: RemoteWebDriver
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:548)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:569)
at org.openqa.selenium.remote.RemoteWebDriver.quit(RemoteWebDriver.java:423)
at iPhoneAutomationDemo.AppiumTester.run(AppiumTester.java:50)
at iPhoneAutomationDemo.AppiumTester.main(AppiumTester.java:23)
Caused by: org.apache.http.conn.HttpHostConnectException: Connection to http://localhost:4723 refused
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:190)
at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:151)
at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:125)
at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:701)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:517)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
at org.openqa.selenium.remote.HttpCommandExecutor.fallBackExecute(HttpCommandExecutor.java:332)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:311)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:527)
... 4 more
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:382)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:241)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:228)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:431)
at java.net.Socket.connect(Socket.java:527)
at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:127)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
... 12 more
public class AppiumTester {
public static void main(String[] args) throws MalformedURLException {
WebDriver driver = null;
DesiredCapabilities cap = new DesiredCapabilities();
cap.setCapability("device", "Android");
cap.setCapability("app", "chrome");
driver = new RemoteWebDriver(new URL("http://127.0.0.1:4723/wd/hub"), cap);
driver.get("http://www.google.com");
driver.get("http://www.bing.com");
driver.get("http://www.cnn.com");
driver.quit();
}
}
The environment again that I confirmed this working:
OS: OSX 10.9.1Android Emulator: 4.3 API Level 18
Appium: v0.15.0
Chrome driver: v2.9
... low and behold,
public class AppiumTester {
public static void main(String[] args) throws MalformedURLException {
WebDriver driver = null;
--
http://appium.io
---
You received this message because you are subscribed to a topic in the Google Groups "Appium-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/appium-discuss/IJGFz-MzfMY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to appium-discus...@googlegroups.com.