Hi Jonathan,
Am starting appium with command "node ."
Below is my code foe setting capabilities and starting the driver.
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("device", "Android");
capabilities.setCapability(CapabilityType.PLATFORM, "Mac");
capabilities.setCapability("app", "chrome");
WebDriver wd = new RemoteWebDriver(new URL("
http://localhost:4723/wd/hub"),
capabilities);
Below is the output from console:
info: Welcome to Appium v0.15.0 (REV a7b47d73a27074cc928cc5b325e5d4de1b6e5594)
info: Appium REST http interface listener started on
0.0.0.0:4723 info -
socket.io started
info: Not spawning instruments force-quit watcher since it only works on 10.9 and you have 10.8.5
debug: Appium request initiated at /wd/hub/session
debug: Request received with params: {"desiredCapabilities":{"platform":"Mac","app":"chrome","device":"Android"}}
info: Looks like we want chrome on android
info: Creating new appium session 015e8f7c-a20f-4c9b-98b7-801b97ac6e17
info: Ensuring Chromedriver exists
debug: Pushing unlock helper app to device...
debug: executing: adb install /Users/sam/Documents/Automation/Infrastructure/appium_software/appium/build/unlock_apk/unlock_apk-debug.apk
debug: executing: adb shell "dumpsys window"
info: Writing dumpsys output to /Users/sam/Documents/Automation/Infrastructure/appium_software/appium/.dumpsys.log
debug: Screen already unlocked, continuing.
info: Killing any old chromedrivers, running: ps -e | grep /Users/sam/Downloads/adt-bundle-mac-x86_64-20131030/sdk/platform-tools/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/sam/Downloads/adt-bundle-mac-x86_64-20131030/sdk/platform-tools/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 "2bffee8e4a151982e459f496dfa299ad"
info: Device launched! Ready for commands (will time out in 60secs)
info: Appium session started with sessionId 2bffee8e4a151982e459f496dfa299ad
POST /wd/hub/session 303 11793ms - 9b
debug: Appium request initiated at /wd/hub/session/2bffee8e4a151982e459f496dfa299ad
debug: Request received with params: {}
debug: Proxying command to
127.0.0.1:9515info: Making http request with opts: {"url":"
http://127.0.0.1:9515/wd/hub/session/2bffee8e4a151982e459f496dfa299ad","method":"GET"}
debug: Proxied response received with status 200: "{\"sessionId\":\"2bffee8e4a151982e459f496dfa299ad\",\"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/2bffee8e4a151982e459f496dfa299ad 200 4ms - 475b
It always launches the browser with this page.
Attaching the snapshot of the page.