成年人在线观看视频免费,国产第2页,人人狠狠综合久久亚洲婷婷,精品伊人久久

QTP面試題

  QTP面試題:如何用QTP打開word并錄入內容

  Set wobj = CreateObject(”Word.Application”)

  wobj.Visible = True

  Set Doc = wobj.Documents.Add

  Set Range = Doc.Paragraphs.Add.Range

  Range.Text = “The first Paragraph”

  Doc.Paragraphs.Add

  Set Range2 = Doc.Paragraphs.Add.Range

  Range2.Text = “The second Paragraph”

  QTP面試題:如何通過腳本來刪除cookies

  沒有一個現(xiàn)成的方法來刪除cookies, 所以你需要寫一個Shell Script去刪除你的Cookie所在目錄的所有文件。實現(xiàn)的代碼如下:

  Const COOKIES = &H21&

  Set objShell = CreateObject(“Shell.Application”)

  Set objFolder = objShell.Namespace(COOKIES)

  Set objFolderItem = objFolder.Self

  strPath = objFolderItem.Path & “\*.*”

  Set objFSO = CreateObject(“Scripting.FileSystemObject”)

  objFSO.DeleteFile(strPath)

本文已影響6827
上一篇:軟件測試QTP面試題目 下一篇:常見的servlet面試題

相關文章推薦

|||||