Close Browser
Finishes the browser manipulation.
Command availability: IBM RPA SaaS and IBM RPA on premises
Description
Terminates the browser instance manipulation using the instance's name.
Script syntax
IBM RPA's proprietary scripting language has a syntax similar to other programming languages. The script syntax defines the command's syntax in the script file. You can work with this syntax in IBM RPA Studio's Script mode.
webClose --name(String) [--leavebrowseropen(Boolean)]
Dependencies
Use the following commands to obtain the instance's name:
Input parameter
The following table displays the list of input parameters available in this command. In the table, you can see the parameter name when working in IBM RPA Studio's Script mode and its Designer mode equivalent label.
Designer mode label | Script mode name | Required | Accepted variable types | Description |
---|---|---|---|---|
Instance name | name |
Required |
Text |
Browser instance name. |
Keep browser open | leavebrowseropen |
Optional |
Boolean |
Keeps the browser open after ends the web manipulation. |
Example
Starts the browser, opens the IBM RPA documentation web site, then terminates the manipulation but keeps the browser open.
webStart --name browser --type "Chrome"
webNavigate --url "https://www.ibm.com/docs/en/rpa"
webClose --name browser --leavebrowseropen