Differing S.open paths for envjs+selenium and direct browser testing?

19 views
Skip to first unread message

Arjun Sanyal

unread,
Oct 4, 2010, 2:11:36 PM10/4/10
to FuncUnit

It may be an issue with my configuration, but I wanted to know if
other people had the same issue. I need to
use different paths to S.open() based on environment the test is being
run in:

--
if (window.Envjs) { module("Login", { setup: function(){ S.open("//
login"); } }) } // envjs + selenium
else { module("Login", { setup: function(){ S.open("/
login"); } }) } // in the browser
--

Here I check that the test is being run in an envjs+selenium
environment and use the "//login", i.e. a relative path rooted at
jmvcRoot which is "http://localhost/" so it's: "http://localhost/
login".

Without the doubled forward slash the selenium firefox browser
"client" tries to open "file:///login".

Ideas?

Justin Meyer

unread,
Oct 4, 2010, 3:57:37 PM10/4/10
to func...@googlegroups.com
You can put the full path, including http

On Monday, October 4, 2010, Arjun Sanyal

--
Justin Meyer

Jupiter Consulting
\Development\Training\Support
847-924-6039
justin...@gmail.com

Reply all
Reply to author
Forward
0 new messages