-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use firefox options for capabilities as well. #136
Use firefox options for capabilities as well. #136
Conversation
Hi,
Sorry, I cannot understand an above meaning. |
Pros:
Cons:
|
OK, sorry, it is one more question. |
Yes, WebDriver is RemoteWebDriver.
Sample output here:
|
I would like to introduce the feature which you expect. |
I see. I'll wait for your implementaiton :) |
I refactored as follows:
I pushed it as "koichirok-use-firefox-options-for-capabilities" branch. |
I've tested this branch and it works fine, Thx! % java -jar selenese-runner.jar -d remote --remote-browser firefox --profile-dir gnclz1c0.default --remote-url http://172.31.10.198:4444/wd/hub/ Test.html [2014-11-17 12:49:11.185] [INFO] Start: Selenese Runner 1.7.0-SNAPSHOT [2014-11-17 12:49:12.032] [INFO] Remote browser: firefox [2014-11-17 12:49:12.120] [INFO] Firefox profile directory: gnclz1c0.default [2014-11-17 12:49:12.939] [INFO] Convert Firefox profile to JSON: 1207076 bytes [2014-11-17 12:49:12.940] [INFO] Remote URL: http://172.31.10.198:4444/wd/hub/ [2014-11-17 12:49:33.567] [INFO] Session ID: 593b3d6e-f0fd-4f2c-8543-625871625bb1 [2014-11-17 12:49:33.568] [INFO] Initial window size: system default [2014-11-17 12:49:33.568] [INFO] Initialized: RemoteWebDriver [2014-11-17 12:49:36.837] [INFO] Start: TestSuite[Test] (Test.html) [2014-11-17 12:49:36.892] [INFO] Start: TestCase[Test] (Test.html) [2014-11-17 12:49:36.892] [INFO] baseURL: https://www.********.com [2014-11-17 12:49:36.916] [INFO] Command#1: open("/") [2014-11-17 12:49:39.181] [INFO] - [Success] URL: [https://www.********.com/****] / Titl e: [********] [2014-11-17 12:49:39.181] [INFO] - Cookie: BIGipServerAG_PRODUCTION_8080=[2825983916.36895.0000] (domain=www.********.com, path=/, expire=*) [2014-11-17 12:49:39.182] [INFO] - Cookie: COOKIE_SUPPORT=[true] (domain=www.********.com, path=/, expire=2015-10-24 13:02:22) [2014-11-17 12:49:39.182] [INFO] - Cookie: GUEST_LANGUAGE_ID=[ja_JP] (domain=www.********.com, path=/, expire=2015-11-17 12:49:51) [2014-11-17 12:49:39.182] [INFO] - Cookie: JSESSIONID=[6E1BB28FC28A5D4C984082FD54A97736] (domain=www.********.com, path=/, expire=*) [2014-11-17 12:49:39.182] [INFO] Command#2: pause("3000") [2014-11-17 12:49:42.280] [INFO] - [Success] [2014-11-17 12:49:42.284] [INFO] End(5.388sec): TestCase[Test] (Test.html) [2014-11-17 12:49:42.284] [INFO] End(0.000sec): TestSuite[Test] (Test.html) [2014-11-17 12:49:42.494] [INFO] Quit: RemoteWebDriver |
firefox specific options (--profile, --profire-dir and --firefox) are can be used for RemoteWebDriver
(See https://code.google.com/p/selenium/wiki/DesiredCapabilities#Firefox_specific ),
I moved creating Firefox profile code from FirefoxDriverFactory to DriverOptinos and added
code to set firefox capabilities to DriverOptions.
This change makes selenese-runner to set firefox capabilities always when firefox options are specified,
but I believe this makes any negative effect since all of the web drivers other than FirefoxDriver may
ignore firefox capabilities.