FuncUnit.static.open  function     

Opens a page. It will error if the page can't be opened before timeout.

Example

//a full url
S.open("http://localhost/app/app.html")

//from jmvc root (FuncUnit.jmvcRoot must be set) S.open("//app/app.html")

Paths in Selenium

Selenium runs the testing page from the filesystem and by default will look for pages on the filesystem unless provided a full url or information that can translate a partial path into a full url. FuncUnit uses FuncUnit.jmvcRoot and FuncUnit.href to translate partial paths.

path jmvcRoot href resulting url
//myapp/mypage.html null null file:///C:/development/cookbook/public/myapp/mypage.html
//myapp/mypage.html http://localhost/ http://localhost/myapp/mypage.html
http://foo.com http://foo.com
../mypage.html http://localhost/myapp/funcunit.html http://localhost/mypage.html
FuncUnit.open(path, callback, timeout) -> undefined
{String}

a full or partial url to open. If a partial is given,

{Function}
{Number}
{undefined}
© Jupiter IT - JavaScriptMVC Training and Support