
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.
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.
Adding JS SnippetYou 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.

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
