Tabs & Windows

Close Browser

Closes every window the browser has. An extension runs inside the browser, so it cannot end the process the way an outside driver can: the nearest thing is closing all the windows, which is what the browser treats as being asked to quit. The acknowledgement is sent before the windows go, because the last window closing ends the extension too and there would be nothing left to answer with. No parameters.

NOTE

This is what Close resolves to on OttoMagic. A workflow calls browser.Close and does not need to know which engine is underneath.

Examples

GPAL Fluent: High-level fluent C# API

//The argument says whether to kill any web drivers still running. The endpoint underneath is the same either way.

browser.Close(true);

MagicHelper: MagicHelper utility library

browser.MagicHelper.CloseBrowser();

REST Client: Direct REST/HTTP client

browser.OttoMagicClient.WithEndpoint(ApiEndpoint.CloseBrowser).Execute();

💬 Ask GPAL