Tabs & Windows

New Tab

Creates a browser tab.

Creates a browser tab.

Creates a new browser tab. If there is a specified URL, that page will be opened. Otherwise, the new tab will be a blank page.

Examples

GPAL Fluent: High-level fluent C# API

browser.NewTab(string url)

MagicHelper: MagicHelper utility library

GPAL.MagicHelper.NewTab(); GPAL.MagicHelper.NewTab(string url);

Puppeteer Client: Puppeteer-style C# client

browser.PuppeteerClient.NewTab().Execute(); browser.PuppeteerClient.NewTab(string url).Execute();

Puppeteer Communicator: Low-level communicator

await browser.PuppeteerCommunicator.NewTab(GPALUrl url, string sessionId);

REST Client: Direct REST/HTTP client

GPAL.OttoMagicClient.WithEndpoint(ApiEndpoint.NewTab).Execute(); GPAL.OttoMagicClient.WithEndpoint(ApiEndpoint.NewTab).WithUrl(string url).Execute();