sourcegraph / go-selenium

Selenium WebDriver client for Go
https://sourcegraph.com/github.com/sourcegraph/go-selenium
Other
367 stars 73 forks source link

Chrome Instance/Profile? #6

Open zero-master opened 10 years ago

zero-master commented 10 years ago

It supports chrome profile? Can you please provide a example, if it does.

sqs commented 10 years ago

It definitely supports using Chrome and I'm sure there is a way to specify a Chrome profile as an option. I will post an example if I have one in our source code. Also try searching for examples on sourcegraph.com.

Sent from my iPhone

On Mar 29, 2014, at 21:39, biggenius notifications@github.com wrote:

It supports chrome profile? Can you please provide a example, if it does.

— Reply to this email directly or view it on GitHub.

emicklei commented 8 years ago

I am using this driver http://chromedriver.storage.googleapis.com/index.html?path=2.21/ and set the capabilities like this

var caps = make(selenium.Capabilities)

func TestWithT(t *testing.T) {
    caps["browserName"] = "chrome"
    wd, _ := selenium.NewRemote(caps, "http://localhost:9515")
obonyojimmy commented 7 years ago

@emicklei did you achieve this ?

emicklei commented 7 years ago

yes, I did