精品国产一级毛片大全,毛片一级在线,毛片免费观看的视频在线,午夜毛片福利

QTP面試題

  QTP面試題:如何用QTP打開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面試題:如何通過腳本來刪除cookies

  沒有一個(gè)現(xiàn)成的方法來刪除cookies, 所以你需要寫一個(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面試題目 下一篇:常見的servlet面試題

相關(guān)文章推薦

|||||