Trupeer AI - Create professional product videos and guides
logo

JavaScript Snippets in Mobile App Authoring on KaneAI

Sep 29, 2025

55 Views
0 Comments
0 Reactions
Loading video...

JS Snippets in Mobile App Authoring in KaneAI

This document provides a comprehensive overview of integrating JavaScript snippets into mobile app testing using KaneAI. Learn how to enhance your test cases with custom snippets on both Android and iOS devices, offering increased control and flexibility beyond natural language capabilities.

Introduction

We are excited to announce the addition of JavaScript snippet support for mobile app testing on KaneAI, available on both Android and iOS devices. This enables the addition of custom snippets and actions, providing enhanced control over test cases that might not be feasible with natural language alone.

ScreenshotAdding JS Snippet

You can utilize a JS snippet for any custom actions and return a value which you want to extract from the custom snippet. A javascript output variable gets created once the JS snippet is executed.

Screenshot

Return variable

Return txnId from the custom snippet. Once you've added the next steps, the JS snippet will execute, returning a variable as a JavaScript output containing the desired value. The variable that is created by default is a local variable

Screenshot

U