OpenText™ Functional Testing for Developers JavaScript SDK

Web

Web namespace

Classes

Element
ElementTO
TreeViewTO
AgGrid
AgGridTO
Area
AreaTO
AudioControl
AudioControlTO
Browser
BrowserFilter
BrowserTO
Button
ButtonTO
CheckBox
CheckBoxTO
Edit
EditTO
Event
FileField
FileFieldTO
Frame
FrameTO
Image
ImageTO
Link
LinkTO
ListBox
ListBoxTO
Menu
MenuTO
MouseEvent
NumericField
NumericFieldTO
Page
PageTO
RadioGroup
RadioGroupTO
Slider
SliderTO
Table
TableCell
TableTO
TabStrip
TabStripTO
TreeView
UiGrid
UiGridTO
VideoControl
VideoControlTO

Type Definitions

BrowserType

Supported browser types.
Type:
  • Object
Properties:
Name Type Description
Chrome string Google Chrome
IE string Microsoft Internet Explorer
Firefox string Mozilla Firefox
Edge string Microsoft Edge
Safari string Safari browser
PhantomJS string The PhantomJS headless browser.
Note: to use PhantomJS you must install it in a specific location.
For details, see https://admhelp.microfocus.com/uftdev/en/latest/HelpCenter/Content/HowTo/WebApps.htm#setupPhantomJS
MobileCenterBrowser string The Functional Testing Lab and Web browser
HeadlessChrome string Headless Chrome
EdgeChromium string Edge Chromium (deprecated)

BrowserVersion

Type:
  • Object
Properties:
Name Type Description
type string The type of browser.
version string The browser version.

DialogButton

Possible dialog button types
Type:
  • Object
Properties:
Name Type Description
ok string The ok button type.
cancel string The cancel button type.

FullScreenMode

Values for the FullScreen(mode) parameter.
Type:
  • Object
Properties:
Name Type Description
off string Exits Full Screen mode. Does nothing if the browser is already in normal mode.
on string Sets the browser to full screen mode. Does nothing if the browser is already in full screen mode.
toggle string Switches a full screen browser to normal mode or a normal mode browser to full screen.

ImageTypes

Supported image types. Used for conversions of image type.
Type:
  • Object
Properties:
Name Type Description
normal string A normal image without any special meaning.
button string An image contained in an input element (input type="image").
clientImageMap string An image that is part of a client-side image map (relevant for area objects).
clientAndServerImageMap string An image that is both a client image map and a server image map.
serverImageMap string An image defined as a server-side image map.
link string An image contained in an anchor element.