Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 19 lines (16 sloc) 0.99 kb
<cfcomponent extends="mxunit.framework.TestCase">
<cffunction name="beforeTests" output="false" access="public" returntype="any" hint="">
<!--- NOTE: instantiating selenium will also start the Java server if it was not already running --->
<cfset selenium = createObject("component", "cfselenium.selenium").init() />
<!--- we rely on subclasses to specify browser URL OR override this and create a variable named selenium
subclasses can optionally specify a browserCommand to override the default Firefox browser --->
<!--- This can be done in beforeTests OR setup --->
<cfparam name="browserCommand" default="*firefox" />
<cfset selenium.start(browserUrl,browserCommand) />
</cffunction>
<cffunction name="afterTests" output="false" access="public" returntype="any" hint="">
<cfset selenium.stop() />
<!--- NOTE: this will only stop the Java server if it was started by this test case --->
<cfset selenium.stopServer() />
</cffunction>
</cfcomponent>
Jump to Line
Something went wrong with that request. Please try again.