Chrome Profile? #5

Closed
zero-master opened this Issue Mar 5, 2014 · 9 comments

Comments

Projects
None yet
4 participants

How can i start chrome with arguments ? or create a chrome profile?

Owner

tebeka commented Mar 5, 2014

IMO you currently can't, need to add this option.
Will try to look into it, but very busy moving to a new country these days.

Patches are always welcomed 😉

I hope Firefox profile works?

Owner

tebeka commented Mar 5, 2014

Sadly no as well, there a start at ff_profile. I've been away from Selenium for a while now, any help will be greatly appreciated.

Not sure, but why does desiredCapabilities don't work? It's not working for me.

caps := selenium.Capabilities{"browserName": "firefox", "takesScreenshot":false}

Doesn't work.

caps := selenium.Capabilities{"browserName": "firefox", "takesScreenshot":"false"}

Doesn't work.

Output of

`````` fmt.Println(wd.Capabilities())```

Still same

map[javascriptEnabled:true version:25.0.1 applicationCacheEnabled:true platform:LINUX browserName:firefox webStorageEnabled:true nativeEvents:false takesScreenshot:true locationContextEnabled:true cssSelectorsEnabled:true handlesAlerts:true acceptSslCerts:true rotatable:false webdriver.remote.sessionid:274e5f16-3c6c-4d55-8eab-7e7606e510b2 databaseEnabled:true browserConnectionEnabled:true]

http://code.google.com/p/selenium/wiki/JsonWireProtocol#Capabilities_JSON_Object

Owner

tebeka commented Mar 5, 2014

It can be a bug. As said I've been away from Selenium for a while now.

On Wed, Mar 5, 2014 at 4:19 PM, biggenius notifications@github.com wrote:

Not sure, but why does desiredCapabilities don't work? It's not working
for me.

http://code.google.com/p/selenium/wiki/JsonWireProtocol#Capabilities_JSON_Object

Reply to this email directly or view it on GitHubhttps://github.com/tebeka/selenium/issues/5#issuecomment-36746062
.

How to use Firefox profile?

Owner

tebeka commented Apr 28, 2015

Hi @zhongguo168a - this is currently not supported IIRC. It's been a while since I dealt with this package ...

@tebeka tebeka added a commit that referenced this issue Jun 16, 2015

@tebeka tebeka Merged in hnakamur/selenium/add_accept_header (pull request #2)
Add 'Accept' header for non redirect requests. (fixes issue #5)
fc9fc6c

@minusnine minusnine added a commit that referenced this issue Feb 16, 2017

@minusnine minusnine WIP: Add an easy way to set the Firefox profile
...as asked for in #5.

This hasn't been tested yet and should be assumed to not work.
3e2122b

@minusnine minusnine added a commit that referenced this issue Feb 16, 2017

@minusnine minusnine WIP: Add an easy way to set the Firefox profile
...as asked for in #5.

This hasn't been tested yet and should be assumed to not work.
309afad

@minusnine minusnine added a commit that referenced this issue Feb 18, 2017

@minusnine minusnine Add an easy way to set the Firefox profile
Fixes #5.
21cbe49

@minusnine minusnine added a commit that referenced this issue Feb 18, 2017

@minusnine minusnine Add an easy way to set the Firefox profile
Fixes #5.
5fbaafe

minusnine closed this in 6a68518 Feb 18, 2017

Collaborator

minusnine commented Feb 18, 2017

Whoops, I closed the wrong bug (even though this one went off to talk about Firefox profiles). Chrome profiles are next.

minusnine reopened this Feb 18, 2017

Collaborator

minusnine commented Feb 22, 2017

ChromeDriver doesn't permit setting the profile directly, but the chrome.Capabilities type now allows you to set preferences, local state, and extentions (among others) directly.

minusnine closed this Feb 22, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment