I created few methods :-
Method 1
Public Function FNC_ClearCookies()
Dim strstatuscheck :strstatuscheck=False
On error resume next
If Browser("CreationTime:="&data("para1")).exist(4) Then
Browser("CreationTime:="&data("para1")).DeleteCookies
strstatuscheck=True
End If
If err.number=0 and strstatuscheck=True Then
strstatuscheck="PASS"
funRaiseLog "Cookies deletion" ,"Cookies deleted successfully",
"PASS","Detail"
'' Do some reporting like Pass or fail
else
strstatuscheck="FAIL"
funRaiseLog "Cookies deletion" ,"there is some issues while
deleting the cookies","FAIL","Detail"
End If
Environment("Status")=Environment("Status")&","&strstatuscheck
On error goto 0
End Function
method 2:-
WebUtil.deletecookies ///Not working effective
method 3
Sendkeys...Not working effective
method 4
recording --Not possible on chrome setting window,
If you have some other solution the please let me know.
On Friday, November 11, 2016 at 9:02:36 AM UTC+1, Vikash Mishra wrote:
>
> How to clear Chrome cookies...
> Any idea how to clr chrome cookies..Options are available but its working
> for IE, FF, but not with Chrome.
> Using VB script or Wsh or Record or play ..
>
--
--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
---
You received this message because you are subscribed to the Google Groups "QTP
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.