Not able to launch chrome via APPIUM

3,670 views
Skip to first unread message

Tejesh G

unread,
Nov 11, 2013, 7:29:23 AM11/11/13
to appium-...@googlegroups.com, Tejesh G
Hi All,

We are trying to perform mobile browser automation on ANDROID EMULATOR(Device-Nexus One) on Windows 7 Environment.
We have been reading in blogs that APPIUM Version 0.11.3 supports CHROME.
As per the blog information we have installed CHROME.apk Version 30(Chrome_30.0.1599.92.apk)
We have specified the chromedriver.exe  path in PATH variable.
The blog says that there is no need of specifying the "app-package" and "app-activity" when we try to launch a browser.
In spite of following the steps specified in blogs we are facing issues in running tests through APPIUM.
I get the following error when I try to execute the test:

debug: Appium request initiated at /wd/hub/session
debug: Request received with params: {"desiredCapabilities":{"platform":"WINDOWS
","app":"chrome","device":"Android","version":"4.2"}}

info: Looks like we want chrome on android
info: Creating new appium session c2990f8c-bed9-4831-9787-6f66c407cb0c
info: Ensuring Chromedriver exists
info: Cleaning up appium session
error: Failed to start an Appium session, err was: Error: Could not find chromed
river, is it on PATH?
info: Responding to client with error: {"status":33,"value":{"message":"A new se
ssion could not be created. (Original error: Could not find chromedriver, is it
on PATH?)","origValue":"Could not find chromedriver, is it on PATH?"},"sessionId
":null}
POST /wd/hub/session 500 195ms - 236b


Attached is the code which I'm trying to execute.
Would be great if any one can help in resolving the issue.


Regards
Tejesh

Chrometest.txt

Tejesh G

unread,
Nov 11, 2013, 7:43:50 AM11/11/13
to appium-...@googlegroups.com, Tejesh G
Also restarted Eclipse after adding chrome driver path to the PATH variable.

Aniket Gadre

unread,
Nov 11, 2013, 9:33:09 AM11/11/13
to Tejesh G, Tejesh G, appium-...@googlegroups.com

Could you plz tell the path you specified for chrome driver in $PATH variable?

--
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.

Jonathan Lipps

unread,
Nov 11, 2013, 11:30:53 AM11/11/13
to Tejesh G, appium-...@googlegroups.com, Tejesh G
I don't think chrome is supported on windows yet. It's probably a simple pull request that looks for chromedriver.exe as well as chromedriver.

--
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.
<Chrometest.txt>

Tejesh G

unread,
Nov 12, 2013, 12:06:47 AM11/12/13
to appium-...@googlegroups.com, Tejesh G, Tejesh G

Hi Aniket ,

 

Below is the path where I have specified chrome driver :

 D:\Appium\FirefoxAPK\chromedriver.exe\

 I have specified in the PATH of System variable.

 

Regards

Tejesh

Tejesh G

unread,
Nov 12, 2013, 12:10:01 AM11/12/13
to appium-...@googlegroups.com, Tejesh G, Tejesh G
Hi Jonathan

So how do we move forward with web browser automation on an android emulator.?
Please let us know how to move further. We are very eager to know and implement that.
I'm using Selenium webdriver  with Appium.


Regards
Tejesh

Aniket Gadre

unread,
Nov 12, 2013, 12:26:33 AM11/12/13
to Tejesh G, Tejesh G, appium-...@googlegroups.com
Generally you should provide path till folder in which exe is present. But as Jonathan has replied, he doubts if Chromedriver is yet implemented for Windows


On Tue, Nov 12, 2013 at 10:34 AM, Tejesh G <teje...@spanservices.com> wrote:

Hi ,

 

Below is the path where I have specified chrome driver :

 

D:\Appium\FirefoxAPK\chromedriver.exe\

 

I have specified in the PATH of System variable.

 

Regards

Tejesh

 

 

 

DISCLAIMER: This email message and all attachments are confidential and may contain information that is Privileged, Confidential or exempt from disclosure under applicable law. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this email is strictly prohibited.  If you have received this email in error, please notify us immediately by return email to mail...@spanservices.com and destroy the original message.  Opinions, conclusions and other information in this message that do not relate to the official of SPAN, shall be understood to be nether given nor endorsed by SPAN.




--
Best Regards,
Aniket Gadre
Test Automation Lead
Amdocs , Pune.
E-add: aniket...@amdocs.com

Tejesh G

unread,
Nov 12, 2013, 1:21:11 AM11/12/13
to appium-...@googlegroups.com, Tejesh G, Tejesh G
Ya,

If you any thoughts as to how to move further with web browser automation on mobile using appium ,please share them
Can we perform web browser autoamation, with the default web browser of android emulator??
Any ideas??

Aniket Gadre

unread,
Nov 12, 2013, 1:49:36 AM11/12/13
to Tejesh G, appium-...@googlegroups.com, Tejesh G
if you see the code in chrome.js , its something like

ChromeAndroid.prototype.ensureChromedriverExists = function(cb) {
  logger.info("Ensuring Chromedriver exists");
  var cmd = isWindows ? "where chromedriver.exe" : "which chromedriver";
  exec(cmd, function(err, stdout) {
    if (err) return cb(new Error("Could not find chromedriver, is it on PATH?"));
    this.chromedriver = stdout.trim();
    cb();
  }.bind(this));
};

Now if its windows, "where chromedriver.exe" should return the path something like this "C:\Amdocs\Automation_Frameworks\Selenium_WebDriver\Storage\Third_Party\chromedriver.exe"

and path I have added in %PATH% is ""C:\Amdocs\Automation_Frameworks\Selenium_WebDriver\Storage\Third_Party"


so its working perfectly fine on Windows! it should be able to find your chromedriver

Rajeswari Thangavelu

unread,
Feb 7, 2014, 3:22:42 PM2/7/14
to appium-...@googlegroups.com, Tejesh G, Tejesh G
Hi,

May I know the version of Appium you have used? I used 0.13. And set the path variable point to location of chromedriver.exe.

The problem didn't solve.

Jonathan,

Do you have any other workaround for this?

Thanks,
Raji

lurita eady

unread,
Feb 11, 2014, 6:11:10 AM2/11/14
to appium-...@googlegroups.com, Tejesh G, Tejesh G
Hi I just successfully launched chrome from my android phn. Took me about a wk to figure this out..as I was trying to use I.E..and that is not supported yet. I also encountered the path error. I downloaded the latest chromedriver and then added it to the same folder as my nodejs file..since this path was already setup in my system variables. I also went back and added my location to my IE driver which was in a folder I created- C:\Selenium\. This resolved the 1st issue mentioned above. Then I set my capabilites...and executed successfully. I am using Appium for Windows (AppiumForWindows-0.14.2) with c#.net and the latest chrome driver. Hope this helps.
 

DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.SetCapability("device", "android");
capabilities.SetCapability("platform", "windows");
capabilities.SetCapability("app", "chrome");

RemoteWebDriver driver1 = new RemoteWebDriver(new Uri("http://127.0.0.1:4723/wd/hub"), capabilities);

driver1.Navigate().GoToUrl(http://google.com);


Khushboo Kaur

unread,
Feb 11, 2014, 7:04:33 AM2/11/14
to appium-...@googlegroups.com, Tejesh G, Tejesh G
Hi Lurita,

Do you mean to say that you have automated chrome browser on android through latest chrome Driver which is I think 2.9. What is the chrome apk version on your mobile. Also why you have set the path of IE driver?
Please confirm the version of chrome driver and chrome apk. 

lurita eady

unread,
Feb 11, 2014, 7:35:51 AM2/11/14
to appium-...@googlegroups.com, Tejesh G, Tejesh G
yes. I have successfully launched chrome from my android device. You dont have to pass the apk info to launch it...I set the path of IE driver only because I was creating a demo..and another step I used...I launched it on IE..on the computer...but that can actually be removed now. Here are the versions I used:
on phone - Chrome version 32.0.1700.99
        on computer - ChromeDriver 2.9  downloaded from here: http://chromedriver.storage.googleapis.com/index.html  - Note..this link will only show a blank page if opened in I.E. had to open in Firefox to see links.

lurita eady

unread,
Feb 11, 2014, 7:37:41 AM2/11/14
to appium-...@googlegroups.com, Tejesh G, Tejesh G
and btw...I have Windows 7 as my OS on my computer

Khushboo Kaur

unread,
Feb 13, 2014, 2:31:09 AM2/13/14
to appium-...@googlegroups.com
Yes this combination is working: ChromeDriver 2.9.248315 and Chrome APK version 32.0.1700.99 .
Thanks.

hari haran

unread,
Feb 13, 2014, 5:39:59 AM2/13/14
to appium-...@googlegroups.com
Hi,
 
I have tried this combination after installation of Chrome APK version 32.0.1700.99 in emulator, when manally click on chrome browser it displays with "Unfortunately Chrome has Stopped". Please suggest below are configuration i used,
 
 
ChromeDriver 2.9.248315
Chrome APK version 32.0.1700.99
Android 4.3 API Level 18
 
 
Regards,
Hariharan.

Khushboo Kaur

unread,
Feb 13, 2014, 6:48:21 AM2/13/14
to appium-...@googlegroups.com
This probably means chrome application crashed on the Emulator. You tried doing it again? Also prior to creating AVD, select 'Use GPU Host'.

Aniket Gadre

unread,
Feb 13, 2014, 7:05:57 AM2/13/14
to Khushboo Kaur, appium-...@googlegroups.com
Use GenyMotion...its the best Android emulator

Best Regards,
Aniket Gadre
 
Programming can be fun, so can cryptography; however they should not be combined.


On Thu, Feb 13, 2014 at 5:18 PM, Khushboo Kaur <khushb...@3pillarglobal.com> wrote:
This probably means chrome application crashed on the Emulator. You tried doing it again? Also prior to creating AVD, select 'Use GPU Host'.

--

Khushboo Kaur

unread,
Feb 13, 2014, 7:16:53 AM2/13/14
to appium-...@googlegroups.com
For Chrome driver,we need ARM based emulators. I am not sure but I think Genymotion are intel x86 based emulators. I have tried automating Genymotion emulators, but I could not do so.

Aniket Gadre

unread,
Feb 13, 2014, 7:22:38 AM2/13/14
to Khushboo Kaur, appium-...@googlegroups.com
I run chromedriver on GenyMotion

Best Regards,
Aniket Gadre
 
Programming can be fun, so can cryptography; however they should not be combined.


On Thu, Feb 13, 2014 at 5:46 PM, Khushboo Kaur <khushb...@3pillarglobal.com> wrote:
For Chrome driver,we need ARM based emulators. I am not sure but I think Genymotion are intel x86 based emulators. I have tried automating Genymotion emulators, but I could not do so.

--

hari haran

unread,
Feb 13, 2014, 10:38:26 PM2/13/14
to appium-...@googlegroups.com, Khushboo Kaur
Hi Khushboo/Aniket,
 
I have created AVD with  'Use GPU Host' and successfuly install chrome apk 32. But when i launch browser for google page it shows blank page not connected with network wherears android browser works!!!
 
Regards,
Hariharan.

hari haran

unread,
Feb 16, 2014, 9:45:46 PM2/16/14
to appium-...@googlegroups.com, Khushboo Kaur
Hi,
 
Could you please suggest cause of issue.
 
Regards,
Hariharan.

Aniket Gadre

unread,
Feb 16, 2014, 9:50:58 PM2/16/14
to hari haran, Khushboo Kaur, appium-...@googlegroups.com

I am not sure from where you guys are getting chrome apks.. To get the genuine app... Install gapps on your emulator... This might install chrome too.  If not you can access google play on emulator and install genuine chrome

I have also tried searching for apks directly and installing on my genymotion emulator.. It didnt work

Apks you are downloading from thirdparty websites may be altered and may not be original one provided by Google

--

amit....@3pillarglobal.com

unread,
Feb 25, 2014, 11:00:21 AM2/25/14
to appium-...@googlegroups.com, Khushboo Kaur
Hi Hari,

Select "Use Host GPU" option instead of Snapshot then your problem will be resolved.

Sonam Vigga

unread,
Feb 28, 2014, 2:15:52 AM2/28/14
to appium-...@googlegroups.com, Tejesh G
Hi All,

I have installed chrome apk on my emulator Nexus one.. but its getting crashed.Can anyone let me know steps for doing web testing using appium
Thanks in Advance!!

Regards
Sonam



On Monday, November 11, 2013 5:59:23 PM UTC+5:30, Tejesh G wrote:

Ayan Modak

unread,
May 7, 2014, 8:46:27 AM5/7/14
to appium-...@googlegroups.com, Tejesh G
Hi Can you please give me the blog url?


On Monday, November 11, 2013 5:59:23 PM UTC+5:30, Tejesh G wrote:

Ayan Modak

unread,
May 7, 2014, 8:57:21 AM5/7/14
to appium-...@googlegroups.com, Tejesh G
I am getting the below error

org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: You need to pass in the app-activity desired capability or server param) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 1.00 seconds
Build info: version: '2.40.0', revision: '4c5c0568b004f67810ee41c459549aa4b09c651e', time: '2014-02-19 11:13:01'
System info: host: 'AYANM', ip: '192.168.13.86', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_13'
Driver info: org.openqa.selenium.remote.RemoteWebDriver
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:193)
    at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:145)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:573)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:218)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:113)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)



   info  - socket.io started

debug: Appium request initiated at /wd/hub/session
debug: Request received with params: {"desiredCapabilities":{"platform":"WINDOWS","app":"chrome","device":"Android","version":"4.4"}}
info: Got configuration error, not starting session

info: Cleaning up appium session
error: Failed to start an Appium session, err was: Error: You need to pass in the app-activity desired capability or server param
info: Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: You need to pass in the app-activity desired capability or server param)","
origValue":"You need to pass in the app-activity desired capability or server param"},"sessionId":null}
POST /wd/hub/session 500 11ms - 292b

Isaac Murchie

unread,
May 8, 2014, 1:24:20 PM5/8/14
to Ayan Modak, appium-...@googlegroups.com
Ayan,

What version of Appium server are you running? What happens when you set the 'app-activity' desired capability, as the log states you should?

Cheers,
Isaac.


--
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/d/optout.

Ayan Modak

unread,
May 9, 2014, 3:03:45 AM5/9/14
to Isaac Murchie, appium-...@googlegroups.com
Hi Isaac,

I am trying to launch chrome browser on android 4.4. As stated in the blog for this app-activity is not required. Please hav a look into below code. I am running appium 0.11.4.

public void firstTest() throws MalformedURLException {

        DesiredCapabilities capabilities = new DesiredCapabilities();
        capabilities.setCapability(CapabilityType.VERSION, "4.4");
        capabilities.setCapability(CapabilityType.PLATFORM, "WINDOWS");
        capabilities.setCapability("device", "Android");
        capabilities.setCapability("app", "chrome");
        WebDriver driver = new RemoteWebDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);
        driver.get("http://google.com");
    }

Isaac Murchie

unread,
May 9, 2014, 12:09:58 PM5/9/14
to Ayan Modak, appium-...@googlegroups.com
My first suggestion would be to upgrade to 0.18.2, if not to 1.0. The six months since the release of 0.11.4 have brought a lot to the table.

Barring that, try setting the 'app-activity' capability, as the logs say you need to.


Reply all
Reply to author
Forward
0 new messages