Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(11109)

Issue 5575048: passing flags to firefox driver.

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 3 months ago by francois.reynaud
Modified:
12 years, 3 months ago
Reviewers:
Eran
Base URL:
http://selenium.googlecode.com/svn/trunk
Visibility:
Public.

Description

passing flags to FF via the capabilities object, similar to what chrome driver does with chrome.switches.

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -4 lines) Patch
java/client/src/org/openqa/selenium/firefox/FirefoxBinary.java View 6 chunks +41 lines, -2 lines 2 comments Download
java/client/src/org/openqa/selenium/firefox/FirefoxDriver.java View 2 chunks +7 lines, -2 lines 2 comments Download

Messages

Total messages: 2
francois.reynaud
12 years, 3 months ago (2012-01-24 14:51:13 UTC) #1
Eran
12 years, 3 months ago (2012-02-01 15:52:31 UTC) #2
http://codereview.appspot.com/5575048/diff/1/java/client/src/org/openqa/selen...
File java/client/src/org/openqa/selenium/firefox/FirefoxBinary.java (right):

http://codereview.appspot.com/5575048/diff/1/java/client/src/org/openqa/selen...
java/client/src/org/openqa/selenium/firefox/FirefoxBinary.java:95: 
Is there a reason to have the variable params, rather than just create  the new
CommandLine with allParams.toArray ?

http://codereview.appspot.com/5575048/diff/1/java/client/src/org/openqa/selen...
java/client/src/org/openqa/selenium/firefox/FirefoxBinary.java:300: 
The return is outside the else statement; you could drop the else statement
entirely.

http://codereview.appspot.com/5575048/diff/1/java/client/src/org/openqa/selen...
File java/client/src/org/openqa/selenium/firefox/FirefoxDriver.java (right):

http://codereview.appspot.com/5575048/diff/1/java/client/src/org/openqa/selen...
java/client/src/org/openqa/selenium/firefox/FirefoxDriver.java:65: public static
final String PROFILE = "firefox_profile";
Better name it firefox.arguments, or firefox_arguments. Also, update the wiki:
http://code.google.com/p/selenium/wiki/DesiredCapabilities

http://codereview.appspot.com/5575048/diff/1/java/client/src/org/openqa/selen...
java/client/src/org/openqa/selenium/firefox/FirefoxDriver.java:129:
FirefoxBinary binary = null;
As we discussed, this if statement is unnecessary - the default c'tor for
FirefoxBinary delegates to FirefoxBinary(null).
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b