Adds a cookie to the current page.
Namespace: SeleniumAssembly: Selenium (in Selenium.dll) Version: 2.0.9.0 (2.0.9.0)
SyntaxDim instance As Manage
Dim name As String
Dim value As String
Dim domain As String
Dim path As String
Dim expiry As String
Dim secure As Boolean
Dim httpOnly As Boolean
instance.AddCookie(name, value, domain,
path, expiry, secure, httpOnly)
Parameters
- name
- Type: SystemString
- value
- Type: SystemString
- domain (Optional)
- Type: SystemString
- path (Optional)
- Type: SystemString
- expiry (Optional)
- Type: SystemString
- secure (Optional)
- Type: SystemBoolean
- httpOnly (Optional)
- Type: SystemBoolean
See Also