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

QTP面試題

  QTP面試題:如何用QTP打開(kāi)word并錄入內(nèi)容

  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面試題:如何通過(guò)腳本來(lái)刪除cookies

  沒(méi)有一個(gè)現(xiàn)成的方法來(lái)刪除cookies, 所以你需要寫(xiě)一個(gè)Shell Script去刪除你的Cookie所在目錄的所有文件。實(shí)現(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
上一篇:軟件測(cè)試QTP面試題目 下一篇:常見(jiàn)的servlet面試題

相關(guān)文章推薦

|||||