synchronization, wait, notexist, not, exist check, checks, scriptless, script-less, scripted, step, view, stepview

Method NotExist

Checks/Waits for the object disappears in the AUT

Watch this video to learn how to use this method

Have a problem with playback?

Usage

Function NotExist( 
        Long MsTimeOut [Optional],
        Boolean Report [Optional]
)

Step

NotExist

45000

true

MsTimeOut

Report

Parameters

MsTimeOut (optional)

Type: Long

Default Value: Global timeout value (from ZAPTEST Options)

Optional timeout value in milliseconds

Report (optional)

Type: Boolean

Default Value: True

Generate report for this step

Returns

True if the object doesn’t exist or has disappeared during timeout; otherwise false

Example

VBScript

If Application("Demo").View("DemoView").Object("DemoObject").NotExist() Then
    ' Success, move on. Wait until second object disappears, but disable report generation and set timeout
    Application("Demo").View("DemoView").Object("DemoObject2").NotExist 15000, false
Else
    ' Generate error report
    Application("Demo").CustomReport false, "DemoObject still exists on the view", "Test failed"
End If

JavaScript

if (Application("Demo").View("DemoView").Object("DemoObject").NotExist()) {
    // Success, move on. Wait until second object disappears, but disable report generation and set timeout
    Application("Demo").View("DemoView").Object("DemoObject2").NotExist(15000, false);
} else {
    // Generate error report
    Application("Demo").CustomReport(false, "DemoObject still exists on the view", "Test failed");
}

Comment

Fill all parameters

Step

NotExist

1500

true

Comment

First parameter is optional. Leave it empty

Step

NotExist

true

Contact Us

Tower Place 100

3340 Peachtree Rd NE #1800 

Atlanta, GA 30326 USA

(404) 814-5227