Issue 242 in robotframework-seleniumlibrary: Ability to provide additional options to selenium java process

1 view
Skip to first unread message

robotframework-...@googlecode.com

unread,
Jun 21, 2012, 9:47:04 AM6/21/12
to robotframework-se...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Enhancement Priority-Medium

New issue 242 by chmielss...@gmail.com: Ability to provide additional
options to selenium java process
http://code.google.com/p/robotframework-seleniumlibrary/issues/detail?id=242

Please add ability to provide custom options to java process which runs
Selenium Server.

Proposed patch - it uses environment variable. I've used SELENIUM_JAVA_OPTS
for environment variable name because JAVA_OPTS may be too generic.

Index: SeleniumLibrary/__init__.py
===================================================================
--- SeleniumLibrary/__init__.py (wersja 15373)
+++ SeleniumLibrary/__init__.py (kopia robocza)
@@ -82,7 +82,10 @@
if not jarpath:
jarpath = SELENIUM_SERVER_PATH
params = _add_default_user_extension(jarpath, list(params))
- java_opts = os.environ['SELENIUM_JAVA_OPTS'].split(' ')
+ if 'SELENIUM_JAVA_OPTS' in os.environ:
+ java_opts=os.environ['SELENIUM_JAVA_OPTS'].split(' ')
+ else:
+ java_opts=[]
return ['java'] + java_opts + [ '-jar', jarpath] +
_server_startup_params(params)

def _add_default_user_extension(jarpath, params):


Reply all
Reply to author
Forward
0 new messages