Package com.microsoft.playwright.impl
Class PlaywrightImpl
java.lang.Object
com.microsoft.playwright.impl.LoggingSupport
com.microsoft.playwright.impl.ChannelOwner
com.microsoft.playwright.impl.PlaywrightImpl
- All Implemented Interfaces:
Playwright,AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.microsoft.playwright.Playwright
Playwright.CreateOptions -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final APIRequestImplprivate final BrowserTypeImplprivate Processprivate final BrowserTypeImplprivate final SelectorsImplprivate SharedSelectorsprivate final BrowserTypeImplFields inherited from class com.microsoft.playwright.impl.ChannelOwner
connection, guid, initializer, type -
Constructor Summary
ConstructorsConstructorDescriptionPlaywrightImpl(ChannelOwner parent, String type, String guid, com.google.gson.JsonObject initializer) -
Method Summary
Modifier and TypeMethodDescriptionchromium()This object can be used to launch or connect to Chromium, returning instances ofBrowser.voidclose()Terminates this instance of Playwright, will also close all created browsers if they are still running.static PlaywrightImplcreate(Playwright.CreateOptions options) static PlaywrightImplcreateImpl(Playwright.CreateOptions options, boolean forceNewDriverInstanceForTests) firefox()This object can be used to launch or connect to Firefox, returning instances ofBrowser.(package private) voidinitSharedSelectors(PlaywrightImpl parent) request()Exposes API that can be used for the Web API testing.Selectors can be used to install custom selector engines.(package private) voidwebkit()This object can be used to launch or connect to WebKit, returning instances ofBrowser.Methods inherited from class com.microsoft.playwright.impl.ChannelOwner
adopt, disposeChannelOwner, handleEvent, runUntil, sendMessage, sendMessage, sendMessageAsync, toProtocolRef, withLogging, withWaitLoggingMethods inherited from class com.microsoft.playwright.impl.LoggingSupport
logApi, logApiIfEnabled, logWithTimestamp, withLogging
-
Field Details
-
driverProcess
-
chromium
-
firefox
-
webkit
-
selectors
-
apiRequest
-
-
Constructor Details
-
PlaywrightImpl
PlaywrightImpl(ChannelOwner parent, String type, String guid, com.google.gson.JsonObject initializer)
-
-
Method Details
-
create
-
createImpl
public static PlaywrightImpl createImpl(Playwright.CreateOptions options, boolean forceNewDriverInstanceForTests) -
unregisterSelectors
void unregisterSelectors() -
chromium
Description copied from interface:PlaywrightThis object can be used to launch or connect to Chromium, returning instances ofBrowser.- Specified by:
chromiumin interfacePlaywright
-
firefox
Description copied from interface:PlaywrightThis object can be used to launch or connect to Firefox, returning instances ofBrowser.- Specified by:
firefoxin interfacePlaywright
-
request
Description copied from interface:PlaywrightExposes API that can be used for the Web API testing.- Specified by:
requestin interfacePlaywright
-
webkit
Description copied from interface:PlaywrightThis object can be used to launch or connect to WebKit, returning instances ofBrowser.- Specified by:
webkitin interfacePlaywright
-
selectors
Description copied from interface:PlaywrightSelectors can be used to install custom selector engines. See extensibility for more information.- Specified by:
selectorsin interfacePlaywright
-
close
public void close()Description copied from interface:PlaywrightTerminates this instance of Playwright, will also close all created browsers if they are still running.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfacePlaywright
-