To enable such a kind of recording simply select both Web and UIAutomation libraries.

As a result Main.js file should have the following array of libraries defined

g_load_libraries=["Web", "UIAutomation"]