Uses of Interface
com.microsoft.playwright.Page
-
Packages that use Page Package Description com.microsoft.playwright com.microsoft.playwright.assertions com.microsoft.playwright.impl 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 java.util.function.Predicate<Page>BrowserContext.WaitForPageOptions. predicateReceives thePageobject and resolves to truthy value when the waiting should resolve.java.util.function.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, java.lang.Runnable callback)Performs action and waits for the Page to close.default PagePage. waitForClose(java.lang.Runnable callback)Performs action and waits for the Page to close.PageBrowserContext. waitForPage(BrowserContext.WaitForPageOptions options, java.lang.Runnable callback)Performs action and waits for a newPageto be created in the context.default PageBrowserContext. waitForPage(java.lang.Runnable callback)Performs action and waits for a newPageto be created in the context.PagePage. waitForPopup(Page.WaitForPopupOptions options, java.lang.Runnable callback)Performs action and waits for a popupPage.default PagePage. waitForPopup(java.lang.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 java.util.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 voidPage. offClose(java.util.function.Consumer<Page> handler)Removes handler that was previously added withonClose(handler).voidPage. offCrash(java.util.function.Consumer<Page> handler)Removes handler that was previously added withonCrash(handler).voidPage. offDOMContentLoaded(java.util.function.Consumer<Page> handler)Removes handler that was previously added withonDOMContentLoaded(handler).voidPage. offLoad(java.util.function.Consumer<Page> handler)Removes handler that was previously added withonLoad(handler).voidBrowserContext. offPage(java.util.function.Consumer<Page> handler)Removes handler that was previously added withonPage(handler).voidPage. offPopup(java.util.function.Consumer<Page> handler)Removes handler that was previously added withonPopup(handler).voidPage. onClose(java.util.function.Consumer<Page> handler)Emitted when the page closes.voidPage. onCrash(java.util.function.Consumer<Page> handler)Emitted when the page crashes.voidPage. onDOMContentLoaded(java.util.function.Consumer<Page> handler)Emitted when the JavaScriptDOMContentLoadedevent is dispatched.voidPage. onLoad(java.util.function.Consumer<Page> handler)Emitted when the JavaScriptloadevent is dispatched.voidBrowserContext. onPage(java.util.function.Consumer<Page> handler)The event is emitted when a new Page is created in the BrowserContext.voidPage. onPopup(java.util.function.Consumer<Page> handler)Emitted when the page opens a new tab or window.BrowserContext.WaitForPageOptionsBrowserContext.WaitForPageOptions. setPredicate(java.util.function.Predicate<Page> predicate)Receives thePageobject and resolves to truthy value when the waiting should resolve.Page.WaitForPopupOptionsPage.WaitForPopupOptions. setPredicate(java.util.function.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
Classes in com.microsoft.playwright.impl that implement Page Modifier and Type Class Description classPageImplMethods in com.microsoft.playwright.impl that return Page Modifier and Type Method Description PageBrowserImpl. newPage(Browser.NewPageOptions options)private PageBrowserImpl. newPageImpl(Browser.NewPageOptions options)PageBindingCall.SourceImpl. page()PageDownloadImpl. page()PageFileChooserImpl. page()PageLocatorImpl. page()PagePageImpl. waitForClose(Page.WaitForCloseOptions options, java.lang.Runnable code)private PagePageImpl. waitForCloseImpl(Page.WaitForCloseOptions options, java.lang.Runnable code)PageBrowserContextImpl. waitForPage(BrowserContext.WaitForPageOptions options, java.lang.Runnable code)private PageBrowserContextImpl. waitForPageImpl(BrowserContext.WaitForPageOptions options, java.lang.Runnable code)PagePageImpl. waitForPopup(Page.WaitForPopupOptions options, java.lang.Runnable code)private PagePageImpl. waitForPopupImpl(Page.WaitForPopupOptions options, java.lang.Runnable code)Methods in com.microsoft.playwright.impl that return types with arguments of type Page Modifier and Type Method Description java.util.List<Page>BrowserContextImpl. pages()Methods in com.microsoft.playwright.impl with parameters of type Page Modifier and Type Method Description CDPSessionBrowserContextImpl. 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 Page Modifier and Type Method Description voidPageImpl. offClose(java.util.function.Consumer<Page> handler)voidPageImpl. offCrash(java.util.function.Consumer<Page> handler)voidPageImpl. offDOMContentLoaded(java.util.function.Consumer<Page> handler)voidPageImpl. offLoad(java.util.function.Consumer<Page> handler)voidBrowserContextImpl. offPage(java.util.function.Consumer<Page> handler)voidPageImpl. offPopup(java.util.function.Consumer<Page> handler)voidPageImpl. onClose(java.util.function.Consumer<Page> handler)voidPageImpl. onCrash(java.util.function.Consumer<Page> handler)voidPageImpl. onDOMContentLoaded(java.util.function.Consumer<Page> handler)voidPageImpl. onLoad(java.util.function.Consumer<Page> handler)voidBrowserContextImpl. onPage(java.util.function.Consumer<Page> handler)voidPageImpl. onPopup(java.util.function.Consumer<Page> handler)Constructors in com.microsoft.playwright.impl with parameters of type Page Constructor Description PageAssertionsImpl(Page page)PageAssertionsImpl(Page page, boolean isNot) -
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()
-