ChromeDriver with RemoteWebDriver and one user profile

179 views
Skip to first unread message

TheX

unread,
Feb 21, 2012, 10:53:58 AM2/21/12
to seleniu...@googlegroups.com
Hello.

i need to run parallel tests in chromedriver.
but if i login in first browser then all others browser will automatic logout.
i try to add same user profile to all browsers but now works only one browser, others stay for about:blank page.

capability.SetCapability("chrome.switches", new List<string>{"--user-data-dir=c:\\WebDriver"});

how to run parallel test in Chrome with same coockies?

Jeff Clarity QA

unread,
Feb 22, 2012, 4:08:38 PM2/22/12
to Selenium Users
I run my tests in parallel by opening more than one command window and
specifying a different port.

webdriver:
driver = Selenium::WebDriver.for(:remote, :url => "http://
127.0.0.1:4444/wd/hub", :desired_capabilities => :chrome)

port 4444 is default but you can specify by using -port switch

i.e. start selenium server specifying the port
java -jar selenium-server-standalone-2.8.0.jar -port 3030
driver = Selenium::WebDriver.for(:remote, :url => "http://
127.0.0.1:3030/wd/hub", :desired_capabilities => :chrome)

This may or may not solve the cookie problem but it will definitely
run in parallel.

TheX

unread,
Feb 22, 2012, 4:33:17 PM2/22/12
to seleniu...@googlegroups.com
yeah. i know how to start test in parallel mode ant it works fine but trouble is to use same cookies for chrome browser or to use one profile for all borwsers.
Reply all
Reply to author
Forward
0 new messages