WD
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Hybrid WD capabilities

Start window capabilities

There are two capabilities which define strategy what view will be current after session create:

  • "browserStartWindow" - HWD will search all existed views and attach to one with same title. Or if this capablities equals "*" then to first one.
  • "browserClass" - HWD will call ViewFactory and create window registered with specified classname.
  • "windowsize" - HWD will be try create window with given size, as a string (e.g. - "600, 600")
  • "windowposition" - HWD will be try start window with desired position, as a string (e.g. - "80, 60")
  • "maximize" - HWD will be try start window with maximum size
  • "reuseUI" - HWD checks this caps, if it is not specified, in case of attempt to create second session we get exception of "one session only",
    otherwise prev session will be terminated without closing windows and new session can reuse those windows

For browserClass customizer can define some generic classes. In example in default QT extension there is handling of "WidgetView" and "WebView" values for this capability. In this case ViewFactory will create first registered class of related view's type.

Both options can be passed in desired and required capabilities.