WD
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
"URL post" for hybrid applications

For hybrid applications there can be several different view types. And each view type can support only specific content. In example web view supports html content, widget view supports UI forms.

HWD has next algorithm of loading new URL in current view:

  • check if current view supports URL.
  • if YES then apply loading new URL in current view and finish.
  • otherwise (NO case) - HWD core uses webdriver::ViewFactory::CreateViewForUrl() to create new view that can handle URL.
  • switch to new view and apply loading URL on it.
  • do some actions with old view

"some actions with old view" can be customized with webdriver::URLTransitionAction. Customizer implements own behavior and registers it in webdriver::ViewTransitionManager.