ericmckean / chromedriver

Automatically exported from code.google.com/p/chromedriver
0 stars 0 forks source link

Start chrome app not working #1013

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am not able to start my Chrome app with chromedriver:

I tried:

<code>Selenium::WebDriver.for :chrome, :args => ["--app-id= 
olddgoefnehjeogjhpcpolcnnifnglkp"]</code>

Steps to reproduce:

1. Go to the Chrome Web Store

2. Install an App

3. Go to preferences --> Extensions

4. Enable Developer-Modus

5. Now you can see the App-Id for eg: ID: olddgoefnehjeogjhpcpolcnnifnglkp

6. Try to start WebDriver with this option:
   <code>driver = Selenium::WebDriver.for :chrome, :args => ["--app-id=olddgoefnehjeogjhpcpolcnnifnglkp"]</code>

Here is a list of arguments that should be valid for chromedriver:
http://peter.sh/experiments/chromium-command-line-switches/

Thanks for your help!

Original issue reported on code.google.com by stadlere...@googlemail.com on 10 Jan 2015 at 7:21

GoogleCodeExporter commented 9 years ago
is this Ruby?

Original comment by andrewch...@chromium.org on 14 Jan 2015 at 2:25

GoogleCodeExporter commented 9 years ago
Yes it is Ruby! Sorry for the `<code>` with that i enclosed my Ruby code, i 
thought like this i could format it! Thanks for your help!

Original comment by stadlere...@googlemail.com on 14 Jan 2015 at 6:52

GoogleCodeExporter commented 9 years ago
can you provide more  information for us?
1.  OS/platform you run
2. chromedriver + chrome version 

Original comment by andrewch...@chromium.org on 15 Jan 2015 at 1:59

GoogleCodeExporter commented 9 years ago
Platform:   Ubuntu 14.04.1 LTS

Chromedriver:   2.13

selenium-webdriver:  2.44.0

Steps to reproduce:

irb(main):001:0> require "selenium-webdriver"

=> true

irb(main):002:0> driver = Selenium::WebDriver.for :chrome, :args => 
["--app-id=olddgoefnehjeogjhpcpolcnnifnglkp"]

=> #<Selenium::WebDriver::Driver:0x..f8fb770c452e73948 browser=:chrome>

Opens an blank page, The problem is here that the app is not installed

The command:

driver = Selenium::WebDriver.for :chrome, switches: 
["--load-extension=folder/where/app --app-id=olddgoefnehjeogjhpcpolcnnifnglkp"]

Installs the app correctly, but doesn't start it!

Thanks for your help!

Original comment by stadlere...@googlemail.com on 15 Jan 2015 at 9:15

GoogleCodeExporter commented 9 years ago

can you email  me your  manifest.json?

Original comment by andrewch...@chromium.org on 15 Jan 2015 at 8:39

GoogleCodeExporter commented 9 years ago
Hi, thanks again for you help! 
Because i don't know your exact email:

{
  "name": "GraySoft Device",
  "description": "A new way ...",
  "version": "0.1",
  "sockets": {
    "udp": {
      "send": "*:*",
      "bind": "*:*"
    }
  },
  "manifest_version": 2,
  "permissions": [
  {"fileSystem": ["write", "retainEntries", "directory"]},
   "http://*/*",
   "app.window",
   "unlimitedStorage",
   "storage",
   "system.display",
   "webview"
  ],
  "webview": {
          "partitions": [
            {
              "name": "static",
              "accessible_resources": ["webview.html", "js/jquery.js", "css/bootstrap.css", "fonts/1.woff", "css/pagination.js"]
            }
            ]
  },
  "file_handlers": {
    "text": {
      "types": [
          "text/*"
      ]
    }
  },
  "app": {
    "background": {
      "scripts": ["background.js"]
    }
  },
  "icons": { "16": "css/calculator-17.png", "128": "css/calculator-129.png" }
}

Original comment by stadlere...@googlemail.com on 15 Jan 2015 at 10:11

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
1. it could be our bug but not sure which part - chrome or chromedriver
2. please also describe what you try to accomplish to make sure my verification 
is correct.

Original comment by andrewch...@chromium.org on 16 Jan 2015 at 2:14

GoogleCodeExporter commented 9 years ago
Hi, 

My aim is to test my chrome app Behaviour Driven with Ruby and Cucumber.

Did you test it? Thanks a lot!

Original comment by stadlere...@googlemail.com on 16 Jan 2015 at 9:57

GoogleCodeExporter commented 9 years ago
my set up work
driver = Selenium::WebDriver.for :chromhes => 
%w[--user-data-dir=/usr/local/google/home/xxxxxx/.config/chrome-remote-desktop/c
hrome-profile  --app-id=olddgoefnehjeogjhpcpolcnnifnglkp]

Let me know if I can close the ticket.

Original comment by andrewch...@chromium.org on 20 Jan 2015 at 2:13

GoogleCodeExporter commented 9 years ago

Original comment by samu...@chromium.org on 21 Feb 2015 at 12:18

GoogleCodeExporter commented 9 years ago

Original comment by andrewch...@chromium.org on 9 Mar 2015 at 10:05