({{, (RefLink[WebSessionObject, paclet:ref/WebSessionObject])[…] 
represents a web browser session started by (RefLink[StartWebSession, paclet:ref/StartWebSession]) for use with (RefLink[WebExecute, paclet:ref/WebExecute]).}})

OpenersNotesSection(Spacer1)Details

(RefLink[WebSessionObject, paclet:ref/WebSessionObject])[…][prop] returns a property of the external session.

The (RefLink[WebSessionObject, paclet:ref/WebSessionObject]) defines the connection to a web driver, an external process for controlling a web browser.

The following properties are available:

(RefLink[WebSessionObject, paclet:ref/WebSessionObject])[…]["Properties"] gives a list of available properties.

OpenersPrimaryExamplesSection(Spacer1)Examples  (3)

OpenersExampleSection0(Spacer1)Basic Examples  (2)

Start an external session to get a (RefLink[WebSessionObject, paclet:ref/WebSessionObject]):

session=StartWebSession["Chrome"]

Delete the session with (RefLink[DeleteObject, paclet:ref/DeleteObject]):

DeleteObject[session]

Query properties from a (RefLink[WebSessionObject, paclet:ref/WebSessionObject]):

session=StartWebSession["Firefox"]

session["Properties"]

Delete the session object:

DeleteObject[session]

OpenersExampleSection1(Spacer1)Scope  (1)

Start a session:

session=StartWebSession["Chrome"]

List all possible properties:

session["Properties"]

Make a dataset of all (RefLink[WebSessionObject, paclet:ref/WebSessionObject]) properties:

Dataset@AssociationMap[session,session["Properties"]]

Delete the session object:

DeleteObject[session]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[$CurrentWebSession, paclet:ref/$CurrentWebSession])  ▪  (RefLink[StartWebSession, paclet:ref/StartWebSession])  ▪  (RefLink[WebExecute, paclet:ref/WebExecute])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Web Browser Automation, paclet:guide/WebBrowserAutomation])}, {▪(RefLinkPlain[Web Operations, paclet:guide/WebOperations])}, {▪(RefLinkPlain[HTTP Requests & Responses, paclet:guide/HTTPRequestsAndResponses])}})}})