$CurrentWebSession

$CurrentWebSession

gives the currently active web session used by WebExecute.

Details

Examples

Basic Examples  (1)

$CurrentWebSession is None initially:

Start a new web session:

$CurrentWebSession is the most recently started WebSessionObject:

WebExecute uses $CurrentWebSession when no other WebSessionObject is given:

Close the web session:

$CurrentWebSession is None again:

Introduced in 2019
 (12.0)