-
Notifications
You must be signed in to change notification settings - Fork 0
RefreshPage.cs
Reloads the specified page.
-
page
: AnIPage
object representing the page to refresh.
An IPage
object representing the refreshed page.
This method refreshes the specified page
object by calling the ReloadAsync
method. This method is asynchronous and the Wait
method is used to block until the page has been refreshed before returning. Finally, the method returns the refreshed page
object.
This method depends on the ReloadAsync
method, which is an asynchronous method defined in the Page
class of the Microsoft.Playwright
namespace. It also depends on the IPage
object, which is an interface defined in the Microsoft.Playwright
namespace.
Reloads a page by its index in the browser's list of pages.
-
index
: Anint
value representing the index of the page to refresh.
An IPage
object representing the refreshed page.
This method retrieves the page at the specified index using the GetPageByIndex
method, and then calls the RefreshPage
method with the retrieved page
object as a parameter. Finally, the method returns the refreshed page
object.
This method depends on the GetPageByIndex
method, which retrieves a page by its index, and the RefreshPage
method, which refreshes a page by its IPage
object.