9.13 - Test Designer 2.0 / Test Designer 3.0
Test Designer 2.0 / Test Designer 3.0 — Knowledge Base articles.
Legacy Test Designer 2.0 and 3.0 Reference
Contents Automating Multi-Factor Authentication Browser Versions How to automate the Scroll bar? ...
Automating Multi-Factor Authentication in Scenario Editor
Automating Multi-Factor Authentication in Scenario Editor Automate MFA only in approved test envi...
Browser Versions for Scenario Editor Testing
Recommended guidance Browser version alignment is important for reliable Scenario Editor playback...
Automate Scrolling in Scenario Editor
Automate Scrolling in Scenario Editor Use scrolling when the target element or content is not cur...
Find the Position of an HTML Element in Scenario Editor
Recommended guidance Use element position checks only when a Scenario Editor test truly needs lay...
Add Snapshot Evidence in Scenario Editor
Add Snapshot Evidence in Scenario Editor This page replaces old Designer 2.0 wording with current...
How to access and extract the content of the table
How can I wait for an object to disappear?
Problem I need to wait until an object disappears. Context My application has reports it generate...
Return the Current Date in a Specified Format
You can use the following function to return the current date in a specific format. The example b...
EnterKey Event in Sahi.
Below is the sample code snippet to work with EnterKey. var $storedVars = new Array(); _sahi.robo...
Designer: file:// Protocol Support
Issue Appvance Designer does not support automating pages opened directly using the file:// prot...
Date Functions and Formatting
Date Functions and Formatting in Scenario Editor Last reviewed: September 21, 2026 Use this artic...
Shadow DOM Settings for Scenario Editor Tests
Recommended guidance Shadow DOM can hide application elements behind component boundaries, which ...
Grant Microphone Permissions for Scenario Editor Tests
Use this article when a Scenario Editor test must interact with a browser workflow that requests ...
Capture the Current Application URL in Scenario Editor
Suppose you want to extract the URL of the application. Below is the method to extract it. _eval(...
How to get all values of dropdown
How to get hidden elements from DOM?
Steps: Open the application in the chrome browser Inspect the element Go to the console tab Paste...
How to Generate a Random Number Within a Given Range
You can use the following JavaScript expression to generate a random integer within a specified r...
Format Dates for Scenario Editor Tests
Ex: October 20, 2020 =today().format('MMMM d,Y') Add Functions and methods in JS DPL: Evaluate DP...
How to Data-Drive Xpaths
In some scenarios, an accessor’s XPath must be generated dynamically from test data. Scenario Edi...
Find Rows by Visual State in Scenario Editor
If the user wants to click a particular link for with Particular Style Ex: if the user wants to c...
Extract Numbers from a String in Scenario Editor
string.replace(/[^0-9.]/g, "") / string.replace(/[^a-zA-Z0-9.]/g, '') If you have any feedback on...
Check Whether a Scrollbar Has Reached the Bottom
When working with applications that contain scrollable grids or containers, you may need to scrol...
Generate a Three-Digit Random Number in Scenario Editor
Generate a Three-Digit Random Number in Scenario Editor Use generated numeric data when a Scenari...
Create Unique Strings in Scenario Editor Scripts
Use this article when a Scenario Editor script needs unique values for usernames, emails, order I...
Call JavaScript Functions from Scenario Editor
Use this article when a Scenario Editor test needs to call a custom JavaScript function from JS E...
Data-Drive Wait Values in Scenario Editor
Data-Drive Wait Values in Scenario Editor Use data-driven wait values only when different test da...
Validate Scrolling Reaches the Bottom of a Page
Validate Scrolling Reaches the Bottom of a Page Use this pattern when a Scenario Editor test must...
Generate a Three-Digit Random Number in Scenario Editor
What do we do when we encounter a special character and we have to assert it in a designer script...
Close Browser Windows in Scenario Editor
Close Browser Windows in Scenario Editor Use this guidance when a Scenario Editor test opens a se...
Manage Multiple DPL Data Sources in Scenario Editor
We can add multiple DPL files in Test Designer IDE. Once the user adds one of the DPL files in Da...
How to handle pop-ups in a website using designer?
The user will not be knowing when exactly the window might be popped up and has to handle the pop...
Validate Toast Messages in Scenario Editor
To hold toast message _eval("hold_toaster = setInterval(function() { $('.toast-message').mouseent...
Parameterize File Uploads in Scenario Editor
Question: How to parameterize files for the file upload feature? (Like we have a random set of fi...
Read and Write CSV Rows for Scenario Editor Data
var Account = readCSVListHashMap("{ds}/Account.csv"); var ini=0; var i=0; var $data = new Array()...
Normalize Extra Spaces in Scenario Editor Values
Text1.replace(/ {1,}/g," ") The g at the end of the RegExp means: global, ie match and replace a...
Retrieve Page Elements in Scenario Editor
Please use the following line of code in test designer IDE that will log all the elements on a gi...
Retrieve Numeric Values from Text
Suppose there is a pop-up like below which has a combination of text and Numbers and if we want t...
Extract Text Between Delimiters in Scenario Editor
var str="Cart saved as Quote No :14393430*"; var mySubString = str.substring(str.lastIndexOf(":")...
Legacy Sahi Logging Guidance
While I am running sahi/designer based vusers in Appvance IQ, sahi logs are taking up lot of disk...
Trim Text Values in Scenario Editor
For example: Need only " 14393430" from the string "Cart saved as Quote : 14393430" use the below...
Use Custom JavaScript Helpers in Scenario Editor
We are calling the JS function from the DS script and it returns the values after evaluation The ...
Validate Video Playback in Scenario Editor
_eval('document.getElementsByClassName("jw-video jw-reset")[0].currentTime') Look for the Video t...
Verify Checkbox Checked and Unchecked States
Use this article when a Scenario Editor validation needs to confirm whether a checkbox is selecte...
How to verify Sorting Functionality
You can use a JavaScript function to verify whether the values displayed in a table are sorted in...
Verify Disabled Buttons in Scenario Editor
To verify the disabled button where XML syntax is like below: <button type="button" disabled>Add ...
Include functionality in Appvance Designer
Latency in AssertExists.
We need to do load testing of our web page. I have a designer script that checks 30 components on...
Log Specific Errors During Scenario Execution
Use this article when a Scenario Editor test needs to capture targeted errors for debugging or re...
Pagination - How to search items in a page with multiple paginations
If you want to search for a specificstring, "Testappvance15860" for example, and if is not found ...
Self-Healing Questions for Scenario Editor
Use this article as a focused FAQ for Scenario Editor self-healing behavior, review expectations,...
Regular Expression in Appvance Designer.
Query: ...
Solutions to common Test Designer IDE Challenges
Group Step Statistics at a Higher Summary Level
Use this article when execution results need grouped step statistics for easier analysis and repo...
Test Designer 3: HTML5 and Web Application Compatibility
Test Designer 3 supports modern HTML5-based web applications and many of the technologies commonl...
Use Relative File Paths for Scenario Editor Uploads
setFile action in designer is used to set a file in the file input field. Form elements of type "...
Use Looping Patterns Safely in Scenario Editor
Attached example designer script will show how to use while loop in designer script. whileLoop.ds...
Using writeCSVFile API in Sahi.
Below code example shows how to use writeCSVFile API. _navigateTo("http://localhost:8080/Appvance...
Working Around Asynchronous Popups
Which JavaScript version is supported?
GraalVM JavaScript implements JavaScript as prescribed in the ECMAScript (ECMA-262) specification...
Browsers Not Listed When Clicking Record
Issue When you click Record in Test Designer, the expected browsers are not listed. Solution 1. V...
Handle Browser Location Permission Prompts
Handle Browser Location Permission Prompts Browser permission prompts can interrupt Scenario Edit...
Validate Downloaded Files in Scenario Editor
The solution to this is using a function known as getDownloadedFiles(). This particular function ...
Self-Healing Support in Scenario Editor
Self-Healing Support in Scenario Editor Self-healing can help Scenario Editor recover when a loca...
Authentication Mechanisms in AIQ Tests
Recommended guidance Design authentication in AIQ tests so credentials, sessions, tokens, and tes...
Handle Validation Failures and Continue Scenario Execution
Use this article when a Scenario Editor test should record a validation failure, continue safely,...
How can use a wild card when part of the identifier is always changing?
Question How can I use a wild card when part of the identifier is always changing? How can I find...
SmartTags: Using a custom getName Method
Maximizing the number of concurrent browsers
For performance testing, you can increase the number of concurrent Chrome browsers that can run o...
Understand Step Duration Calculations in Scenario Editor
Use this article to choose and interpret AIQ step-duration metrics such as DOM Complete, Server R...
Troubleshoot Iteration Summary Error Messages
Use this article when an AIQ execution shows an iteration-summary error and the team needs to ide...
Capture and Validate Tooltips in Scenario Editor
Use this article when a Scenario Editor test needs to trigger, capture, and validate tooltip text...
How to access two different application at the same time in a single script.
Navigate to any URL Eg: https://demosite.appvance.com/ Perform some steps Add new action called “...
How to find the X Y Coordinates
function alertMousePos(event) { alert( "X: " + event.clientX + " - Y: " + event.clientY); } docum...
How to perform Mouse Over action using Toggle Style API From Test Designer
We have the below two APIs to perform mouse over from Test Designer Mouse Over Toggle Style Mouse...
Verify Whether a User Exists in the Database
Use this article when a Scenario Editor or Service Suite validation needs to confirm whether a sp...
Validate Color of an Object
This is an example of a script that detects the color of a specific object and then uses conditio...
MFA Authentication Automation Guidance
Use this article to decide how AIQ tests should handle applications protected by multi-factor aut...
Create Multiple Orders and Write Order IDs to a Repository CSV
Use this article when a Scenario Editor test needs to create multiple records and persist generat...
Read and Write Data from a Downloaded XLSX File
Attaching the script along with the Screenshot to follow the steps ...