Uses of Interface
com.microsoft.playwright.Page
Packages that use Page
Package
Description
-
Uses of Page in com.microsoft.playwright
Fields in com.microsoft.playwright with type parameters of type PageModifier and TypeFieldDescriptionBrowserContext.WaitForPageOptions.predicateReceives thePageobject and resolves to truthy value when the waiting should resolve.Page.WaitForPopupOptions.predicateReceives thePageobject and resolves to truthy value when the waiting should resolve.Methods in com.microsoft.playwright that return PageModifier and TypeMethodDescriptiondefault PageBrowser.newPage()Creates a new page in a new browser context.Browser.newPage(Browser.NewPageOptions options) Creates a new page in a new browser context.BrowserContext.newPage()Creates a new page in the browser context.Page.opener()Returns the opener for popup pages andnullfor others.ConsoleMessage.page()The page that produced this console message, if any.Dialog.page()The page that initiated this dialog, if available.Download.page()Get the page that the download belongs to.FileChooser.page()Returns page this file chooser belongs to.Frame.page()Returns the page containing this frame.Locator.page()A page this locator belongs to.WebError.page()The page that produced this unhandled exception, if any.Page.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.BrowserContext.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.Page.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 PageMethods in com.microsoft.playwright with parameters of type PageModifier and TypeMethodDescriptionBrowserContext.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 PageModifier and TypeMethodDescriptionvoidRemoves handler that was previously added withonClose(handler).voidRemoves handler that was previously added withonCrash(handler).voidPage.offDOMContentLoaded(Consumer<Page> handler) Removes handler that was previously added withonDOMContentLoaded(handler).voidRemoves handler that was previously added withonLoad(handler).voidRemoves handler that was previously added withonPage(handler).voidRemoves handler that was previously added withonPopup(handler).voidEmitted when the page closes.voidEmitted when the page crashes.voidPage.onDOMContentLoaded(Consumer<Page> handler) Emitted when the JavaScriptDOMContentLoadedevent is dispatched.voidEmitted when the JavaScriptloadevent is dispatched.voidThe event is emitted when a new Page is created in the BrowserContext.voidEmitted when the page opens a new tab or window.BrowserContext.WaitForPageOptions.setPredicate(Predicate<Page> predicate) Receives thePageobject and resolves to truthy value when the waiting should resolve.Page.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 PageModifier and TypeMethodDescriptionstatic PageAssertionsPlaywrightAssertions.assertThat(Page page) Creates aPageAssertionsobject for the givenPage. -
Uses of Page in com.microsoft.playwright.impl
Classes in com.microsoft.playwright.impl that implement PageMethods in com.microsoft.playwright.impl that return PageModifier and TypeMethodDescriptionBrowserImpl.newPage(Browser.NewPageOptions options) private PageBrowserImpl.newPageImpl(Browser.NewPageOptions options) BindingCall.SourceImpl.page()DownloadImpl.page()FileChooserImpl.page()LocatorImpl.page()PageImpl.waitForClose(Page.WaitForCloseOptions options, Runnable code) private PagePageImpl.waitForCloseImpl(Page.WaitForCloseOptions options, Runnable code) BrowserContextImpl.waitForPage(BrowserContext.WaitForPageOptions options, Runnable code) private PageBrowserContextImpl.waitForPageImpl(BrowserContext.WaitForPageOptions options, Runnable code) PageImpl.waitForPopup(Page.WaitForPopupOptions options, Runnable code) private PagePageImpl.waitForPopupImpl(Page.WaitForPopupOptions options, Runnable code) Methods in com.microsoft.playwright.impl that return types with arguments of type PageMethods in com.microsoft.playwright.impl with parameters of type PageModifier and TypeMethodDescriptionBrowserContextImpl.newCDPSession(Page page) voidBrowserImpl.startTracing(Page page, Browser.StartTracingOptions options) private voidBrowserImpl.startTracingImpl(Page page, Browser.StartTracingOptions options) Method parameters in com.microsoft.playwright.impl with type arguments of type PageModifier and TypeMethodDescriptionvoidvoidvoidPageImpl.offDOMContentLoaded(Consumer<Page> handler) voidvoidvoidvoidvoidvoidPageImpl.onDOMContentLoaded(Consumer<Page> handler) voidvoidvoidConstructors in com.microsoft.playwright.impl with parameters of type PageModifierConstructorDescriptionPageAssertionsImpl(Page page) privatePageAssertionsImpl(Page page, boolean isNot) -
Uses of Page in com.microsoft.playwright.options
Methods in com.microsoft.playwright.options that return Page