LeanFT JavaScript code samples (in JavaScript)

This section includes:

Launch AUT code samples (in JavaScript) Launch a desktop application using different parameter combinations.
General samples (in JavaScript)

Demonstrate how to use waitUntil

Java code samples (in JavaScript)

Select Menu item that changes background color of AUT's main DesktopPane

Mobile code samples (in JavaScript)
  • Tap a button on an AUT and verify that the required string is displayed in an edit field.
  • Open Google in a WebView and perform a search
  • Lock a device based on the device's properties
  • List devices in Mobile Center lab
PowerBuilder code samples (in JavaScript)
  • Select a Tab from a TabControl
  • Set an item in a combo box
Report code samples (in JavaScript)

Access current report status during runtime

SAP GUI code samples (in JavaScript)
  • Opening for SAP GUI test script
  • Launch SAP GUI session instance and run transactions
  • OKCode and Window objects for running transaction
  • Activate item in tree node to navigate to table object, then set data for table cells
  • Set value for SAP GUI edit box
  • Select item in combo box
SAPUI5 code samples (in JavaScript)
  • Opening for SAPUI5 test script
  • Select and verify item from list
  • Delete item from list box object
Standard Windows code samples (in JavaScript)
  • Locate a Button Using Visual Relation Identification (VRI)

  • Low level keyboard and mouse operations

Terminal Emulator code samples (in JavaScript)
  • Wait for text in the emulator screen
  • Send a TE Key on the screen
Web code samples (in JavaScript)
  • Perform various steps in a flight booking website
  • One-liner examples of using expect
  • Test on an emulated device using Google Chrome's Device mode
WPF code samples (in JavaScript)
  • Var declarations for WPF test script
  • Locate toggle button and change state

See also: