WebSessionObject

WebSessionObject[]

represents a web browser session started by StartWebSession for use with WebExecute.

Details

  • WebSessionObject[][prop] returns a property of the external session.
  • The WebSessionObject defines the connection to a web driver, an external process for controlling a web browser.
  • The following properties are available:
  • "Browser"the web browser used by the WebSessionObject
    "SessionID"a unique identifier for this web session
    "URL"the URL used for web driver communication
    "Process"the process associated with the web driver
  • WebSessionObject[]["Properties"] gives a list of available properties.

Examples

open all close all

Basic Examples  (2)

Start an external session to get a WebSessionObject:

In[1]:=
Click for copyable input
Out[1]=

Delete the session with DeleteObject:

In[2]:=
Click for copyable input

Query properties from a WebSessionObject:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Delete the session object:

In[3]:=
Click for copyable input

Scope  (1)

Introduced in 2019
(12.0)