16 Browser Utility Module

This chapter provides a complete listing and reference for the methods in the OpenScript BrowserService Class of Browser Module Application Programming Interface (API).

16.1 BrowserService API Reference

The following section provides an alphabetical listing of the methods in the OpenScript BrowserService API.

16.1.1 Alphabetical Command Listing

The following table lists the BrowserService API methods in alphabetical order.

Table 16-1 List of BrowserService Methods

Method Description

browser.setBrowserType

Sets the browser type.


The following sections provide detailed reference information for each method and enum in the BrowserService Class of Browser Module Application Programming Interface.


browser.setBrowserType

Sets the browser type.

Format

The browser.setBrowserType method has the following command format(s):

browser.setBrowserType(browserType);

Command Parameters

browserType

BrowserType enum specifying the supported browser types. For example, BrowserType.InternetExplorer.

Throws

BrowserException

if browser type cannot be changed.

Example

Sets the browser type.

//Specify Browser as Mozilla Firefox.
browser.setBrowserType(BrowserType.Firefox);
//Specify Browser as Internet Explorer.
browser.setBrowserType(BrowserType.InternetExplorer);