Skip to content

ActivatePage.cs

Avrigeanu Laurian edited this page Apr 11, 2023 · 1 revision

ActivatePage(IPage page) Method

Activates a given page by bringing it to the front.

Parameters

  • page : An IPage object representing the page to activate.

Returns

An IPage object representing the activated page.

Remarks

This method activates the specified page by bringing it to the front of the browser window. It does so by calling the BringToFrontAsync() method of the provided IPage object. This method blocks until the page has been successfully brought to the front.

ActivatePage(int index) Method

Activates a page at the specified index by bringing it to the front.

Parameters

  • index : An int representing the index of the page to activate.

Returns

An IPage object representing the activated page.

Remarks

This method activates the page at the specified index by bringing it to the front of the browser window. It does so by calling the ActivatePage(IPage page) method with the IPage object obtained by calling GetPageByIndex(index). This method blocks until the page has been successfully brought to the front.

Clone this wiki locally