代码之家  ›  专栏  ›  技术社区  ›  nishit dey

在运行时高亮显示QTP中的字段时拍摄快照或屏幕截图

  •  1
  • nishit dey  · 技术社区  · 7 年前

    systemUtil.Run "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe", "--ignore-certificate-errors -incognito " & "www.google.com"
    
    Browser("Google").Page("Google").WebEdit("Search").highlight
    
    While Browser("Google").Page("Google").WebEdit("Search").highlight = True
    Browser("Google").Page("Google").WebEdit("Search").CaptureBitmap("C:\Google.bmp")
    Wend
    

    谢谢,任何线索都会对我有帮助。

    1 回复  |  直到 7 年前
        1
  •  1
  •   Motti    7 年前

    两者都是 Highlight CaptureBitmap

    工具->选项->GUI测试->屏幕截图->保存电影以获取结果 .