Uses of Interface
com.microsoft.playwright.Page
-
Packages that use Page Package Description com.microsoft.playwright com.microsoft.playwright.assertions com.microsoft.playwright.impl.junit com.microsoft.playwright.options -
-
Uses of Page in com.microsoft.playwright
Fields in com.microsoft.playwright with type parameters of type Page Modifier and Type Field Description Predicate<Page>BrowserContext.WaitForPageOptions. predicateReceives thePageobject and resolves to truthy value when the waiting should resolve.Predicate<Page>Page.WaitForPopupOptions. predicateReceives thePageobject and resolves to truthy value when the waiting should resolve.Methods in com.microsoft.playwright that return Page Modifier and Type Method Description default PageBrowser. newPage()Creates a new page in a new browser context.PageBrowser. newPage(Browser.NewPageOptions options)Creates a new page in a new browser context.PageBrowserContext. newPage()Creates a new page in the browser context.PagePage. opener()Returns the opener for popup pages andnullfor others.PageConsoleMessage. page()The page that produced this console message, if any.PageDialog. page()The page that initiated this dialog, if available.PageDownload. page()Get the page that the download belongs to.PageFileChooser. page()Returns page this file chooser belongs to.PageFrame. page()Returns the page containing this frame.PageLocator. page()A page this locator belongs to.PageWebError. page()The page that produced this unhandled exception, if any.PagePage. waitForClose(Page.WaitForCloseOptions options, Runnable callback)Performs action and waits for the Page to close.default PagePage. waitForClose(Runnable callback)Performs action and waits for the Page to close.PageBrowserContext. waitForPage(BrowserContext.WaitForPageOptions options, Runnable callback)Performs action and waits for a newPageto be created in the context.default PageBrowserContext. waitForPage(Runnable callback)Performs action and waits for a newPageto be created in the context.PagePage. waitForPopup(Page.WaitForPopupOptions options, Runnable callback)Performs action and waits for a popupPage.default PagePage. waitForPopup(Runnable callback)Performs action and waits for a popupPage.Methods in com.microsoft.playwright that return types with arguments of type Page Modifier and Type Method Description List<Page>BrowserContext. backgroundPages()NOTE: Background pages are only supported on Chromium-based browsers.List<Page>BrowserContext. pages()Returns all open pages in the context.Methods in com.microsoft.playwright with parameters of type Page Modifier and Type Method Description CDPSessionBrowserContext. newCDPSession(Page page)NOTE: CDP sessions are only supported on Chromium-based browsers.default voidBrowser. startTracing(Page page)NOTE: This API controls Chromium Tracing which is a low-level chromium-specific debugging tool.voidBrowser. startTracing(Page page, Browser.StartTracingOptions options)NOTE: This API controls Chromium Tracing which is a low-level chromium-specific debugging tool.Method parameters in com.microsoft.playwright with type arguments of type Page Modifier and Type Method Description voidBrowserContext. offBackgroundPage(Consumer<Page> handler)Removes handler that was previously added withonBackgroundPage(handler).voidPage. offClose(Consumer<Page> handler)Removes handler that was previously added withonClose(handler).voidPage. offCrash(Consumer<Page> handler)Removes handler that was previously added withonCrash(handler).voidPage. offDOMContentLoaded(Consumer<Page> handler)Removes handler that was previously added withonDOMContentLoaded(handler).voidPage. offLoad(Consumer<Page> handler)Removes handler that was previously added withonLoad(handler).voidBrowserContext. offPage(Consumer<Page> handler)Removes handler that was previously added withonPage(handler).voidPage. offPopup(Consumer<Page> handler)Removes handler that was previously added withonPopup(handler).voidBrowserContext. onBackgroundPage(Consumer<Page> handler)NOTE: Only works with Chromium browser's persistent context.voidPage. onClose(Consumer<Page> handler)Emitted when the page closes.voidPage. onCrash(Consumer<Page> handler)Emitted when the page crashes.voidPage. onDOMContentLoaded(Consumer<Page> handler)Emitted when the JavaScriptDOMContentLoadedevent is dispatched.voidPage. onLoad(Consumer<Page> handler)Emitted when the JavaScriptloadevent is dispatched.voidBrowserContext. onPage(Consumer<Page> handler)The event is emitted when a new Page is created in the BrowserContext.voidPage. onPopup(Consumer<Page> handler)Emitted when the page opens a new tab or window.BrowserContext.WaitForPageOptionsBrowserContext.WaitForPageOptions. setPredicate(Predicate<Page> predicate)Receives thePageobject and resolves to truthy value when the waiting should resolve.Page.WaitForPopupOptionsPage.WaitForPopupOptions. setPredicate(Predicate<Page> predicate)Receives thePageobject and resolves to truthy value when the waiting should resolve. -
Uses of Page in com.microsoft.playwright.assertions
Methods in com.microsoft.playwright.assertions with parameters of type Page Modifier and Type Method Description static PageAssertionsPlaywrightAssertions. assertThat(Page page)Creates aPageAssertionsobject for the givenPage. -
Uses of Page in com.microsoft.playwright.impl.junit
Methods in com.microsoft.playwright.impl.junit that return Page Modifier and Type Method Description static PagePageExtension. getOrCreatePage(org.junit.jupiter.api.extension.ExtensionContext extensionContext)Returns the Page that belongs to the current test. -
Uses of Page in com.microsoft.playwright.options
Methods in com.microsoft.playwright.options that return Page Modifier and Type Method Description PageBindingCallback.Source. page()
-