QTP隱藏物件 WebUtil

2021-09-06 04:31:26 字數 577 閱讀 2530

出處:

我們只需要在專家檢視中輸入webutil再加乙個點,就是展開許多的方法,下圖就是webutil的所有方法

這個方法提供了對cookie以及證書等的一些操作,以下是tarun提供的一些方法說明大家可以看一下:

description :

deletecookie :

delete specified cookie for the specified domain 

deletecookies :

delete all cookies present on the local cache 

getcookies :

getcookies for a specified domain 

addcookie :

add specified cookie for a specified domain

QTP利用WebUtil刪除Cookies

刪除cookies 在自動化測試過程中有時候會需要使用到刪除cookies的情況,其實在qtp中提供了這樣乙個隱藏的方法。物件名 webutil 作為乙個qtp的保留物件,隨著qtp啟動時即已被例項化 webutil.deletecookies 由於它還是乙個com元件,這樣就可以自己直接來例項化這...

QTP如何檢查WEB物件是否隱藏

在web頁面中隱藏物件的3種方式 1 使用display 例如 this message is hidden using css display property 2 使用visibility 例如 this message is hidden using css visibility proper...

QTP內部物件

物件一覽,詳細參考qtp的幫助文件。crypt object datatable object description object dotnetfactory object dtparameter object dtsheet object environment object extern ob...