LeanFT JavaScript code samples

This section includes:

Java code samples
  • Select Menu item that changes background color of AUT's main DesktopPane
Mobile code samples
  • 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
Report code samples
  • Access current report status during runtime
SAP GUI code samples
  • 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
  • Opening for SAPUI5 test script
  • Select and verify item from list
  • Delete item from list box object
Standard Windows code samples
  • Locate a Button Using Visual Relation Identification (VRI)

  • Low level keyboard and mouse operations

Terminal Emulator code samples
  • Wait for text in the emulator screen
  • Send a TE Key on the screen
Web code samples
  • 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
  • Var declarations for WPF test script
  • Locate toggle button and change state

See also: