Table of Contents
The CF Engine is based on the Gecko browser which is core of the Firefox / Mozilla browsers (formerly Netscape). The CF Engine uses the "new" embedding API.
The CF Engine is implemented as class
cf_engine.h for details. This
class encapsulates a whole Gecko instance / Mozilla browser.
The constructor of
a flag which indicates whether the browser should be controlled in
a separate process or separate thread. We recommend that the
separate process (via fork) is used for normal production.
load_cf method must be used to load
a task file.
When a task is loaded, a task may be executed with the
methods. The latter does not return an error if a task given does not exist
(it is optional).
For loaded CF files, we may also run tests by invoking the
A browser instance is destroyed when the destructor of
CF_Engine is invoked.
The engine may throw exception
Refer to the
cfhello.cpp for a simple example
of the use of the API. The
cfrun.cpp might also