• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • 校驗對象是否存在object.exist

    發表于:2008-09-19來源:作者:點擊數: 標簽:existObject校驗object對象
    除了用校驗點來確認相符的對象是否存在外,也可以用object的exist屬性來判斷對象的存在與否. 語法: Object. Exist ( [ Timeout ] ) 描述: Argument Type Descrīption Timeout Number Optional. The length of time to search for the object before returnin

    除了用校驗點來確認相符的對象是否存在外,也可以用object的exist屬性來判斷對象的存在與否.

    語法:Object.Exist([Timeout])

    描述:

    clearcase/" target="_blank" >cccccc>

    Argument

    Type

    Descrīption

    Timeout
    Number
    Optional. The length of time to search for the object before returning a True or False value.
    • If a timeout value is specified, QuickTest waits until it finds the object or until the timeout is reached.
    • If the value 0 is specified, the method returns the True or False value immediately.
    • If no value is specified, the value specified in the Test Settings dialog box for the Object Synchronization Timeout is used for tests. For business components, the pre-defined value of 20 seconds is used.
    For more information on the Object Synchronization Timeout, refer to the QuickTest Professional User's Guide.

    實例

    Dialog("Login").Activate
    Dialog("Login").WinEdit("Agent Name:").Set "training"
    Dialog("Login").WinEdit("Agent Name:").Type micTab
    if Dialog("Login").WinEdit("Password:").Exist Then
    Reporter.ReportEvent micDone,"存在","控件存在"
    Dialog("Login").WinEdit("Password:").SetSecure "429376f06698f739df8bb1c09eab3d78dee316f7"
    else
    Reporter.ReportEvent micDone,"不存在","控件不存在"
    End If

    原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>