NOTE: When using WebKit on macOS, accessing {@code localhost} will not pick up client certificates. You can make it work by
* replacing {@code localhost} with {@code local.playwright}.
*/
- public NewContextOptions setClientCertificates(List clientCertificates) {
+ public NewContextOptions setClientCertificates(@Nullable List clientCertificates) {
this.clientCertificates = clientCertificates;
return this;
}
/**
* An object containing additional HTTP headers to be sent with every request. Defaults to none.
*/
- public NewContextOptions setExtraHTTPHeaders(Map extraHTTPHeaders) {
+ public NewContextOptions setExtraHTTPHeaders(@Nullable Map extraHTTPHeaders) {
this.extraHTTPHeaders = extraHTTPHeaders;
return this;
}
/**
* Whether to throw on response codes other than 2xx and 3xx. By default response object is returned for all status codes.
*/
- public NewContextOptions setFailOnStatusCode(boolean failOnStatusCode) {
+ public NewContextOptions setFailOnStatusCode(@Nullable Boolean failOnStatusCode) {
this.failOnStatusCode = failOnStatusCode;
return this;
}
@@ -184,7 +184,7 @@ public NewContextOptions setHttpCredentials(String username, String password) {
*
Pass an array to use different credentials for different origins. The first entry that matches the request origin is
* used, and entries with no origin match any request.
*/
- public NewContextOptions setHttpCredentials(HttpCredentials httpCredentials) {
+ public NewContextOptions setHttpCredentials(@Nullable HttpCredentials httpCredentials) {
this.httpCredentials = httpCredentials;
return this;
}
@@ -195,14 +195,14 @@ public NewContextOptions setHttpCredentials(HttpCredentials httpCredentials) {
*
Pass an array to use different credentials for different origins. The first entry that matches the request origin is
* used, and entries with no origin match any request.
*/
- public NewContextOptions setHttpCredentials(List httpCredentials) {
+ public NewContextOptions setHttpCredentials(@Nullable List httpCredentials) {
this.httpCredentials = httpCredentials;
return this;
}
/**
* Whether to ignore HTTPS errors when sending network requests. Defaults to {@code false}.
*/
- public NewContextOptions setIgnoreHTTPSErrors(boolean ignoreHTTPSErrors) {
+ public NewContextOptions setIgnoreHTTPSErrors(@Nullable Boolean ignoreHTTPSErrors) {
this.ignoreHTTPSErrors = ignoreHTTPSErrors;
return this;
}
@@ -211,7 +211,7 @@ public NewContextOptions setIgnoreHTTPSErrors(boolean ignoreHTTPSErrors) {
* exceeded. Defaults to {@code 20}. Pass {@code 0} to not follow redirects. This can be overwritten for each request
* individually.
*/
- public NewContextOptions setMaxRedirects(int maxRedirects) {
+ public NewContextOptions setMaxRedirects(@Nullable Integer maxRedirects) {
this.maxRedirects = maxRedirects;
return this;
}
@@ -224,7 +224,7 @@ public NewContextOptions setProxy(String server) {
/**
* Network proxy settings.
*/
- public NewContextOptions setProxy(Proxy proxy) {
+ public NewContextOptions setProxy(@Nullable Proxy proxy) {
this.proxy = proxy;
return this;
}
@@ -236,7 +236,7 @@ public NewContextOptions setProxy(Proxy proxy) {
* BrowserContext.storageState()} or {@link com.microsoft.playwright.APIRequestContext#storageState
* APIRequestContext.storageState()} methods.
*/
- public NewContextOptions setStorageState(String storageState) {
+ public NewContextOptions setStorageState(@Nullable String storageState) {
this.storageState = storageState;
return this;
}
@@ -245,7 +245,7 @@ public NewContextOptions setStorageState(String storageState) {
* obtained via {@link com.microsoft.playwright.BrowserContext#storageState BrowserContext.storageState()}. Path to the
* file with saved storage state.
*/
- public NewContextOptions setStorageStatePath(Path storageStatePath) {
+ public NewContextOptions setStorageStatePath(@Nullable Path storageStatePath) {
this.storageStatePath = storageStatePath;
return this;
}
@@ -253,14 +253,14 @@ public NewContextOptions setStorageStatePath(Path storageStatePath) {
* Maximum time in milliseconds to wait for the response. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable
* timeout.
*/
- public NewContextOptions setTimeout(double timeout) {
+ public NewContextOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
/**
* Specific user agent to use in this context.
*/
- public NewContextOptions setUserAgent(String userAgent) {
+ public NewContextOptions setUserAgent(@Nullable String userAgent) {
this.userAgent = userAgent;
return this;
}
diff --git a/playwright/src/main/java/com/microsoft/playwright/APIRequestContext.java b/playwright/src/main/java/com/microsoft/playwright/APIRequestContext.java
index 1372d5265..520abc200 100644
--- a/playwright/src/main/java/com/microsoft/playwright/APIRequestContext.java
+++ b/playwright/src/main/java/com/microsoft/playwright/APIRequestContext.java
@@ -52,7 +52,7 @@ class DisposeOptions {
/**
* The reason to be reported to the operations interrupted by the context disposal.
*/
- public DisposeOptions setReason(String reason) {
+ public DisposeOptions setReason(@Nullable String reason) {
this.reason = reason;
return this;
}
@@ -75,14 +75,14 @@ class StorageStateOptions {
/**
* Set to {@code true} to include IndexedDB in the storage state snapshot.
*/
- public StorageStateOptions setIndexedDB(boolean indexedDB) {
+ public StorageStateOptions setIndexedDB(@Nullable Boolean indexedDB) {
this.indexedDB = indexedDB;
return this;
}
/**
* Set to {@code true} to include the origin private file system in the storage state snapshot.
*/
- public StorageStateOptions setOpfs(boolean opfs) {
+ public StorageStateOptions setOpfs(@Nullable Boolean opfs) {
this.opfs = opfs;
return this;
}
@@ -90,7 +90,7 @@ public StorageStateOptions setOpfs(boolean opfs) {
* The file path to save the storage state to. If {@code path} is a relative path, then it is resolved relative to current
* working directory. If no path is provided, storage state is still returned, but won't be saved to the disk.
*/
- public StorageStateOptions setPath(Path path) {
+ public StorageStateOptions setPath(@Nullable Path path) {
this.path = path;
return this;
}
diff --git a/playwright/src/main/java/com/microsoft/playwright/Browser.java b/playwright/src/main/java/com/microsoft/playwright/Browser.java
index 6c7f1178a..f9df7f216 100644
--- a/playwright/src/main/java/com/microsoft/playwright/Browser.java
+++ b/playwright/src/main/java/com/microsoft/playwright/Browser.java
@@ -75,7 +75,7 @@ class CloseOptions {
/**
* The reason to be reported to the operations interrupted by the browser closure.
*/
- public CloseOptions setReason(String reason) {
+ public CloseOptions setReason(@Nullable String reason) {
this.reason = reason;
return this;
}
@@ -299,7 +299,7 @@ class NewContextOptions {
/**
* Whether to automatically download all the attachments. Defaults to {@code true} where all the downloads are accepted.
*/
- public NewContextOptions setAcceptDownloads(boolean acceptDownloads) {
+ public NewContextOptions setAcceptDownloads(@Nullable Boolean acceptDownloads) {
this.acceptDownloads = acceptDownloads;
return this;
}
@@ -319,14 +319,14 @@ public NewContextOptions setAcceptDownloads(boolean acceptDownloads) {
* {@code http://localhost:3000/bar.html}
*
*/
- public NewContextOptions setBaseURL(String baseURL) {
+ public NewContextOptions setBaseURL(@Nullable String baseURL) {
this.baseURL = baseURL;
return this;
}
/**
* Toggles bypassing page's Content-Security-Policy. Defaults to {@code false}.
*/
- public NewContextOptions setBypassCSP(boolean bypassCSP) {
+ public NewContextOptions setBypassCSP(@Nullable Boolean bypassCSP) {
this.bypassCSP = bypassCSP;
return this;
}
@@ -347,7 +347,7 @@ public NewContextOptions setBypassCSP(boolean bypassCSP) {
*
NOTE: When using WebKit on macOS, accessing {@code localhost} will not pick up client certificates. You can make it work by
* replacing {@code localhost} with {@code local.playwright}.
*/
- public NewContextOptions setClientCertificates(List clientCertificates) {
+ public NewContextOptions setClientCertificates(@Nullable List clientCertificates) {
this.clientCertificates = clientCertificates;
return this;
}
@@ -375,14 +375,14 @@ public NewContextOptions setContrast(@Nullable Contrast contrast) {
* Specify device scale factor (can be thought of as dpr). Defaults to {@code 1}. Learn more about emulating devices with device scale factor.
*/
- public NewContextOptions setDeviceScaleFactor(double deviceScaleFactor) {
+ public NewContextOptions setDeviceScaleFactor(@Nullable Double deviceScaleFactor) {
this.deviceScaleFactor = deviceScaleFactor;
return this;
}
/**
* An object containing additional HTTP headers to be sent with every request. Defaults to none.
*/
- public NewContextOptions setExtraHTTPHeaders(Map extraHTTPHeaders) {
+ public NewContextOptions setExtraHTTPHeaders(@Nullable Map extraHTTPHeaders) {
this.extraHTTPHeaders = extraHTTPHeaders;
return this;
}
@@ -398,7 +398,7 @@ public NewContextOptions setForcedColors(@Nullable ForcedColors forcedColors) {
public NewContextOptions setGeolocation(double latitude, double longitude) {
return setGeolocation(new Geolocation(latitude, longitude));
}
- public NewContextOptions setGeolocation(Geolocation geolocation) {
+ public NewContextOptions setGeolocation(@Nullable Geolocation geolocation) {
this.geolocation = geolocation;
return this;
}
@@ -406,7 +406,7 @@ public NewContextOptions setGeolocation(Geolocation geolocation) {
* Specifies if viewport supports touch events. Defaults to false. Learn more about mobile emulation.
*/
- public NewContextOptions setHasTouch(boolean hasTouch) {
+ public NewContextOptions setHasTouch(@Nullable Boolean hasTouch) {
this.hasTouch = hasTouch;
return this;
}
@@ -427,7 +427,7 @@ public NewContextOptions setHttpCredentials(String username, String password) {
*
Pass an array to use different credentials for different origins. The first entry that matches the request origin is
* used, and entries with no origin match any request.
*/
- public NewContextOptions setHttpCredentials(HttpCredentials httpCredentials) {
+ public NewContextOptions setHttpCredentials(@Nullable HttpCredentials httpCredentials) {
this.httpCredentials = httpCredentials;
return this;
}
@@ -438,14 +438,14 @@ public NewContextOptions setHttpCredentials(HttpCredentials httpCredentials) {
*
Pass an array to use different credentials for different origins. The first entry that matches the request origin is
* used, and entries with no origin match any request.
*/
- public NewContextOptions setHttpCredentials(List httpCredentials) {
+ public NewContextOptions setHttpCredentials(@Nullable List httpCredentials) {
this.httpCredentials = httpCredentials;
return this;
}
/**
* Whether to ignore HTTPS errors when sending network requests. Defaults to {@code false}.
*/
- public NewContextOptions setIgnoreHTTPSErrors(boolean ignoreHTTPSErrors) {
+ public NewContextOptions setIgnoreHTTPSErrors(@Nullable Boolean ignoreHTTPSErrors) {
this.ignoreHTTPSErrors = ignoreHTTPSErrors;
return this;
}
@@ -454,7 +454,7 @@ public NewContextOptions setIgnoreHTTPSErrors(boolean ignoreHTTPSErrors) {
* so you don't actually need to set it manually. Defaults to {@code false} and is not supported in Firefox. Learn more
* about mobile emulation.
*/
- public NewContextOptions setIsMobile(boolean isMobile) {
+ public NewContextOptions setIsMobile(@Nullable Boolean isMobile) {
this.isMobile = isMobile;
return this;
}
@@ -462,7 +462,7 @@ public NewContextOptions setIsMobile(boolean isMobile) {
* Whether or not to enable JavaScript in the context. Defaults to {@code true}. Learn more about disabling JavaScript.
*/
- public NewContextOptions setJavaScriptEnabled(boolean javaScriptEnabled) {
+ public NewContextOptions setJavaScriptEnabled(@Nullable Boolean javaScriptEnabled) {
this.javaScriptEnabled = javaScriptEnabled;
return this;
}
@@ -472,7 +472,7 @@ public NewContextOptions setJavaScriptEnabled(boolean javaScriptEnabled) {
* locale. Learn more about emulation in our emulation guide.
*/
- public NewContextOptions setLocale(String locale) {
+ public NewContextOptions setLocale(@Nullable String locale) {
this.locale = locale;
return this;
}
@@ -480,7 +480,7 @@ public NewContextOptions setLocale(String locale) {
* Whether to emulate network being offline. Defaults to {@code false}. Learn more about network emulation.
*/
- public NewContextOptions setOffline(boolean offline) {
+ public NewContextOptions setOffline(@Nullable Boolean offline) {
this.offline = offline;
return this;
}
@@ -489,7 +489,7 @@ public NewContextOptions setOffline(boolean offline) {
* com.microsoft.playwright.BrowserContext#grantPermissions BrowserContext.grantPermissions()} for more details. Defaults
* to none.
*/
- public NewContextOptions setPermissions(List permissions) {
+ public NewContextOptions setPermissions(@Nullable List permissions) {
this.permissions = permissions;
return this;
}
@@ -502,7 +502,7 @@ public NewContextOptions setProxy(String server) {
/**
* Network proxy settings to use with this context. Defaults to none.
*/
- public NewContextOptions setProxy(Proxy proxy) {
+ public NewContextOptions setProxy(@Nullable Proxy proxy) {
this.proxy = proxy;
return this;
}
@@ -511,7 +511,7 @@ public NewContextOptions setProxy(Proxy proxy) {
* {@code attach} is specified, resources are persisted as separate files and all of these files are archived along with
* the HAR file. Defaults to {@code embed}, which stores content inline the HAR file as per HAR specification.
*/
- public NewContextOptions setRecordHarContent(HarContentPolicy recordHarContent) {
+ public NewContextOptions setRecordHarContent(@Nullable HarContentPolicy recordHarContent) {
this.recordHarContent = recordHarContent;
return this;
}
@@ -520,14 +520,14 @@ public NewContextOptions setRecordHarContent(HarContentPolicy recordHarContent)
* cookies, security and other types of HAR information that are not used when replaying from HAR. Defaults to {@code
* full}.
*/
- public NewContextOptions setRecordHarMode(HarMode recordHarMode) {
+ public NewContextOptions setRecordHarMode(@Nullable HarMode recordHarMode) {
this.recordHarMode = recordHarMode;
return this;
}
/**
* Optional setting to control whether to omit request content from the HAR. Defaults to {@code false}.
*/
- public NewContextOptions setRecordHarOmitContent(boolean recordHarOmitContent) {
+ public NewContextOptions setRecordHarOmitContent(@Nullable Boolean recordHarOmitContent) {
this.recordHarOmitContent = recordHarOmitContent;
return this;
}
@@ -536,15 +536,15 @@ public NewContextOptions setRecordHarOmitContent(boolean recordHarOmitContent) {
* file on the filesystem. If not specified, the HAR is not recorded. Make sure to call {@link
* com.microsoft.playwright.BrowserContext#close BrowserContext.close()} for the HAR to be saved.
*/
- public NewContextOptions setRecordHarPath(Path recordHarPath) {
+ public NewContextOptions setRecordHarPath(@Nullable Path recordHarPath) {
this.recordHarPath = recordHarPath;
return this;
}
- public NewContextOptions setRecordHarUrlFilter(String recordHarUrlFilter) {
+ public NewContextOptions setRecordHarUrlFilter(@Nullable String recordHarUrlFilter) {
this.recordHarUrlFilter = recordHarUrlFilter;
return this;
}
- public NewContextOptions setRecordHarUrlFilter(Pattern recordHarUrlFilter) {
+ public NewContextOptions setRecordHarUrlFilter(@Nullable Pattern recordHarUrlFilter) {
this.recordHarUrlFilter = recordHarUrlFilter;
return this;
}
@@ -552,7 +552,7 @@ public NewContextOptions setRecordHarUrlFilter(Pattern recordHarUrlFilter) {
* Enables video recording for all pages into the specified directory. If not specified videos are not recorded. Make sure
* to call {@link com.microsoft.playwright.BrowserContext#close BrowserContext.close()} for videos to be saved.
*/
- public NewContextOptions setRecordVideoDir(Path recordVideoDir) {
+ public NewContextOptions setRecordVideoDir(@Nullable Path recordVideoDir) {
this.recordVideoDir = recordVideoDir;
return this;
}
@@ -569,7 +569,7 @@ public NewContextOptions setRecordVideoSize(int width, int height) {
* 800x800. If {@code viewport} is not configured explicitly the video size defaults to 800x450. Actual picture of each
* page will be scaled down if necessary to fit the specified size.
*/
- public NewContextOptions setRecordVideoSize(RecordVideoSize recordVideoSize) {
+ public NewContextOptions setRecordVideoSize(@Nullable RecordVideoSize recordVideoSize) {
this.recordVideoSize = recordVideoSize;
return this;
}
@@ -593,7 +593,7 @@ public NewContextOptions setScreenSize(int width, int height) {
* Emulates consistent window screen size available inside web page via {@code window.screen}. Is only used when the {@code
* viewport} is set.
*/
- public NewContextOptions setScreenSize(ScreenSize screenSize) {
+ public NewContextOptions setScreenSize(@Nullable ScreenSize screenSize) {
this.screenSize = screenSize;
return this;
}
@@ -605,7 +605,7 @@ public NewContextOptions setScreenSize(ScreenSize screenSize) {
*
{@code "block"}: Playwright will block all registration of Service Workers.
*
*/
- public NewContextOptions setServiceWorkers(ServiceWorkerPolicy serviceWorkers) {
+ public NewContextOptions setServiceWorkers(@Nullable ServiceWorkerPolicy serviceWorkers) {
this.serviceWorkers = serviceWorkers;
return this;
}
@@ -613,7 +613,7 @@ public NewContextOptions setServiceWorkers(ServiceWorkerPolicy serviceWorkers) {
* Populates context with given storage state. This option can be used to initialize context with logged-in information
* obtained via {@link com.microsoft.playwright.BrowserContext#storageState BrowserContext.storageState()}.
*/
- public NewContextOptions setStorageState(String storageState) {
+ public NewContextOptions setStorageState(@Nullable String storageState) {
this.storageState = storageState;
return this;
}
@@ -622,7 +622,7 @@ public NewContextOptions setStorageState(String storageState) {
* obtained via {@link com.microsoft.playwright.BrowserContext#storageState BrowserContext.storageState()}. Path to the
* file with saved storage state.
*/
- public NewContextOptions setStorageStatePath(Path storageStatePath) {
+ public NewContextOptions setStorageStatePath(@Nullable Path storageStatePath) {
this.storageStatePath = storageStatePath;
return this;
}
@@ -632,7 +632,7 @@ public NewContextOptions setStorageStatePath(Path storageStatePath) {
* affect any Locator APIs (Locators are always strict). Defaults to {@code false}. See {@code Locator} to learn more about
* the strict mode.
*/
- public NewContextOptions setStrictSelectors(boolean strictSelectors) {
+ public NewContextOptions setStrictSelectors(@Nullable Boolean strictSelectors) {
this.strictSelectors = strictSelectors;
return this;
}
@@ -641,14 +641,14 @@ public NewContextOptions setStrictSelectors(boolean strictSelectors) {
* href="https://cs.chromium.org/chromium/src/third_party/icu/source/data/misc/metaZones.txt?rcl=faee8bc70570192d82d2978a71e2a615788597d1">ICU's
* metaZones.txt for a list of supported timezone IDs. Defaults to the system timezone.
*/
- public NewContextOptions setTimezoneId(String timezoneId) {
+ public NewContextOptions setTimezoneId(@Nullable String timezoneId) {
this.timezoneId = timezoneId;
return this;
}
/**
* Specific user agent to use in this context.
*/
- public NewContextOptions setUserAgent(String userAgent) {
+ public NewContextOptions setUserAgent(@Nullable String userAgent) {
this.userAgent = userAgent;
return this;
}
@@ -895,7 +895,7 @@ class NewPageOptions {
/**
* Whether to automatically download all the attachments. Defaults to {@code true} where all the downloads are accepted.
*/
- public NewPageOptions setAcceptDownloads(boolean acceptDownloads) {
+ public NewPageOptions setAcceptDownloads(@Nullable Boolean acceptDownloads) {
this.acceptDownloads = acceptDownloads;
return this;
}
@@ -915,14 +915,14 @@ public NewPageOptions setAcceptDownloads(boolean acceptDownloads) {
* {@code http://localhost:3000/bar.html}
*
*/
- public NewPageOptions setBaseURL(String baseURL) {
+ public NewPageOptions setBaseURL(@Nullable String baseURL) {
this.baseURL = baseURL;
return this;
}
/**
* Toggles bypassing page's Content-Security-Policy. Defaults to {@code false}.
*/
- public NewPageOptions setBypassCSP(boolean bypassCSP) {
+ public NewPageOptions setBypassCSP(@Nullable Boolean bypassCSP) {
this.bypassCSP = bypassCSP;
return this;
}
@@ -943,7 +943,7 @@ public NewPageOptions setBypassCSP(boolean bypassCSP) {
*
NOTE: When using WebKit on macOS, accessing {@code localhost} will not pick up client certificates. You can make it work by
* replacing {@code localhost} with {@code local.playwright}.
*/
- public NewPageOptions setClientCertificates(List clientCertificates) {
+ public NewPageOptions setClientCertificates(@Nullable List clientCertificates) {
this.clientCertificates = clientCertificates;
return this;
}
@@ -971,14 +971,14 @@ public NewPageOptions setContrast(@Nullable Contrast contrast) {
* Specify device scale factor (can be thought of as dpr). Defaults to {@code 1}. Learn more about emulating devices with device scale factor.
*/
- public NewPageOptions setDeviceScaleFactor(double deviceScaleFactor) {
+ public NewPageOptions setDeviceScaleFactor(@Nullable Double deviceScaleFactor) {
this.deviceScaleFactor = deviceScaleFactor;
return this;
}
/**
* An object containing additional HTTP headers to be sent with every request. Defaults to none.
*/
- public NewPageOptions setExtraHTTPHeaders(Map extraHTTPHeaders) {
+ public NewPageOptions setExtraHTTPHeaders(@Nullable Map extraHTTPHeaders) {
this.extraHTTPHeaders = extraHTTPHeaders;
return this;
}
@@ -994,7 +994,7 @@ public NewPageOptions setForcedColors(@Nullable ForcedColors forcedColors) {
public NewPageOptions setGeolocation(double latitude, double longitude) {
return setGeolocation(new Geolocation(latitude, longitude));
}
- public NewPageOptions setGeolocation(Geolocation geolocation) {
+ public NewPageOptions setGeolocation(@Nullable Geolocation geolocation) {
this.geolocation = geolocation;
return this;
}
@@ -1002,7 +1002,7 @@ public NewPageOptions setGeolocation(Geolocation geolocation) {
* Specifies if viewport supports touch events. Defaults to false. Learn more about mobile emulation.
*/
- public NewPageOptions setHasTouch(boolean hasTouch) {
+ public NewPageOptions setHasTouch(@Nullable Boolean hasTouch) {
this.hasTouch = hasTouch;
return this;
}
@@ -1023,7 +1023,7 @@ public NewPageOptions setHttpCredentials(String username, String password) {
*
Pass an array to use different credentials for different origins. The first entry that matches the request origin is
* used, and entries with no origin match any request.
*/
- public NewPageOptions setHttpCredentials(HttpCredentials httpCredentials) {
+ public NewPageOptions setHttpCredentials(@Nullable HttpCredentials httpCredentials) {
this.httpCredentials = httpCredentials;
return this;
}
@@ -1034,14 +1034,14 @@ public NewPageOptions setHttpCredentials(HttpCredentials httpCredentials) {
*
Pass an array to use different credentials for different origins. The first entry that matches the request origin is
* used, and entries with no origin match any request.
*/
- public NewPageOptions setHttpCredentials(List httpCredentials) {
+ public NewPageOptions setHttpCredentials(@Nullable List httpCredentials) {
this.httpCredentials = httpCredentials;
return this;
}
/**
* Whether to ignore HTTPS errors when sending network requests. Defaults to {@code false}.
*/
- public NewPageOptions setIgnoreHTTPSErrors(boolean ignoreHTTPSErrors) {
+ public NewPageOptions setIgnoreHTTPSErrors(@Nullable Boolean ignoreHTTPSErrors) {
this.ignoreHTTPSErrors = ignoreHTTPSErrors;
return this;
}
@@ -1050,7 +1050,7 @@ public NewPageOptions setIgnoreHTTPSErrors(boolean ignoreHTTPSErrors) {
* so you don't actually need to set it manually. Defaults to {@code false} and is not supported in Firefox. Learn more
* about mobile emulation.
*/
- public NewPageOptions setIsMobile(boolean isMobile) {
+ public NewPageOptions setIsMobile(@Nullable Boolean isMobile) {
this.isMobile = isMobile;
return this;
}
@@ -1058,7 +1058,7 @@ public NewPageOptions setIsMobile(boolean isMobile) {
* Whether or not to enable JavaScript in the context. Defaults to {@code true}. Learn more about disabling JavaScript.
*/
- public NewPageOptions setJavaScriptEnabled(boolean javaScriptEnabled) {
+ public NewPageOptions setJavaScriptEnabled(@Nullable Boolean javaScriptEnabled) {
this.javaScriptEnabled = javaScriptEnabled;
return this;
}
@@ -1068,7 +1068,7 @@ public NewPageOptions setJavaScriptEnabled(boolean javaScriptEnabled) {
* locale. Learn more about emulation in our emulation guide.
*/
- public NewPageOptions setLocale(String locale) {
+ public NewPageOptions setLocale(@Nullable String locale) {
this.locale = locale;
return this;
}
@@ -1076,7 +1076,7 @@ public NewPageOptions setLocale(String locale) {
* Whether to emulate network being offline. Defaults to {@code false}. Learn more about network emulation.
*/
- public NewPageOptions setOffline(boolean offline) {
+ public NewPageOptions setOffline(@Nullable Boolean offline) {
this.offline = offline;
return this;
}
@@ -1085,7 +1085,7 @@ public NewPageOptions setOffline(boolean offline) {
* com.microsoft.playwright.BrowserContext#grantPermissions BrowserContext.grantPermissions()} for more details. Defaults
* to none.
*/
- public NewPageOptions setPermissions(List permissions) {
+ public NewPageOptions setPermissions(@Nullable List permissions) {
this.permissions = permissions;
return this;
}
@@ -1098,7 +1098,7 @@ public NewPageOptions setProxy(String server) {
/**
* Network proxy settings to use with this context. Defaults to none.
*/
- public NewPageOptions setProxy(Proxy proxy) {
+ public NewPageOptions setProxy(@Nullable Proxy proxy) {
this.proxy = proxy;
return this;
}
@@ -1107,7 +1107,7 @@ public NewPageOptions setProxy(Proxy proxy) {
* {@code attach} is specified, resources are persisted as separate files and all of these files are archived along with
* the HAR file. Defaults to {@code embed}, which stores content inline the HAR file as per HAR specification.
*/
- public NewPageOptions setRecordHarContent(HarContentPolicy recordHarContent) {
+ public NewPageOptions setRecordHarContent(@Nullable HarContentPolicy recordHarContent) {
this.recordHarContent = recordHarContent;
return this;
}
@@ -1116,14 +1116,14 @@ public NewPageOptions setRecordHarContent(HarContentPolicy recordHarContent) {
* cookies, security and other types of HAR information that are not used when replaying from HAR. Defaults to {@code
* full}.
*/
- public NewPageOptions setRecordHarMode(HarMode recordHarMode) {
+ public NewPageOptions setRecordHarMode(@Nullable HarMode recordHarMode) {
this.recordHarMode = recordHarMode;
return this;
}
/**
* Optional setting to control whether to omit request content from the HAR. Defaults to {@code false}.
*/
- public NewPageOptions setRecordHarOmitContent(boolean recordHarOmitContent) {
+ public NewPageOptions setRecordHarOmitContent(@Nullable Boolean recordHarOmitContent) {
this.recordHarOmitContent = recordHarOmitContent;
return this;
}
@@ -1132,15 +1132,15 @@ public NewPageOptions setRecordHarOmitContent(boolean recordHarOmitContent) {
* file on the filesystem. If not specified, the HAR is not recorded. Make sure to call {@link
* com.microsoft.playwright.BrowserContext#close BrowserContext.close()} for the HAR to be saved.
*/
- public NewPageOptions setRecordHarPath(Path recordHarPath) {
+ public NewPageOptions setRecordHarPath(@Nullable Path recordHarPath) {
this.recordHarPath = recordHarPath;
return this;
}
- public NewPageOptions setRecordHarUrlFilter(String recordHarUrlFilter) {
+ public NewPageOptions setRecordHarUrlFilter(@Nullable String recordHarUrlFilter) {
this.recordHarUrlFilter = recordHarUrlFilter;
return this;
}
- public NewPageOptions setRecordHarUrlFilter(Pattern recordHarUrlFilter) {
+ public NewPageOptions setRecordHarUrlFilter(@Nullable Pattern recordHarUrlFilter) {
this.recordHarUrlFilter = recordHarUrlFilter;
return this;
}
@@ -1148,7 +1148,7 @@ public NewPageOptions setRecordHarUrlFilter(Pattern recordHarUrlFilter) {
* Enables video recording for all pages into the specified directory. If not specified videos are not recorded. Make sure
* to call {@link com.microsoft.playwright.BrowserContext#close BrowserContext.close()} for videos to be saved.
*/
- public NewPageOptions setRecordVideoDir(Path recordVideoDir) {
+ public NewPageOptions setRecordVideoDir(@Nullable Path recordVideoDir) {
this.recordVideoDir = recordVideoDir;
return this;
}
@@ -1165,7 +1165,7 @@ public NewPageOptions setRecordVideoSize(int width, int height) {
* 800x800. If {@code viewport} is not configured explicitly the video size defaults to 800x450. Actual picture of each
* page will be scaled down if necessary to fit the specified size.
*/
- public NewPageOptions setRecordVideoSize(RecordVideoSize recordVideoSize) {
+ public NewPageOptions setRecordVideoSize(@Nullable RecordVideoSize recordVideoSize) {
this.recordVideoSize = recordVideoSize;
return this;
}
@@ -1189,7 +1189,7 @@ public NewPageOptions setScreenSize(int width, int height) {
* Emulates consistent window screen size available inside web page via {@code window.screen}. Is only used when the {@code
* viewport} is set.
*/
- public NewPageOptions setScreenSize(ScreenSize screenSize) {
+ public NewPageOptions setScreenSize(@Nullable ScreenSize screenSize) {
this.screenSize = screenSize;
return this;
}
@@ -1201,7 +1201,7 @@ public NewPageOptions setScreenSize(ScreenSize screenSize) {
*
{@code "block"}: Playwright will block all registration of Service Workers.
*
*/
- public NewPageOptions setServiceWorkers(ServiceWorkerPolicy serviceWorkers) {
+ public NewPageOptions setServiceWorkers(@Nullable ServiceWorkerPolicy serviceWorkers) {
this.serviceWorkers = serviceWorkers;
return this;
}
@@ -1209,7 +1209,7 @@ public NewPageOptions setServiceWorkers(ServiceWorkerPolicy serviceWorkers) {
* Populates context with given storage state. This option can be used to initialize context with logged-in information
* obtained via {@link com.microsoft.playwright.BrowserContext#storageState BrowserContext.storageState()}.
*/
- public NewPageOptions setStorageState(String storageState) {
+ public NewPageOptions setStorageState(@Nullable String storageState) {
this.storageState = storageState;
return this;
}
@@ -1218,7 +1218,7 @@ public NewPageOptions setStorageState(String storageState) {
* obtained via {@link com.microsoft.playwright.BrowserContext#storageState BrowserContext.storageState()}. Path to the
* file with saved storage state.
*/
- public NewPageOptions setStorageStatePath(Path storageStatePath) {
+ public NewPageOptions setStorageStatePath(@Nullable Path storageStatePath) {
this.storageStatePath = storageStatePath;
return this;
}
@@ -1228,7 +1228,7 @@ public NewPageOptions setStorageStatePath(Path storageStatePath) {
* affect any Locator APIs (Locators are always strict). Defaults to {@code false}. See {@code Locator} to learn more about
* the strict mode.
*/
- public NewPageOptions setStrictSelectors(boolean strictSelectors) {
+ public NewPageOptions setStrictSelectors(@Nullable Boolean strictSelectors) {
this.strictSelectors = strictSelectors;
return this;
}
@@ -1237,14 +1237,14 @@ public NewPageOptions setStrictSelectors(boolean strictSelectors) {
* href="https://cs.chromium.org/chromium/src/third_party/icu/source/data/misc/metaZones.txt?rcl=faee8bc70570192d82d2978a71e2a615788597d1">ICU's
* metaZones.txt for a list of supported timezone IDs. Defaults to the system timezone.
*/
- public NewPageOptions setTimezoneId(String timezoneId) {
+ public NewPageOptions setTimezoneId(@Nullable String timezoneId) {
this.timezoneId = timezoneId;
return this;
}
/**
* Specific user agent to use in this context.
*/
- public NewPageOptions setUserAgent(String userAgent) {
+ public NewPageOptions setUserAgent(@Nullable String userAgent) {
this.userAgent = userAgent;
return this;
}
@@ -1290,7 +1290,7 @@ class BindOptions {
/**
* Host to bind the web socket server to. When specified, a web socket server is created instead of a named pipe.
*/
- public BindOptions setHost(String host) {
+ public BindOptions setHost(@Nullable String host) {
this.host = host;
return this;
}
@@ -1298,14 +1298,14 @@ public BindOptions setHost(String host) {
* Port to bind the web socket server to. When specified, a web socket server is created instead of a named pipe. Use
* {@code 0} to let the OS pick an available port.
*/
- public BindOptions setPort(int port) {
+ public BindOptions setPort(@Nullable Integer port) {
this.port = port;
return this;
}
/**
* Working directory associated with this browser server.
*/
- public BindOptions setWorkspaceDir(String workspaceDir) {
+ public BindOptions setWorkspaceDir(@Nullable String workspaceDir) {
this.workspaceDir = workspaceDir;
return this;
}
@@ -1327,21 +1327,21 @@ class StartTracingOptions {
/**
* specify custom categories to use instead of default.
*/
- public StartTracingOptions setCategories(List categories) {
+ public StartTracingOptions setCategories(@Nullable List categories) {
this.categories = categories;
return this;
}
/**
* A path to write the trace file to.
*/
- public StartTracingOptions setPath(Path path) {
+ public StartTracingOptions setPath(@Nullable Path path) {
this.path = path;
return this;
}
/**
* captures screenshots in the trace.
*/
- public StartTracingOptions setScreenshots(boolean screenshots) {
+ public StartTracingOptions setScreenshots(@Nullable Boolean screenshots) {
this.screenshots = screenshots;
return this;
}
diff --git a/playwright/src/main/java/com/microsoft/playwright/BrowserContext.java b/playwright/src/main/java/com/microsoft/playwright/BrowserContext.java
index 37284637a..4fca247f8 100644
--- a/playwright/src/main/java/com/microsoft/playwright/BrowserContext.java
+++ b/playwright/src/main/java/com/microsoft/playwright/BrowserContext.java
@@ -292,42 +292,42 @@ class ClearCookiesOptions {
/**
* Only removes cookies with the given domain.
*/
- public ClearCookiesOptions setDomain(String domain) {
+ public ClearCookiesOptions setDomain(@Nullable String domain) {
this.domain = domain;
return this;
}
/**
* Only removes cookies with the given domain.
*/
- public ClearCookiesOptions setDomain(Pattern domain) {
+ public ClearCookiesOptions setDomain(@Nullable Pattern domain) {
this.domain = domain;
return this;
}
/**
* Only removes cookies with the given name.
*/
- public ClearCookiesOptions setName(String name) {
+ public ClearCookiesOptions setName(@Nullable String name) {
this.name = name;
return this;
}
/**
* Only removes cookies with the given name.
*/
- public ClearCookiesOptions setName(Pattern name) {
+ public ClearCookiesOptions setName(@Nullable Pattern name) {
this.name = name;
return this;
}
/**
* Only removes cookies with the given path.
*/
- public ClearCookiesOptions setPath(String path) {
+ public ClearCookiesOptions setPath(@Nullable String path) {
this.path = path;
return this;
}
/**
* Only removes cookies with the given path.
*/
- public ClearCookiesOptions setPath(Pattern path) {
+ public ClearCookiesOptions setPath(@Nullable Pattern path) {
this.path = path;
return this;
}
@@ -341,7 +341,7 @@ class CloseOptions {
/**
* The reason to be reported to the operations interrupted by the context closure.
*/
- public CloseOptions setReason(String reason) {
+ public CloseOptions setReason(@Nullable String reason) {
this.reason = reason;
return this;
}
@@ -355,7 +355,7 @@ class GrantPermissionsOptions {
/**
* The [origin] to grant permissions to, e.g. "https://example.com".
*/
- public GrantPermissionsOptions setOrigin(String origin) {
+ public GrantPermissionsOptions setOrigin(@Nullable String origin) {
this.origin = origin;
return this;
}
@@ -369,7 +369,7 @@ class RouteOptions {
/**
* How often a route should be used. By default it will be used every time.
*/
- public RouteOptions setTimes(int times) {
+ public RouteOptions setTimes(@Nullable Integer times) {
this.times = times;
return this;
}
@@ -414,7 +414,7 @@ class RouteFromHAROptions {
*
*
Defaults to abort.
*/
- public RouteFromHAROptions setNotFound(HarNotFound notFound) {
+ public RouteFromHAROptions setNotFound(@Nullable HarNotFound notFound) {
this.notFound = notFound;
return this;
}
@@ -422,7 +422,7 @@ public RouteFromHAROptions setNotFound(HarNotFound notFound) {
* If specified, updates the given HAR with the actual network information instead of serving from file. The file is
* written to disk when {@link com.microsoft.playwright.BrowserContext#close BrowserContext.close()} is called.
*/
- public RouteFromHAROptions setUpdate(boolean update) {
+ public RouteFromHAROptions setUpdate(@Nullable Boolean update) {
this.update = update;
return this;
}
@@ -430,7 +430,7 @@ public RouteFromHAROptions setUpdate(boolean update) {
* Optional setting to control resource content management. If {@code attach} is specified, resources are persisted as
* separate files or entries in the ZIP archive. If {@code embed} is specified, content is stored inline the HAR file.
*/
- public RouteFromHAROptions setUpdateContent(RouteFromHarUpdateContentPolicy updateContent) {
+ public RouteFromHAROptions setUpdateContent(@Nullable RouteFromHarUpdateContentPolicy updateContent) {
this.updateContent = updateContent;
return this;
}
@@ -439,7 +439,7 @@ public RouteFromHAROptions setUpdateContent(RouteFromHarUpdateContentPolicy upda
* cookies, security and other types of HAR information that are not used when replaying from HAR. Defaults to {@code
* minimal}.
*/
- public RouteFromHAROptions setUpdateMode(HarMode updateMode) {
+ public RouteFromHAROptions setUpdateMode(@Nullable HarMode updateMode) {
this.updateMode = updateMode;
return this;
}
@@ -447,7 +447,7 @@ public RouteFromHAROptions setUpdateMode(HarMode updateMode) {
* A glob pattern, regular expression or predicate to match the request URL. Only requests with URL matching the pattern
* will be served from the HAR file. If not specified, all requests are served from the HAR file.
*/
- public RouteFromHAROptions setUrl(String url) {
+ public RouteFromHAROptions setUrl(@Nullable String url) {
this.url = url;
return this;
}
@@ -455,7 +455,7 @@ public RouteFromHAROptions setUrl(String url) {
* A glob pattern, regular expression or predicate to match the request URL. Only requests with URL matching the pattern
* will be served from the HAR file. If not specified, all requests are served from the HAR file.
*/
- public RouteFromHAROptions setUrl(Pattern url) {
+ public RouteFromHAROptions setUrl(@Nullable Pattern url) {
this.url = url;
return this;
}
@@ -500,7 +500,7 @@ class StorageStateOptions {
* com.microsoft.playwright.Credentials#install Credentials.install()}), and prevent all real authenticators from working
* in this context.
*/
- public StorageStateOptions setCredentials(boolean credentials) {
+ public StorageStateOptions setCredentials(@Nullable Boolean credentials) {
this.credentials = credentials;
return this;
}
@@ -509,7 +509,7 @@ public StorageStateOptions setCredentials(boolean credentials) {
* the storage state snapshot. If your application uses IndexedDB to store authentication tokens, like Firebase
* Authentication, enable this.
*/
- public StorageStateOptions setIndexedDB(boolean indexedDB) {
+ public StorageStateOptions setIndexedDB(@Nullable Boolean indexedDB) {
this.indexedDB = indexedDB;
return this;
}
@@ -520,7 +520,7 @@ public StorageStateOptions setIndexedDB(boolean indexedDB) {
*
*
NOTE: OPFS is currently not supported in ephemeral WebKit contexts.
*/
- public StorageStateOptions setOpfs(boolean opfs) {
+ public StorageStateOptions setOpfs(@Nullable Boolean opfs) {
this.opfs = opfs;
return this;
}
@@ -528,7 +528,7 @@ public StorageStateOptions setOpfs(boolean opfs) {
* The file path to save the storage state to. If {@code path} is a relative path, then it is resolved relative to current
* working directory. If no path is provided, storage state is still returned, but won't be saved to the disk.
*/
- public StorageStateOptions setPath(Path path) {
+ public StorageStateOptions setPath(@Nullable Path path) {
this.path = path;
return this;
}
@@ -548,7 +548,7 @@ class WaitForConditionOptions {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public WaitForConditionOptions setTimeout(double timeout) {
+ public WaitForConditionOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -568,7 +568,7 @@ class WaitForConsoleMessageOptions {
/**
* Receives the {@code ConsoleMessage} object and resolves to truthy value when the waiting should resolve.
*/
- public WaitForConsoleMessageOptions setPredicate(Predicate predicate) {
+ public WaitForConsoleMessageOptions setPredicate(@Nullable Predicate predicate) {
this.predicate = predicate;
return this;
}
@@ -577,7 +577,7 @@ public WaitForConsoleMessageOptions setPredicate(Predicate predi
* default value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout
* BrowserContext.setDefaultTimeout()}.
*/
- public WaitForConsoleMessageOptions setTimeout(double timeout) {
+ public WaitForConsoleMessageOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -597,7 +597,7 @@ class WaitForPageOptions {
/**
* Receives the {@code Page} object and resolves to truthy value when the waiting should resolve.
*/
- public WaitForPageOptions setPredicate(Predicate predicate) {
+ public WaitForPageOptions setPredicate(@Nullable Predicate predicate) {
this.predicate = predicate;
return this;
}
@@ -606,7 +606,7 @@ public WaitForPageOptions setPredicate(Predicate predicate) {
* default value can be changed by using the {@link com.microsoft.playwright.BrowserContext#setDefaultTimeout
* BrowserContext.setDefaultTimeout()}.
*/
- public WaitForPageOptions setTimeout(double timeout) {
+ public WaitForPageOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
diff --git a/playwright/src/main/java/com/microsoft/playwright/BrowserType.java b/playwright/src/main/java/com/microsoft/playwright/BrowserType.java
index 5c38b2814..04af544a4 100644
--- a/playwright/src/main/java/com/microsoft/playwright/BrowserType.java
+++ b/playwright/src/main/java/com/microsoft/playwright/BrowserType.java
@@ -97,14 +97,14 @@ class ConnectOptions {
*
{@code "*.test.internal-domain,*.staging.internal-domain,"} to expose test/staging deployments and localhost.
*
*/
- public ConnectOptions setExposeNetwork(String exposeNetwork) {
+ public ConnectOptions setExposeNetwork(@Nullable String exposeNetwork) {
this.exposeNetwork = exposeNetwork;
return this;
}
/**
* Additional HTTP headers to be sent with web socket connect request. Optional.
*/
- public ConnectOptions setHeaders(Map headers) {
+ public ConnectOptions setHeaders(@Nullable Map headers) {
this.headers = headers;
return this;
}
@@ -112,14 +112,14 @@ public ConnectOptions setHeaders(Map headers) {
* Slows down Playwright operations by the specified amount of milliseconds. Useful so that you can see what is going on.
* Defaults to 0.
*/
- public ConnectOptions setSlowMo(double slowMo) {
+ public ConnectOptions setSlowMo(@Nullable Double slowMo) {
this.slowMo = slowMo;
return this;
}
/**
* Maximum time in milliseconds to wait for the connection to be established. Defaults to {@code 0} (no timeout).
*/
- public ConnectOptions setTimeout(double timeout) {
+ public ConnectOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -161,14 +161,14 @@ class ConnectOverCDPOptions {
/**
* If specified, browser artifacts (such as traces and downloads) are saved into this directory.
*/
- public ConnectOverCDPOptions setArtifactsDir(Path artifactsDir) {
+ public ConnectOverCDPOptions setArtifactsDir(@Nullable Path artifactsDir) {
this.artifactsDir = artifactsDir;
return this;
}
/**
* Additional HTTP headers to be sent with connect request. Optional.
*/
- public ConnectOverCDPOptions setHeaders(Map headers) {
+ public ConnectOverCDPOptions setHeaders(@Nullable Map headers) {
this.headers = headers;
return this;
}
@@ -176,7 +176,7 @@ public ConnectOverCDPOptions setHeaders(Map headers) {
* Tells Playwright that it runs on the same host as the CDP server. It will enable certain optimizations that rely upon
* the file system being the same between Playwright and the Browser.
*/
- public ConnectOverCDPOptions setIsLocal(boolean isLocal) {
+ public ConnectOverCDPOptions setIsLocal(@Nullable Boolean isLocal) {
this.isLocal = isLocal;
return this;
}
@@ -188,7 +188,7 @@ public ConnectOverCDPOptions setIsLocal(boolean isLocal) {
* contexts created via {@link com.microsoft.playwright.Browser#newContext Browser.newContext()} are not affected. Defaults
* to {@code false}.
*/
- public ConnectOverCDPOptions setNoDefaults(boolean noDefaults) {
+ public ConnectOverCDPOptions setNoDefaults(@Nullable Boolean noDefaults) {
this.noDefaults = noDefaults;
return this;
}
@@ -196,7 +196,7 @@ public ConnectOverCDPOptions setNoDefaults(boolean noDefaults) {
* Slows down Playwright operations by the specified amount of milliseconds. Useful so that you can see what is going on.
* Defaults to 0.
*/
- public ConnectOverCDPOptions setSlowMo(double slowMo) {
+ public ConnectOverCDPOptions setSlowMo(@Nullable Double slowMo) {
this.slowMo = slowMo;
return this;
}
@@ -204,7 +204,7 @@ public ConnectOverCDPOptions setSlowMo(double slowMo) {
* Maximum time in milliseconds to wait for the connection to be established. Defaults to {@code 30000} (30 seconds). Pass
* {@code 0} to disable timeout.
*/
- public ConnectOverCDPOptions setTimeout(double timeout) {
+ public ConnectOverCDPOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -314,7 +314,7 @@ class LaunchOptions {
*
Additional arguments to pass to the browser instance. The list of Chromium flags can be found here.
*/
- public LaunchOptions setArgs(List args) {
+ public LaunchOptions setArgs(@Nullable List args) {
this.args = args;
return this;
}
@@ -323,7 +323,7 @@ public LaunchOptions setArgs(List args) {
* cleaned up when the browser closes. If not specified, a temporary directory is used and cleaned up when the browser
* closes.
*/
- public LaunchOptions setArtifactsDir(Path artifactsDir) {
+ public LaunchOptions setArtifactsDir(@Nullable Path artifactsDir) {
this.artifactsDir = artifactsDir;
return this;
}
@@ -338,7 +338,7 @@ public LaunchOptions setArtifactsDir(Path artifactsDir) {
* use branded Google Chrome and
* Microsoft Edge.
*/
- public LaunchOptions setChannel(BrowserChannel channel) {
+ public LaunchOptions setChannel(@Nullable BrowserChannel channel) {
this.channel = channel;
return this;
}
@@ -352,14 +352,14 @@ public LaunchOptions setChannel(BrowserChannel channel) {
* use branded Google Chrome and
* Microsoft Edge.
*/
- public LaunchOptions setChannel(String channel) {
+ public LaunchOptions setChannel(@Nullable String channel) {
this.channel = channel;
return this;
}
/**
* Enable Chromium sandboxing. Defaults to {@code false}.
*/
- public LaunchOptions setChromiumSandbox(boolean chromiumSandbox) {
+ public LaunchOptions setChromiumSandbox(@Nullable Boolean chromiumSandbox) {
this.chromiumSandbox = chromiumSandbox;
return this;
}
@@ -368,14 +368,14 @@ public LaunchOptions setChromiumSandbox(boolean chromiumSandbox) {
* deleted when browser is closed. In either case, the downloads are deleted when the browser context they were created in
* is closed.
*/
- public LaunchOptions setDownloadsPath(Path downloadsPath) {
+ public LaunchOptions setDownloadsPath(@Nullable Path downloadsPath) {
this.downloadsPath = downloadsPath;
return this;
}
/**
* Specify environment variables that will be visible to the browser. Defaults to {@code process.env}.
*/
- public LaunchOptions setEnv(Map env) {
+ public LaunchOptions setEnv(@Nullable Map env) {
this.env = env;
return this;
}
@@ -384,7 +384,7 @@ public LaunchOptions setEnv(Map env) {
* resolved relative to the current working directory. Note that Playwright only works with the bundled Chromium, Firefox
* or WebKit, use at your own risk.
*/
- public LaunchOptions setExecutablePath(Path executablePath) {
+ public LaunchOptions setExecutablePath(@Nullable Path executablePath) {
this.executablePath = executablePath;
return this;
}
@@ -395,28 +395,28 @@ public LaunchOptions setExecutablePath(Path executablePath) {
*
You can also provide a path to a custom {@code policies.json}
* file via {@code PLAYWRIGHT_FIREFOX_POLICIES_JSON} environment variable.
*/
- public LaunchOptions setFirefoxUserPrefs(Map firefoxUserPrefs) {
+ public LaunchOptions setFirefoxUserPrefs(@Nullable Map firefoxUserPrefs) {
this.firefoxUserPrefs = firefoxUserPrefs;
return this;
}
/**
* Close the browser process on SIGHUP. Defaults to {@code true}.
*/
- public LaunchOptions setHandleSIGHUP(boolean handleSIGHUP) {
+ public LaunchOptions setHandleSIGHUP(@Nullable Boolean handleSIGHUP) {
this.handleSIGHUP = handleSIGHUP;
return this;
}
/**
* Close the browser process on Ctrl-C. Defaults to {@code true}.
*/
- public LaunchOptions setHandleSIGINT(boolean handleSIGINT) {
+ public LaunchOptions setHandleSIGINT(@Nullable Boolean handleSIGINT) {
this.handleSIGINT = handleSIGINT;
return this;
}
/**
* Close the browser process on SIGTERM. Defaults to {@code true}.
*/
- public LaunchOptions setHandleSIGTERM(boolean handleSIGTERM) {
+ public LaunchOptions setHandleSIGTERM(@Nullable Boolean handleSIGTERM) {
this.handleSIGTERM = handleSIGTERM;
return this;
}
@@ -425,7 +425,7 @@ public LaunchOptions setHandleSIGTERM(boolean handleSIGTERM) {
* href="https://developers.google.com/web/updates/2017/04/headless-chrome">Chromium and Firefox. Defaults to {@code true}.
*/
- public LaunchOptions setHeadless(boolean headless) {
+ public LaunchOptions setHeadless(@Nullable Boolean headless) {
this.headless = headless;
return this;
}
@@ -433,7 +433,7 @@ public LaunchOptions setHeadless(boolean headless) {
* If {@code true}, Playwright does not pass its own configurations args and only uses the ones from {@code args}.
* Dangerous option; use with care. Defaults to {@code false}.
*/
- public LaunchOptions setIgnoreAllDefaultArgs(boolean ignoreAllDefaultArgs) {
+ public LaunchOptions setIgnoreAllDefaultArgs(@Nullable Boolean ignoreAllDefaultArgs) {
this.ignoreAllDefaultArgs = ignoreAllDefaultArgs;
return this;
}
@@ -441,7 +441,7 @@ public LaunchOptions setIgnoreAllDefaultArgs(boolean ignoreAllDefaultArgs) {
* If {@code true}, Playwright does not pass its own configurations args and only uses the ones from {@code args}.
* Dangerous option; use with care.
*/
- public LaunchOptions setIgnoreDefaultArgs(List ignoreDefaultArgs) {
+ public LaunchOptions setIgnoreDefaultArgs(@Nullable List ignoreDefaultArgs) {
this.ignoreDefaultArgs = ignoreDefaultArgs;
return this;
}
@@ -454,14 +454,14 @@ public LaunchOptions setProxy(String server) {
/**
* Network proxy settings.
*/
- public LaunchOptions setProxy(Proxy proxy) {
+ public LaunchOptions setProxy(@Nullable Proxy proxy) {
this.proxy = proxy;
return this;
}
/**
* Slows down Playwright operations by the specified amount of milliseconds. Useful so that you can see what is going on.
*/
- public LaunchOptions setSlowMo(double slowMo) {
+ public LaunchOptions setSlowMo(@Nullable Double slowMo) {
this.slowMo = slowMo;
return this;
}
@@ -469,14 +469,14 @@ public LaunchOptions setSlowMo(double slowMo) {
* Maximum time in milliseconds to wait for the browser instance to start. Defaults to {@code 30000} (30 seconds). Pass
* {@code 0} to disable timeout.
*/
- public LaunchOptions setTimeout(double timeout) {
+ public LaunchOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
/**
* If specified, traces are saved into this directory.
*/
- public LaunchOptions setTracesDir(Path tracesDir) {
+ public LaunchOptions setTracesDir(@Nullable Path tracesDir) {
this.tracesDir = tracesDir;
return this;
}
@@ -782,7 +782,7 @@ class LaunchPersistentContextOptions {
/**
* Whether to automatically download all the attachments. Defaults to {@code true} where all the downloads are accepted.
*/
- public LaunchPersistentContextOptions setAcceptDownloads(boolean acceptDownloads) {
+ public LaunchPersistentContextOptions setAcceptDownloads(@Nullable Boolean acceptDownloads) {
this.acceptDownloads = acceptDownloads;
return this;
}
@@ -792,7 +792,7 @@ public LaunchPersistentContextOptions setAcceptDownloads(boolean acceptDownloads
*
Additional arguments to pass to the browser instance. The list of Chromium flags can be found here.
*/
- public LaunchPersistentContextOptions setArgs(List args) {
+ public LaunchPersistentContextOptions setArgs(@Nullable List args) {
this.args = args;
return this;
}
@@ -801,7 +801,7 @@ public LaunchPersistentContextOptions setArgs(List args) {
* cleaned up when the browser closes. If not specified, a temporary directory is used and cleaned up when the browser
* closes.
*/
- public LaunchPersistentContextOptions setArtifactsDir(Path artifactsDir) {
+ public LaunchPersistentContextOptions setArtifactsDir(@Nullable Path artifactsDir) {
this.artifactsDir = artifactsDir;
return this;
}
@@ -821,14 +821,14 @@ public LaunchPersistentContextOptions setArtifactsDir(Path artifactsDir) {
* {@code http://localhost:3000/bar.html}
*
*/
- public LaunchPersistentContextOptions setBaseURL(String baseURL) {
+ public LaunchPersistentContextOptions setBaseURL(@Nullable String baseURL) {
this.baseURL = baseURL;
return this;
}
/**
* Toggles bypassing page's Content-Security-Policy. Defaults to {@code false}.
*/
- public LaunchPersistentContextOptions setBypassCSP(boolean bypassCSP) {
+ public LaunchPersistentContextOptions setBypassCSP(@Nullable Boolean bypassCSP) {
this.bypassCSP = bypassCSP;
return this;
}
@@ -843,7 +843,7 @@ public LaunchPersistentContextOptions setBypassCSP(boolean bypassCSP) {
* use branded Google Chrome and
* Microsoft Edge.
*/
- public LaunchPersistentContextOptions setChannel(BrowserChannel channel) {
+ public LaunchPersistentContextOptions setChannel(@Nullable BrowserChannel channel) {
this.channel = channel;
return this;
}
@@ -857,14 +857,14 @@ public LaunchPersistentContextOptions setChannel(BrowserChannel channel) {
* use branded Google Chrome and
* Microsoft Edge.
*/
- public LaunchPersistentContextOptions setChannel(String channel) {
+ public LaunchPersistentContextOptions setChannel(@Nullable String channel) {
this.channel = channel;
return this;
}
/**
* Enable Chromium sandboxing. Defaults to {@code false}.
*/
- public LaunchPersistentContextOptions setChromiumSandbox(boolean chromiumSandbox) {
+ public LaunchPersistentContextOptions setChromiumSandbox(@Nullable Boolean chromiumSandbox) {
this.chromiumSandbox = chromiumSandbox;
return this;
}
@@ -885,7 +885,7 @@ public LaunchPersistentContextOptions setChromiumSandbox(boolean chromiumSandbox
*
NOTE: When using WebKit on macOS, accessing {@code localhost} will not pick up client certificates. You can make it work by
* replacing {@code localhost} with {@code local.playwright}.
*/
- public LaunchPersistentContextOptions setClientCertificates(List clientCertificates) {
+ public LaunchPersistentContextOptions setClientCertificates(@Nullable List clientCertificates) {
this.clientCertificates = clientCertificates;
return this;
}
@@ -913,7 +913,7 @@ public LaunchPersistentContextOptions setContrast(@Nullable Contrast contrast) {
* Specify device scale factor (can be thought of as dpr). Defaults to {@code 1}. Learn more about emulating devices with device scale factor.
*/
- public LaunchPersistentContextOptions setDeviceScaleFactor(double deviceScaleFactor) {
+ public LaunchPersistentContextOptions setDeviceScaleFactor(@Nullable Double deviceScaleFactor) {
this.deviceScaleFactor = deviceScaleFactor;
return this;
}
@@ -922,14 +922,14 @@ public LaunchPersistentContextOptions setDeviceScaleFactor(double deviceScaleFac
* deleted when browser is closed. In either case, the downloads are deleted when the browser context they were created in
* is closed.
*/
- public LaunchPersistentContextOptions setDownloadsPath(Path downloadsPath) {
+ public LaunchPersistentContextOptions setDownloadsPath(@Nullable Path downloadsPath) {
this.downloadsPath = downloadsPath;
return this;
}
/**
* Specify environment variables that will be visible to the browser. Defaults to {@code process.env}.
*/
- public LaunchPersistentContextOptions setEnv(Map env) {
+ public LaunchPersistentContextOptions setEnv(@Nullable Map env) {
this.env = env;
return this;
}
@@ -938,14 +938,14 @@ public LaunchPersistentContextOptions setEnv(Map env) {
* resolved relative to the current working directory. Note that Playwright only works with the bundled Chromium, Firefox
* or WebKit, use at your own risk.
*/
- public LaunchPersistentContextOptions setExecutablePath(Path executablePath) {
+ public LaunchPersistentContextOptions setExecutablePath(@Nullable Path executablePath) {
this.executablePath = executablePath;
return this;
}
/**
* An object containing additional HTTP headers to be sent with every request. Defaults to none.
*/
- public LaunchPersistentContextOptions setExtraHTTPHeaders(Map extraHTTPHeaders) {
+ public LaunchPersistentContextOptions setExtraHTTPHeaders(@Nullable Map extraHTTPHeaders) {
this.extraHTTPHeaders = extraHTTPHeaders;
return this;
}
@@ -956,7 +956,7 @@ public LaunchPersistentContextOptions setExtraHTTPHeaders(Map ex
*
You can also provide a path to a custom {@code policies.json}
* file via {@code PLAYWRIGHT_FIREFOX_POLICIES_JSON} environment variable.
*/
- public LaunchPersistentContextOptions setFirefoxUserPrefs(Map firefoxUserPrefs) {
+ public LaunchPersistentContextOptions setFirefoxUserPrefs(@Nullable Map firefoxUserPrefs) {
this.firefoxUserPrefs = firefoxUserPrefs;
return this;
}
@@ -972,28 +972,28 @@ public LaunchPersistentContextOptions setForcedColors(@Nullable ForcedColors for
public LaunchPersistentContextOptions setGeolocation(double latitude, double longitude) {
return setGeolocation(new Geolocation(latitude, longitude));
}
- public LaunchPersistentContextOptions setGeolocation(Geolocation geolocation) {
+ public LaunchPersistentContextOptions setGeolocation(@Nullable Geolocation geolocation) {
this.geolocation = geolocation;
return this;
}
/**
* Close the browser process on SIGHUP. Defaults to {@code true}.
*/
- public LaunchPersistentContextOptions setHandleSIGHUP(boolean handleSIGHUP) {
+ public LaunchPersistentContextOptions setHandleSIGHUP(@Nullable Boolean handleSIGHUP) {
this.handleSIGHUP = handleSIGHUP;
return this;
}
/**
* Close the browser process on Ctrl-C. Defaults to {@code true}.
*/
- public LaunchPersistentContextOptions setHandleSIGINT(boolean handleSIGINT) {
+ public LaunchPersistentContextOptions setHandleSIGINT(@Nullable Boolean handleSIGINT) {
this.handleSIGINT = handleSIGINT;
return this;
}
/**
* Close the browser process on SIGTERM. Defaults to {@code true}.
*/
- public LaunchPersistentContextOptions setHandleSIGTERM(boolean handleSIGTERM) {
+ public LaunchPersistentContextOptions setHandleSIGTERM(@Nullable Boolean handleSIGTERM) {
this.handleSIGTERM = handleSIGTERM;
return this;
}
@@ -1001,7 +1001,7 @@ public LaunchPersistentContextOptions setHandleSIGTERM(boolean handleSIGTERM) {
* Specifies if viewport supports touch events. Defaults to false. Learn more about mobile emulation.
*/
- public LaunchPersistentContextOptions setHasTouch(boolean hasTouch) {
+ public LaunchPersistentContextOptions setHasTouch(@Nullable Boolean hasTouch) {
this.hasTouch = hasTouch;
return this;
}
@@ -1010,7 +1010,7 @@ public LaunchPersistentContextOptions setHasTouch(boolean hasTouch) {
* href="https://developers.google.com/web/updates/2017/04/headless-chrome">Chromium and Firefox. Defaults to {@code true}.
*/
- public LaunchPersistentContextOptions setHeadless(boolean headless) {
+ public LaunchPersistentContextOptions setHeadless(@Nullable Boolean headless) {
this.headless = headless;
return this;
}
@@ -1031,7 +1031,7 @@ public LaunchPersistentContextOptions setHttpCredentials(String username, String
*
Pass an array to use different credentials for different origins. The first entry that matches the request origin is
* used, and entries with no origin match any request.
*/
- public LaunchPersistentContextOptions setHttpCredentials(HttpCredentials httpCredentials) {
+ public LaunchPersistentContextOptions setHttpCredentials(@Nullable HttpCredentials httpCredentials) {
this.httpCredentials = httpCredentials;
return this;
}
@@ -1042,7 +1042,7 @@ public LaunchPersistentContextOptions setHttpCredentials(HttpCredentials httpCre
*
Pass an array to use different credentials for different origins. The first entry that matches the request origin is
* used, and entries with no origin match any request.
*/
- public LaunchPersistentContextOptions setHttpCredentials(List httpCredentials) {
+ public LaunchPersistentContextOptions setHttpCredentials(@Nullable List httpCredentials) {
this.httpCredentials = httpCredentials;
return this;
}
@@ -1050,7 +1050,7 @@ public LaunchPersistentContextOptions setHttpCredentials(List h
* If {@code true}, Playwright does not pass its own configurations args and only uses the ones from {@code args}.
* Dangerous option; use with care. Defaults to {@code false}.
*/
- public LaunchPersistentContextOptions setIgnoreAllDefaultArgs(boolean ignoreAllDefaultArgs) {
+ public LaunchPersistentContextOptions setIgnoreAllDefaultArgs(@Nullable Boolean ignoreAllDefaultArgs) {
this.ignoreAllDefaultArgs = ignoreAllDefaultArgs;
return this;
}
@@ -1058,14 +1058,14 @@ public LaunchPersistentContextOptions setIgnoreAllDefaultArgs(boolean ignoreAllD
* If {@code true}, Playwright does not pass its own configurations args and only uses the ones from {@code args}.
* Dangerous option; use with care.
*/
- public LaunchPersistentContextOptions setIgnoreDefaultArgs(List ignoreDefaultArgs) {
+ public LaunchPersistentContextOptions setIgnoreDefaultArgs(@Nullable List ignoreDefaultArgs) {
this.ignoreDefaultArgs = ignoreDefaultArgs;
return this;
}
/**
* Whether to ignore HTTPS errors when sending network requests. Defaults to {@code false}.
*/
- public LaunchPersistentContextOptions setIgnoreHTTPSErrors(boolean ignoreHTTPSErrors) {
+ public LaunchPersistentContextOptions setIgnoreHTTPSErrors(@Nullable Boolean ignoreHTTPSErrors) {
this.ignoreHTTPSErrors = ignoreHTTPSErrors;
return this;
}
@@ -1074,7 +1074,7 @@ public LaunchPersistentContextOptions setIgnoreHTTPSErrors(boolean ignoreHTTPSEr
* so you don't actually need to set it manually. Defaults to {@code false} and is not supported in Firefox. Learn more
* about mobile emulation.
*/
- public LaunchPersistentContextOptions setIsMobile(boolean isMobile) {
+ public LaunchPersistentContextOptions setIsMobile(@Nullable Boolean isMobile) {
this.isMobile = isMobile;
return this;
}
@@ -1082,7 +1082,7 @@ public LaunchPersistentContextOptions setIsMobile(boolean isMobile) {
* Whether or not to enable JavaScript in the context. Defaults to {@code true}. Learn more about disabling JavaScript.
*/
- public LaunchPersistentContextOptions setJavaScriptEnabled(boolean javaScriptEnabled) {
+ public LaunchPersistentContextOptions setJavaScriptEnabled(@Nullable Boolean javaScriptEnabled) {
this.javaScriptEnabled = javaScriptEnabled;
return this;
}
@@ -1092,7 +1092,7 @@ public LaunchPersistentContextOptions setJavaScriptEnabled(boolean javaScriptEna
* locale. Learn more about emulation in our emulation guide.
*/
- public LaunchPersistentContextOptions setLocale(String locale) {
+ public LaunchPersistentContextOptions setLocale(@Nullable String locale) {
this.locale = locale;
return this;
}
@@ -1100,7 +1100,7 @@ public LaunchPersistentContextOptions setLocale(String locale) {
* Whether to emulate network being offline. Defaults to {@code false}. Learn more about network emulation.
*/
- public LaunchPersistentContextOptions setOffline(boolean offline) {
+ public LaunchPersistentContextOptions setOffline(@Nullable Boolean offline) {
this.offline = offline;
return this;
}
@@ -1109,7 +1109,7 @@ public LaunchPersistentContextOptions setOffline(boolean offline) {
* com.microsoft.playwright.BrowserContext#grantPermissions BrowserContext.grantPermissions()} for more details. Defaults
* to none.
*/
- public LaunchPersistentContextOptions setPermissions(List permissions) {
+ public LaunchPersistentContextOptions setPermissions(@Nullable List permissions) {
this.permissions = permissions;
return this;
}
@@ -1122,7 +1122,7 @@ public LaunchPersistentContextOptions setProxy(String server) {
/**
* Network proxy settings.
*/
- public LaunchPersistentContextOptions setProxy(Proxy proxy) {
+ public LaunchPersistentContextOptions setProxy(@Nullable Proxy proxy) {
this.proxy = proxy;
return this;
}
@@ -1131,7 +1131,7 @@ public LaunchPersistentContextOptions setProxy(Proxy proxy) {
* {@code attach} is specified, resources are persisted as separate files and all of these files are archived along with
* the HAR file. Defaults to {@code embed}, which stores content inline the HAR file as per HAR specification.
*/
- public LaunchPersistentContextOptions setRecordHarContent(HarContentPolicy recordHarContent) {
+ public LaunchPersistentContextOptions setRecordHarContent(@Nullable HarContentPolicy recordHarContent) {
this.recordHarContent = recordHarContent;
return this;
}
@@ -1140,14 +1140,14 @@ public LaunchPersistentContextOptions setRecordHarContent(HarContentPolicy recor
* cookies, security and other types of HAR information that are not used when replaying from HAR. Defaults to {@code
* full}.
*/
- public LaunchPersistentContextOptions setRecordHarMode(HarMode recordHarMode) {
+ public LaunchPersistentContextOptions setRecordHarMode(@Nullable HarMode recordHarMode) {
this.recordHarMode = recordHarMode;
return this;
}
/**
* Optional setting to control whether to omit request content from the HAR. Defaults to {@code false}.
*/
- public LaunchPersistentContextOptions setRecordHarOmitContent(boolean recordHarOmitContent) {
+ public LaunchPersistentContextOptions setRecordHarOmitContent(@Nullable Boolean recordHarOmitContent) {
this.recordHarOmitContent = recordHarOmitContent;
return this;
}
@@ -1156,15 +1156,15 @@ public LaunchPersistentContextOptions setRecordHarOmitContent(boolean recordHarO
* file on the filesystem. If not specified, the HAR is not recorded. Make sure to call {@link
* com.microsoft.playwright.BrowserContext#close BrowserContext.close()} for the HAR to be saved.
*/
- public LaunchPersistentContextOptions setRecordHarPath(Path recordHarPath) {
+ public LaunchPersistentContextOptions setRecordHarPath(@Nullable Path recordHarPath) {
this.recordHarPath = recordHarPath;
return this;
}
- public LaunchPersistentContextOptions setRecordHarUrlFilter(String recordHarUrlFilter) {
+ public LaunchPersistentContextOptions setRecordHarUrlFilter(@Nullable String recordHarUrlFilter) {
this.recordHarUrlFilter = recordHarUrlFilter;
return this;
}
- public LaunchPersistentContextOptions setRecordHarUrlFilter(Pattern recordHarUrlFilter) {
+ public LaunchPersistentContextOptions setRecordHarUrlFilter(@Nullable Pattern recordHarUrlFilter) {
this.recordHarUrlFilter = recordHarUrlFilter;
return this;
}
@@ -1172,7 +1172,7 @@ public LaunchPersistentContextOptions setRecordHarUrlFilter(Pattern recordHarUrl
* Enables video recording for all pages into the specified directory. If not specified videos are not recorded. Make sure
* to call {@link com.microsoft.playwright.BrowserContext#close BrowserContext.close()} for videos to be saved.
*/
- public LaunchPersistentContextOptions setRecordVideoDir(Path recordVideoDir) {
+ public LaunchPersistentContextOptions setRecordVideoDir(@Nullable Path recordVideoDir) {
this.recordVideoDir = recordVideoDir;
return this;
}
@@ -1189,7 +1189,7 @@ public LaunchPersistentContextOptions setRecordVideoSize(int width, int height)
* 800x800. If {@code viewport} is not configured explicitly the video size defaults to 800x450. Actual picture of each
* page will be scaled down if necessary to fit the specified size.
*/
- public LaunchPersistentContextOptions setRecordVideoSize(RecordVideoSize recordVideoSize) {
+ public LaunchPersistentContextOptions setRecordVideoSize(@Nullable RecordVideoSize recordVideoSize) {
this.recordVideoSize = recordVideoSize;
return this;
}
@@ -1213,7 +1213,7 @@ public LaunchPersistentContextOptions setScreenSize(int width, int height) {
* Emulates consistent window screen size available inside web page via {@code window.screen}. Is only used when the {@code
* viewport} is set.
*/
- public LaunchPersistentContextOptions setScreenSize(ScreenSize screenSize) {
+ public LaunchPersistentContextOptions setScreenSize(@Nullable ScreenSize screenSize) {
this.screenSize = screenSize;
return this;
}
@@ -1225,14 +1225,14 @@ public LaunchPersistentContextOptions setScreenSize(ScreenSize screenSize) {
*
{@code "block"}: Playwright will block all registration of Service Workers.
*
*/
- public LaunchPersistentContextOptions setServiceWorkers(ServiceWorkerPolicy serviceWorkers) {
+ public LaunchPersistentContextOptions setServiceWorkers(@Nullable ServiceWorkerPolicy serviceWorkers) {
this.serviceWorkers = serviceWorkers;
return this;
}
/**
* Slows down Playwright operations by the specified amount of milliseconds. Useful so that you can see what is going on.
*/
- public LaunchPersistentContextOptions setSlowMo(double slowMo) {
+ public LaunchPersistentContextOptions setSlowMo(@Nullable Double slowMo) {
this.slowMo = slowMo;
return this;
}
@@ -1242,7 +1242,7 @@ public LaunchPersistentContextOptions setSlowMo(double slowMo) {
* affect any Locator APIs (Locators are always strict). Defaults to {@code false}. See {@code Locator} to learn more about
* the strict mode.
*/
- public LaunchPersistentContextOptions setStrictSelectors(boolean strictSelectors) {
+ public LaunchPersistentContextOptions setStrictSelectors(@Nullable Boolean strictSelectors) {
this.strictSelectors = strictSelectors;
return this;
}
@@ -1250,7 +1250,7 @@ public LaunchPersistentContextOptions setStrictSelectors(boolean strictSelectors
* Maximum time in milliseconds to wait for the browser instance to start. Defaults to {@code 30000} (30 seconds). Pass
* {@code 0} to disable timeout.
*/
- public LaunchPersistentContextOptions setTimeout(double timeout) {
+ public LaunchPersistentContextOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1259,21 +1259,21 @@ public LaunchPersistentContextOptions setTimeout(double timeout) {
* href="https://cs.chromium.org/chromium/src/third_party/icu/source/data/misc/metaZones.txt?rcl=faee8bc70570192d82d2978a71e2a615788597d1">ICU's
* metaZones.txt for a list of supported timezone IDs. Defaults to the system timezone.
*/
- public LaunchPersistentContextOptions setTimezoneId(String timezoneId) {
+ public LaunchPersistentContextOptions setTimezoneId(@Nullable String timezoneId) {
this.timezoneId = timezoneId;
return this;
}
/**
* If specified, traces are saved into this directory.
*/
- public LaunchPersistentContextOptions setTracesDir(Path tracesDir) {
+ public LaunchPersistentContextOptions setTracesDir(@Nullable Path tracesDir) {
this.tracesDir = tracesDir;
return this;
}
/**
* Specific user agent to use in this context.
*/
- public LaunchPersistentContextOptions setUserAgent(String userAgent) {
+ public LaunchPersistentContextOptions setUserAgent(@Nullable String userAgent) {
this.userAgent = userAgent;
return this;
}
diff --git a/playwright/src/main/java/com/microsoft/playwright/Clock.java b/playwright/src/main/java/com/microsoft/playwright/Clock.java
index c70004e6c..7ae72f0d1 100644
--- a/playwright/src/main/java/com/microsoft/playwright/Clock.java
+++ b/playwright/src/main/java/com/microsoft/playwright/Clock.java
@@ -36,21 +36,21 @@ class InstallOptions {
/**
* Time to initialize with, current system time by default.
*/
- public InstallOptions setTime(long time) {
+ public InstallOptions setTime(@Nullable Long time) {
this.time = time;
return this;
}
/**
* Time to initialize with, current system time by default.
*/
- public InstallOptions setTime(String time) {
+ public InstallOptions setTime(@Nullable String time) {
this.time = time;
return this;
}
/**
* Time to initialize with, current system time by default.
*/
- public InstallOptions setTime(Date time) {
+ public InstallOptions setTime(@Nullable Date time) {
this.time = time;
return this;
}
diff --git a/playwright/src/main/java/com/microsoft/playwright/Credentials.java b/playwright/src/main/java/com/microsoft/playwright/Credentials.java
index 15d2cf098..c07f93ca9 100644
--- a/playwright/src/main/java/com/microsoft/playwright/Credentials.java
+++ b/playwright/src/main/java/com/microsoft/playwright/Credentials.java
@@ -105,28 +105,28 @@ class CreateOptions {
/**
* Base64url-encoded credential id. Auto-generated if omitted.
*/
- public CreateOptions setId(String id) {
+ public CreateOptions setId(@Nullable String id) {
this.id = id;
return this;
}
/**
* Base64url-encoded PKCS#8 (DER) private key. Auto-generated if omitted.
*/
- public CreateOptions setPrivateKey(String privateKey) {
+ public CreateOptions setPrivateKey(@Nullable String privateKey) {
this.privateKey = privateKey;
return this;
}
/**
* Base64url-encoded SPKI (DER) public key. Auto-generated if omitted.
*/
- public CreateOptions setPublicKey(String publicKey) {
+ public CreateOptions setPublicKey(@Nullable String publicKey) {
this.publicKey = publicKey;
return this;
}
/**
* Base64url-encoded user handle. Auto-generated if omitted.
*/
- public CreateOptions setUserHandle(String userHandle) {
+ public CreateOptions setUserHandle(@Nullable String userHandle) {
this.userHandle = userHandle;
return this;
}
@@ -144,14 +144,14 @@ class GetOptions {
/**
* Only return the credential with this base64url-encoded id.
*/
- public GetOptions setId(String id) {
+ public GetOptions setId(@Nullable String id) {
this.id = id;
return this;
}
/**
* Only return credentials for this relying party id.
*/
- public GetOptions setRpId(String rpId) {
+ public GetOptions setRpId(@Nullable String rpId) {
this.rpId = rpId;
return this;
}
diff --git a/playwright/src/main/java/com/microsoft/playwright/ElementHandle.java b/playwright/src/main/java/com/microsoft/playwright/ElementHandle.java
index 53bd72438..f21d81be2 100644
--- a/playwright/src/main/java/com/microsoft/playwright/ElementHandle.java
+++ b/playwright/src/main/java/com/microsoft/playwright/ElementHandle.java
@@ -99,14 +99,14 @@ class CheckOptions {
* Whether to bypass the actionability checks. Defaults to
* {@code false}.
*/
- public CheckOptions setForce(boolean force) {
+ public CheckOptions setForce(@Nullable Boolean force) {
this.force = force;
return this;
}
/**
* @deprecated This option has no effect.
*/
- public CheckOptions setNoWaitAfter(boolean noWaitAfter) {
+ public CheckOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -121,7 +121,7 @@ public CheckOptions setPosition(double x, double y) {
* A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the
* element.
*/
- public CheckOptions setPosition(Position position) {
+ public CheckOptions setPosition(@Nullable Position position) {
this.position = position;
return this;
}
@@ -131,7 +131,7 @@ public CheckOptions setPosition(Position position) {
* "none"}, Playwright does not scroll the element and the action fails if the element is not already in the viewport. This
* is useful to assert that an element is reachable by the user without additional scrolling.
*/
- public CheckOptions setScroll(ScrollMode scroll) {
+ public CheckOptions setScroll(@Nullable ScrollMode scroll) {
this.scroll = scroll;
return this;
}
@@ -141,7 +141,7 @@ public CheckOptions setScroll(ScrollMode scroll) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public CheckOptions setTimeout(double timeout) {
+ public CheckOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -150,7 +150,7 @@ public CheckOptions setTimeout(double timeout) {
* checks and skips the action. Defaults to {@code false}. Useful to wait until the element is ready for the action without
* performing it.
*/
- public CheckOptions setTrial(boolean trial) {
+ public CheckOptions setTrial(@Nullable Boolean trial) {
this.trial = trial;
return this;
}
@@ -218,21 +218,21 @@ class ClickOptions {
/**
* Defaults to {@code left}.
*/
- public ClickOptions setButton(MouseButton button) {
+ public ClickOptions setButton(@Nullable MouseButton button) {
this.button = button;
return this;
}
/**
* defaults to 1. See [UIEvent.detail].
*/
- public ClickOptions setClickCount(int clickCount) {
+ public ClickOptions setClickCount(@Nullable Integer clickCount) {
this.clickCount = clickCount;
return this;
}
/**
* Time to wait between {@code mousedown} and {@code mouseup} in milliseconds. Defaults to 0.
*/
- public ClickOptions setDelay(double delay) {
+ public ClickOptions setDelay(@Nullable Double delay) {
this.delay = delay;
return this;
}
@@ -240,7 +240,7 @@ public ClickOptions setDelay(double delay) {
* Whether to bypass the actionability checks. Defaults to
* {@code false}.
*/
- public ClickOptions setForce(boolean force) {
+ public ClickOptions setForce(@Nullable Boolean force) {
this.force = force;
return this;
}
@@ -249,14 +249,14 @@ public ClickOptions setForce(boolean force) {
* modifiers back. If not specified, currently pressed modifiers are used. "ControlOrMeta" resolves to "Control" on Windows
* and Linux and to "Meta" on macOS.
*/
- public ClickOptions setModifiers(List modifiers) {
+ public ClickOptions setModifiers(@Nullable List modifiers) {
this.modifiers = modifiers;
return this;
}
/**
* @deprecated This option will default to {@code true} in the future.
*/
- public ClickOptions setNoWaitAfter(boolean noWaitAfter) {
+ public ClickOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -271,7 +271,7 @@ public ClickOptions setPosition(double x, double y) {
* A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the
* element.
*/
- public ClickOptions setPosition(Position position) {
+ public ClickOptions setPosition(@Nullable Position position) {
this.position = position;
return this;
}
@@ -281,7 +281,7 @@ public ClickOptions setPosition(Position position) {
* "none"}, Playwright does not scroll the element and the action fails if the element is not already in the viewport. This
* is useful to assert that an element is reachable by the user without additional scrolling.
*/
- public ClickOptions setScroll(ScrollMode scroll) {
+ public ClickOptions setScroll(@Nullable ScrollMode scroll) {
this.scroll = scroll;
return this;
}
@@ -290,7 +290,7 @@ public ClickOptions setScroll(ScrollMode scroll) {
* cursor position and the provided destination. When set to 1, emits a single {@code mousemove} event at the destination
* location.
*/
- public ClickOptions setSteps(int steps) {
+ public ClickOptions setSteps(@Nullable Integer steps) {
this.steps = steps;
return this;
}
@@ -300,7 +300,7 @@ public ClickOptions setSteps(int steps) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public ClickOptions setTimeout(double timeout) {
+ public ClickOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -309,7 +309,7 @@ public ClickOptions setTimeout(double timeout) {
* checks and skips the action. Defaults to {@code false}. Useful to wait until the element is ready for the action without
* performing it.
*/
- public ClickOptions setTrial(boolean trial) {
+ public ClickOptions setTrial(@Nullable Boolean trial) {
this.trial = trial;
return this;
}
@@ -373,14 +373,14 @@ class DblclickOptions {
/**
* Defaults to {@code left}.
*/
- public DblclickOptions setButton(MouseButton button) {
+ public DblclickOptions setButton(@Nullable MouseButton button) {
this.button = button;
return this;
}
/**
* Time to wait between {@code mousedown} and {@code mouseup} in milliseconds. Defaults to 0.
*/
- public DblclickOptions setDelay(double delay) {
+ public DblclickOptions setDelay(@Nullable Double delay) {
this.delay = delay;
return this;
}
@@ -388,7 +388,7 @@ public DblclickOptions setDelay(double delay) {
* Whether to bypass the actionability checks. Defaults to
* {@code false}.
*/
- public DblclickOptions setForce(boolean force) {
+ public DblclickOptions setForce(@Nullable Boolean force) {
this.force = force;
return this;
}
@@ -397,14 +397,14 @@ public DblclickOptions setForce(boolean force) {
* modifiers back. If not specified, currently pressed modifiers are used. "ControlOrMeta" resolves to "Control" on Windows
* and Linux and to "Meta" on macOS.
*/
- public DblclickOptions setModifiers(List modifiers) {
+ public DblclickOptions setModifiers(@Nullable List modifiers) {
this.modifiers = modifiers;
return this;
}
/**
* @deprecated This option has no effect.
*/
- public DblclickOptions setNoWaitAfter(boolean noWaitAfter) {
+ public DblclickOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -419,7 +419,7 @@ public DblclickOptions setPosition(double x, double y) {
* A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the
* element.
*/
- public DblclickOptions setPosition(Position position) {
+ public DblclickOptions setPosition(@Nullable Position position) {
this.position = position;
return this;
}
@@ -429,7 +429,7 @@ public DblclickOptions setPosition(Position position) {
* "none"}, Playwright does not scroll the element and the action fails if the element is not already in the viewport. This
* is useful to assert that an element is reachable by the user without additional scrolling.
*/
- public DblclickOptions setScroll(ScrollMode scroll) {
+ public DblclickOptions setScroll(@Nullable ScrollMode scroll) {
this.scroll = scroll;
return this;
}
@@ -438,7 +438,7 @@ public DblclickOptions setScroll(ScrollMode scroll) {
* cursor position and the provided destination. When set to 1, emits a single {@code mousemove} event at the destination
* location.
*/
- public DblclickOptions setSteps(int steps) {
+ public DblclickOptions setSteps(@Nullable Integer steps) {
this.steps = steps;
return this;
}
@@ -448,7 +448,7 @@ public DblclickOptions setSteps(int steps) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public DblclickOptions setTimeout(double timeout) {
+ public DblclickOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -457,7 +457,7 @@ public DblclickOptions setTimeout(double timeout) {
* checks and skips the action. Defaults to {@code false}. Useful to wait until the element is ready for the action without
* performing it.
*/
- public DblclickOptions setTrial(boolean trial) {
+ public DblclickOptions setTrial(@Nullable Boolean trial) {
this.trial = trial;
return this;
}
@@ -484,14 +484,14 @@ class FillOptions {
* Whether to bypass the actionability checks. Defaults to
* {@code false}.
*/
- public FillOptions setForce(boolean force) {
+ public FillOptions setForce(@Nullable Boolean force) {
this.force = force;
return this;
}
/**
* @deprecated This option has no effect.
*/
- public FillOptions setNoWaitAfter(boolean noWaitAfter) {
+ public FillOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -501,7 +501,7 @@ public FillOptions setNoWaitAfter(boolean noWaitAfter) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public FillOptions setTimeout(double timeout) {
+ public FillOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -552,7 +552,7 @@ class HoverOptions {
* Whether to bypass the actionability checks. Defaults to
* {@code false}.
*/
- public HoverOptions setForce(boolean force) {
+ public HoverOptions setForce(@Nullable Boolean force) {
this.force = force;
return this;
}
@@ -561,14 +561,14 @@ public HoverOptions setForce(boolean force) {
* modifiers back. If not specified, currently pressed modifiers are used. "ControlOrMeta" resolves to "Control" on Windows
* and Linux and to "Meta" on macOS.
*/
- public HoverOptions setModifiers(List modifiers) {
+ public HoverOptions setModifiers(@Nullable List modifiers) {
this.modifiers = modifiers;
return this;
}
/**
* @deprecated This option has no effect.
*/
- public HoverOptions setNoWaitAfter(boolean noWaitAfter) {
+ public HoverOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -583,7 +583,7 @@ public HoverOptions setPosition(double x, double y) {
* A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the
* element.
*/
- public HoverOptions setPosition(Position position) {
+ public HoverOptions setPosition(@Nullable Position position) {
this.position = position;
return this;
}
@@ -593,7 +593,7 @@ public HoverOptions setPosition(Position position) {
* "none"}, Playwright does not scroll the element and the action fails if the element is not already in the viewport. This
* is useful to assert that an element is reachable by the user without additional scrolling.
*/
- public HoverOptions setScroll(ScrollMode scroll) {
+ public HoverOptions setScroll(@Nullable ScrollMode scroll) {
this.scroll = scroll;
return this;
}
@@ -603,7 +603,7 @@ public HoverOptions setScroll(ScrollMode scroll) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public HoverOptions setTimeout(double timeout) {
+ public HoverOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -612,7 +612,7 @@ public HoverOptions setTimeout(double timeout) {
* checks and skips the action. Defaults to {@code false}. Useful to wait until the element is ready for the action without
* performing it.
*/
- public HoverOptions setTrial(boolean trial) {
+ public HoverOptions setTrial(@Nullable Boolean trial) {
this.trial = trial;
return this;
}
@@ -626,7 +626,7 @@ class InputValueOptions {
/**
* @deprecated This option is ignored. The value is returned immediately.
*/
- public InputValueOptions setTimeout(double timeout) {
+ public InputValueOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -651,14 +651,14 @@ class PressOptions {
/**
* Time to wait between {@code keydown} and {@code keyup} in milliseconds. Defaults to 0.
*/
- public PressOptions setDelay(double delay) {
+ public PressOptions setDelay(@Nullable Double delay) {
this.delay = delay;
return this;
}
/**
* @deprecated This option will default to {@code true} in the future.
*/
- public PressOptions setNoWaitAfter(boolean noWaitAfter) {
+ public PressOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -668,7 +668,7 @@ public PressOptions setNoWaitAfter(boolean noWaitAfter) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public PressOptions setTimeout(double timeout) {
+ public PressOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -756,7 +756,7 @@ class ScreenshotOptions {
*
*
Defaults to {@code "allow"} that leaves animations untouched.
*/
- public ScreenshotOptions setAnimations(ScreenshotAnimations animations) {
+ public ScreenshotOptions setAnimations(@Nullable ScreenshotAnimations animations) {
this.animations = animations;
return this;
}
@@ -764,7 +764,7 @@ public ScreenshotOptions setAnimations(ScreenshotAnimations animations) {
* When set to {@code "hide"}, screenshot will hide text caret. When set to {@code "initial"}, text caret behavior will not
* be changed. Defaults to {@code "hide"}.
*/
- public ScreenshotOptions setCaret(ScreenshotCaret caret) {
+ public ScreenshotOptions setCaret(@Nullable ScreenshotCaret caret) {
this.caret = caret;
return this;
}
@@ -774,7 +774,7 @@ public ScreenshotOptions setCaret(ScreenshotCaret caret) {
* invisible elements, see Matching only
* visible elements to disable that.
*/
- public ScreenshotOptions setMask(List mask) {
+ public ScreenshotOptions setMask(@Nullable List mask) {
this.mask = mask;
return this;
}
@@ -783,7 +783,7 @@ public ScreenshotOptions setMask(List mask) {
* href="https://developer.mozilla.org/en-US/docs/Web/CSS/color_value">CSS color format. Default color is pink {@code
* #FF00FF}.
*/
- public ScreenshotOptions setMaskColor(String maskColor) {
+ public ScreenshotOptions setMaskColor(@Nullable String maskColor) {
this.maskColor = maskColor;
return this;
}
@@ -791,7 +791,7 @@ public ScreenshotOptions setMaskColor(String maskColor) {
* Hides default white background and allows capturing screenshots with transparency. Not applicable to {@code jpeg}
* images. Defaults to {@code false}.
*/
- public ScreenshotOptions setOmitBackground(boolean omitBackground) {
+ public ScreenshotOptions setOmitBackground(@Nullable Boolean omitBackground) {
this.omitBackground = omitBackground;
return this;
}
@@ -800,7 +800,7 @@ public ScreenshotOptions setOmitBackground(boolean omitBackground) {
* relative path, then it is resolved relative to the current working directory. If no path is provided, the image won't be
* saved to the disk.
*/
- public ScreenshotOptions setPath(Path path) {
+ public ScreenshotOptions setPath(@Nullable Path path) {
this.path = path;
return this;
}
@@ -809,7 +809,7 @@ public ScreenshotOptions setPath(Path path) {
* 80}. For {@code webp}, a quality of {@code 100} (the default) produces a lossless image, while lower values use lossy
* compression.
*/
- public ScreenshotOptions setQuality(int quality) {
+ public ScreenshotOptions setQuality(@Nullable Integer quality) {
this.quality = quality;
return this;
}
@@ -820,7 +820,7 @@ public ScreenshotOptions setQuality(int quality) {
*
*
Defaults to {@code "device"}.
*/
- public ScreenshotOptions setScale(ScreenshotScale scale) {
+ public ScreenshotOptions setScale(@Nullable ScreenshotScale scale) {
this.scale = scale;
return this;
}
@@ -829,7 +829,7 @@ public ScreenshotOptions setScale(ScreenshotScale scale) {
* invisible or change their properties to help you creating repeatable screenshots. This stylesheet pierces the Shadow DOM
* and applies to the inner frames.
*/
- public ScreenshotOptions setStyle(String style) {
+ public ScreenshotOptions setStyle(@Nullable String style) {
this.style = style;
return this;
}
@@ -839,14 +839,14 @@ public ScreenshotOptions setStyle(String style) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public ScreenshotOptions setTimeout(double timeout) {
+ public ScreenshotOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
/**
* Specify screenshot type, defaults to {@code png}.
*/
- public ScreenshotOptions setType(ScreenshotType type) {
+ public ScreenshotOptions setType(@Nullable ScreenshotType type) {
this.type = type;
return this;
}
@@ -866,7 +866,7 @@ class ScrollIntoViewIfNeededOptions {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public ScrollIntoViewIfNeededOptions setTimeout(double timeout) {
+ public ScrollIntoViewIfNeededOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -893,14 +893,14 @@ class SelectOptionOptions {
* Whether to bypass the actionability checks. Defaults to
* {@code false}.
*/
- public SelectOptionOptions setForce(boolean force) {
+ public SelectOptionOptions setForce(@Nullable Boolean force) {
this.force = force;
return this;
}
/**
* @deprecated This option has no effect.
*/
- public SelectOptionOptions setNoWaitAfter(boolean noWaitAfter) {
+ public SelectOptionOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -910,7 +910,7 @@ public SelectOptionOptions setNoWaitAfter(boolean noWaitAfter) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public SelectOptionOptions setTimeout(double timeout) {
+ public SelectOptionOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -933,7 +933,7 @@ class SelectTextOptions {
* Whether to bypass the actionability checks. Defaults to
* {@code false}.
*/
- public SelectTextOptions setForce(boolean force) {
+ public SelectTextOptions setForce(@Nullable Boolean force) {
this.force = force;
return this;
}
@@ -943,7 +943,7 @@ public SelectTextOptions setForce(boolean force) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public SelectTextOptions setTimeout(double timeout) {
+ public SelectTextOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -988,14 +988,14 @@ class SetCheckedOptions {
* Whether to bypass the actionability checks. Defaults to
* {@code false}.
*/
- public SetCheckedOptions setForce(boolean force) {
+ public SetCheckedOptions setForce(@Nullable Boolean force) {
this.force = force;
return this;
}
/**
* @deprecated This option has no effect.
*/
- public SetCheckedOptions setNoWaitAfter(boolean noWaitAfter) {
+ public SetCheckedOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -1010,7 +1010,7 @@ public SetCheckedOptions setPosition(double x, double y) {
* A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the
* element.
*/
- public SetCheckedOptions setPosition(Position position) {
+ public SetCheckedOptions setPosition(@Nullable Position position) {
this.position = position;
return this;
}
@@ -1020,7 +1020,7 @@ public SetCheckedOptions setPosition(Position position) {
* "none"}, Playwright does not scroll the element and the action fails if the element is not already in the viewport. This
* is useful to assert that an element is reachable by the user without additional scrolling.
*/
- public SetCheckedOptions setScroll(ScrollMode scroll) {
+ public SetCheckedOptions setScroll(@Nullable ScrollMode scroll) {
this.scroll = scroll;
return this;
}
@@ -1030,7 +1030,7 @@ public SetCheckedOptions setScroll(ScrollMode scroll) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public SetCheckedOptions setTimeout(double timeout) {
+ public SetCheckedOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1039,7 +1039,7 @@ public SetCheckedOptions setTimeout(double timeout) {
* checks and skips the action. Defaults to {@code false}. Useful to wait until the element is ready for the action without
* performing it.
*/
- public SetCheckedOptions setTrial(boolean trial) {
+ public SetCheckedOptions setTrial(@Nullable Boolean trial) {
this.trial = trial;
return this;
}
@@ -1060,7 +1060,7 @@ class SetInputFilesOptions {
/**
* @deprecated This option has no effect.
*/
- public SetInputFilesOptions setNoWaitAfter(boolean noWaitAfter) {
+ public SetInputFilesOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -1070,7 +1070,7 @@ public SetInputFilesOptions setNoWaitAfter(boolean noWaitAfter) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public SetInputFilesOptions setTimeout(double timeout) {
+ public SetInputFilesOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1121,7 +1121,7 @@ class TapOptions {
* Whether to bypass the actionability checks. Defaults to
* {@code false}.
*/
- public TapOptions setForce(boolean force) {
+ public TapOptions setForce(@Nullable Boolean force) {
this.force = force;
return this;
}
@@ -1130,14 +1130,14 @@ public TapOptions setForce(boolean force) {
* modifiers back. If not specified, currently pressed modifiers are used. "ControlOrMeta" resolves to "Control" on Windows
* and Linux and to "Meta" on macOS.
*/
- public TapOptions setModifiers(List modifiers) {
+ public TapOptions setModifiers(@Nullable List modifiers) {
this.modifiers = modifiers;
return this;
}
/**
* @deprecated This option has no effect.
*/
- public TapOptions setNoWaitAfter(boolean noWaitAfter) {
+ public TapOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -1152,7 +1152,7 @@ public TapOptions setPosition(double x, double y) {
* A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the
* element.
*/
- public TapOptions setPosition(Position position) {
+ public TapOptions setPosition(@Nullable Position position) {
this.position = position;
return this;
}
@@ -1162,7 +1162,7 @@ public TapOptions setPosition(Position position) {
* "none"}, Playwright does not scroll the element and the action fails if the element is not already in the viewport. This
* is useful to assert that an element is reachable by the user without additional scrolling.
*/
- public TapOptions setScroll(ScrollMode scroll) {
+ public TapOptions setScroll(@Nullable ScrollMode scroll) {
this.scroll = scroll;
return this;
}
@@ -1172,7 +1172,7 @@ public TapOptions setScroll(ScrollMode scroll) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public TapOptions setTimeout(double timeout) {
+ public TapOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1181,7 +1181,7 @@ public TapOptions setTimeout(double timeout) {
* checks and skips the action. Defaults to {@code false}. Useful to wait until the element is ready for the action without
* performing it.
*/
- public TapOptions setTrial(boolean trial) {
+ public TapOptions setTrial(@Nullable Boolean trial) {
this.trial = trial;
return this;
}
@@ -1206,14 +1206,14 @@ class TypeOptions {
/**
* Time to wait between key presses in milliseconds. Defaults to 0.
*/
- public TypeOptions setDelay(double delay) {
+ public TypeOptions setDelay(@Nullable Double delay) {
this.delay = delay;
return this;
}
/**
* @deprecated This option has no effect.
*/
- public TypeOptions setNoWaitAfter(boolean noWaitAfter) {
+ public TypeOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -1223,7 +1223,7 @@ public TypeOptions setNoWaitAfter(boolean noWaitAfter) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public TypeOptions setTimeout(double timeout) {
+ public TypeOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1268,14 +1268,14 @@ class UncheckOptions {
* Whether to bypass the actionability checks. Defaults to
* {@code false}.
*/
- public UncheckOptions setForce(boolean force) {
+ public UncheckOptions setForce(@Nullable Boolean force) {
this.force = force;
return this;
}
/**
* @deprecated This option has no effect.
*/
- public UncheckOptions setNoWaitAfter(boolean noWaitAfter) {
+ public UncheckOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -1290,7 +1290,7 @@ public UncheckOptions setPosition(double x, double y) {
* A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the
* element.
*/
- public UncheckOptions setPosition(Position position) {
+ public UncheckOptions setPosition(@Nullable Position position) {
this.position = position;
return this;
}
@@ -1300,7 +1300,7 @@ public UncheckOptions setPosition(Position position) {
* "none"}, Playwright does not scroll the element and the action fails if the element is not already in the viewport. This
* is useful to assert that an element is reachable by the user without additional scrolling.
*/
- public UncheckOptions setScroll(ScrollMode scroll) {
+ public UncheckOptions setScroll(@Nullable ScrollMode scroll) {
this.scroll = scroll;
return this;
}
@@ -1310,7 +1310,7 @@ public UncheckOptions setScroll(ScrollMode scroll) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public UncheckOptions setTimeout(double timeout) {
+ public UncheckOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1319,7 +1319,7 @@ public UncheckOptions setTimeout(double timeout) {
* checks and skips the action. Defaults to {@code false}. Useful to wait until the element is ready for the action without
* performing it.
*/
- public UncheckOptions setTrial(boolean trial) {
+ public UncheckOptions setTrial(@Nullable Boolean trial) {
this.trial = trial;
return this;
}
@@ -1339,7 +1339,7 @@ class WaitForElementStateOptions {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public WaitForElementStateOptions setTimeout(double timeout) {
+ public WaitForElementStateOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1381,7 +1381,7 @@ class WaitForSelectorOptions {
* visibility:hidden}. This is opposite to the {@code "visible"} option.
*
*/
- public WaitForSelectorOptions setState(WaitForSelectorState state) {
+ public WaitForSelectorOptions setState(@Nullable WaitForSelectorState state) {
this.state = state;
return this;
}
@@ -1389,7 +1389,7 @@ public WaitForSelectorOptions setState(WaitForSelectorState state) {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public WaitForSelectorOptions setStrict(boolean strict) {
+ public WaitForSelectorOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -1399,7 +1399,7 @@ public WaitForSelectorOptions setStrict(boolean strict) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public WaitForSelectorOptions setTimeout(double timeout) {
+ public WaitForSelectorOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
diff --git a/playwright/src/main/java/com/microsoft/playwright/FileChooser.java b/playwright/src/main/java/com/microsoft/playwright/FileChooser.java
index 5eded41cf..7d61368ba 100644
--- a/playwright/src/main/java/com/microsoft/playwright/FileChooser.java
+++ b/playwright/src/main/java/com/microsoft/playwright/FileChooser.java
@@ -45,7 +45,7 @@ class SetFilesOptions {
/**
* @deprecated This option has no effect.
*/
- public SetFilesOptions setNoWaitAfter(boolean noWaitAfter) {
+ public SetFilesOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -55,7 +55,7 @@ public SetFilesOptions setNoWaitAfter(boolean noWaitAfter) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public SetFilesOptions setTimeout(double timeout) {
+ public SetFilesOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
diff --git a/playwright/src/main/java/com/microsoft/playwright/Frame.java b/playwright/src/main/java/com/microsoft/playwright/Frame.java
index db63a44c4..d62c7b956 100644
--- a/playwright/src/main/java/com/microsoft/playwright/Frame.java
+++ b/playwright/src/main/java/com/microsoft/playwright/Frame.java
@@ -85,7 +85,7 @@ class AddScriptTagOptions {
/**
* Raw JavaScript content to be injected into frame.
*/
- public AddScriptTagOptions setContent(String content) {
+ public AddScriptTagOptions setContent(@Nullable String content) {
this.content = content;
return this;
}
@@ -93,7 +93,7 @@ public AddScriptTagOptions setContent(String content) {
* Path to the JavaScript file to be injected into frame. If {@code path} is a relative path, then it is resolved relative
* to the current working directory.
*/
- public AddScriptTagOptions setPath(Path path) {
+ public AddScriptTagOptions setPath(@Nullable Path path) {
this.path = path;
return this;
}
@@ -101,14 +101,14 @@ public AddScriptTagOptions setPath(Path path) {
* Script type. Use 'module' in order to load a JavaScript ES6 module. See script for more details.
*/
- public AddScriptTagOptions setType(String type) {
+ public AddScriptTagOptions setType(@Nullable String type) {
this.type = type;
return this;
}
/**
* URL of a script to be added.
*/
- public AddScriptTagOptions setUrl(String url) {
+ public AddScriptTagOptions setUrl(@Nullable String url) {
this.url = url;
return this;
}
@@ -131,7 +131,7 @@ class AddStyleTagOptions {
/**
* Raw CSS content to be injected into frame.
*/
- public AddStyleTagOptions setContent(String content) {
+ public AddStyleTagOptions setContent(@Nullable String content) {
this.content = content;
return this;
}
@@ -139,14 +139,14 @@ public AddStyleTagOptions setContent(String content) {
* Path to the CSS file to be injected into frame. If {@code path} is a relative path, then it is resolved relative to the
* current working directory.
*/
- public AddStyleTagOptions setPath(Path path) {
+ public AddStyleTagOptions setPath(@Nullable Path path) {
this.path = path;
return this;
}
/**
* URL of the {@code } tag.
*/
- public AddStyleTagOptions setUrl(String url) {
+ public AddStyleTagOptions setUrl(@Nullable String url) {
this.url = url;
return this;
}
@@ -196,14 +196,14 @@ class CheckOptions {
* Whether to bypass the actionability checks. Defaults to
* {@code false}.
*/
- public CheckOptions setForce(boolean force) {
+ public CheckOptions setForce(@Nullable Boolean force) {
this.force = force;
return this;
}
/**
* @deprecated This option has no effect.
*/
- public CheckOptions setNoWaitAfter(boolean noWaitAfter) {
+ public CheckOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -218,7 +218,7 @@ public CheckOptions setPosition(double x, double y) {
* A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the
* element.
*/
- public CheckOptions setPosition(Position position) {
+ public CheckOptions setPosition(@Nullable Position position) {
this.position = position;
return this;
}
@@ -228,7 +228,7 @@ public CheckOptions setPosition(Position position) {
* "none"}, Playwright does not scroll the element and the action fails if the element is not already in the viewport. This
* is useful to assert that an element is reachable by the user without additional scrolling.
*/
- public CheckOptions setScroll(ScrollMode scroll) {
+ public CheckOptions setScroll(@Nullable ScrollMode scroll) {
this.scroll = scroll;
return this;
}
@@ -236,7 +236,7 @@ public CheckOptions setScroll(ScrollMode scroll) {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public CheckOptions setStrict(boolean strict) {
+ public CheckOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -246,7 +246,7 @@ public CheckOptions setStrict(boolean strict) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public CheckOptions setTimeout(double timeout) {
+ public CheckOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -255,7 +255,7 @@ public CheckOptions setTimeout(double timeout) {
* checks and skips the action. Defaults to {@code false}. Useful to wait until the element is ready for the action without
* performing it.
*/
- public CheckOptions setTrial(boolean trial) {
+ public CheckOptions setTrial(@Nullable Boolean trial) {
this.trial = trial;
return this;
}
@@ -323,21 +323,21 @@ class ClickOptions {
/**
* Defaults to {@code left}.
*/
- public ClickOptions setButton(MouseButton button) {
+ public ClickOptions setButton(@Nullable MouseButton button) {
this.button = button;
return this;
}
/**
* defaults to 1. See [UIEvent.detail].
*/
- public ClickOptions setClickCount(int clickCount) {
+ public ClickOptions setClickCount(@Nullable Integer clickCount) {
this.clickCount = clickCount;
return this;
}
/**
* Time to wait between {@code mousedown} and {@code mouseup} in milliseconds. Defaults to 0.
*/
- public ClickOptions setDelay(double delay) {
+ public ClickOptions setDelay(@Nullable Double delay) {
this.delay = delay;
return this;
}
@@ -345,7 +345,7 @@ public ClickOptions setDelay(double delay) {
* Whether to bypass the actionability checks. Defaults to
* {@code false}.
*/
- public ClickOptions setForce(boolean force) {
+ public ClickOptions setForce(@Nullable Boolean force) {
this.force = force;
return this;
}
@@ -354,14 +354,14 @@ public ClickOptions setForce(boolean force) {
* modifiers back. If not specified, currently pressed modifiers are used. "ControlOrMeta" resolves to "Control" on Windows
* and Linux and to "Meta" on macOS.
*/
- public ClickOptions setModifiers(List modifiers) {
+ public ClickOptions setModifiers(@Nullable List modifiers) {
this.modifiers = modifiers;
return this;
}
/**
* @deprecated This option will default to {@code true} in the future.
*/
- public ClickOptions setNoWaitAfter(boolean noWaitAfter) {
+ public ClickOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -376,7 +376,7 @@ public ClickOptions setPosition(double x, double y) {
* A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the
* element.
*/
- public ClickOptions setPosition(Position position) {
+ public ClickOptions setPosition(@Nullable Position position) {
this.position = position;
return this;
}
@@ -386,7 +386,7 @@ public ClickOptions setPosition(Position position) {
* "none"}, Playwright does not scroll the element and the action fails if the element is not already in the viewport. This
* is useful to assert that an element is reachable by the user without additional scrolling.
*/
- public ClickOptions setScroll(ScrollMode scroll) {
+ public ClickOptions setScroll(@Nullable ScrollMode scroll) {
this.scroll = scroll;
return this;
}
@@ -394,7 +394,7 @@ public ClickOptions setScroll(ScrollMode scroll) {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public ClickOptions setStrict(boolean strict) {
+ public ClickOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -404,7 +404,7 @@ public ClickOptions setStrict(boolean strict) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public ClickOptions setTimeout(double timeout) {
+ public ClickOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -414,7 +414,7 @@ public ClickOptions setTimeout(double timeout) {
* performing it. Note that keyboard {@code modifiers} will be pressed regardless of {@code trial} to allow testing
* elements which are only visible when those keys are pressed.
*/
- public ClickOptions setTrial(boolean trial) {
+ public ClickOptions setTrial(@Nullable Boolean trial) {
this.trial = trial;
return this;
}
@@ -478,14 +478,14 @@ class DblclickOptions {
/**
* Defaults to {@code left}.
*/
- public DblclickOptions setButton(MouseButton button) {
+ public DblclickOptions setButton(@Nullable MouseButton button) {
this.button = button;
return this;
}
/**
* Time to wait between {@code mousedown} and {@code mouseup} in milliseconds. Defaults to 0.
*/
- public DblclickOptions setDelay(double delay) {
+ public DblclickOptions setDelay(@Nullable Double delay) {
this.delay = delay;
return this;
}
@@ -493,7 +493,7 @@ public DblclickOptions setDelay(double delay) {
* Whether to bypass the actionability checks. Defaults to
* {@code false}.
*/
- public DblclickOptions setForce(boolean force) {
+ public DblclickOptions setForce(@Nullable Boolean force) {
this.force = force;
return this;
}
@@ -502,14 +502,14 @@ public DblclickOptions setForce(boolean force) {
* modifiers back. If not specified, currently pressed modifiers are used. "ControlOrMeta" resolves to "Control" on Windows
* and Linux and to "Meta" on macOS.
*/
- public DblclickOptions setModifiers(List modifiers) {
+ public DblclickOptions setModifiers(@Nullable List modifiers) {
this.modifiers = modifiers;
return this;
}
/**
* @deprecated This option has no effect.
*/
- public DblclickOptions setNoWaitAfter(boolean noWaitAfter) {
+ public DblclickOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -524,7 +524,7 @@ public DblclickOptions setPosition(double x, double y) {
* A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the
* element.
*/
- public DblclickOptions setPosition(Position position) {
+ public DblclickOptions setPosition(@Nullable Position position) {
this.position = position;
return this;
}
@@ -534,7 +534,7 @@ public DblclickOptions setPosition(Position position) {
* "none"}, Playwright does not scroll the element and the action fails if the element is not already in the viewport. This
* is useful to assert that an element is reachable by the user without additional scrolling.
*/
- public DblclickOptions setScroll(ScrollMode scroll) {
+ public DblclickOptions setScroll(@Nullable ScrollMode scroll) {
this.scroll = scroll;
return this;
}
@@ -542,7 +542,7 @@ public DblclickOptions setScroll(ScrollMode scroll) {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public DblclickOptions setStrict(boolean strict) {
+ public DblclickOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -552,7 +552,7 @@ public DblclickOptions setStrict(boolean strict) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public DblclickOptions setTimeout(double timeout) {
+ public DblclickOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -562,7 +562,7 @@ public DblclickOptions setTimeout(double timeout) {
* performing it. Note that keyboard {@code modifiers} will be pressed regardless of {@code trial} to allow testing
* elements which are only visible when those keys are pressed.
*/
- public DblclickOptions setTrial(boolean trial) {
+ public DblclickOptions setTrial(@Nullable Boolean trial) {
this.trial = trial;
return this;
}
@@ -585,7 +585,7 @@ class DispatchEventOptions {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public DispatchEventOptions setStrict(boolean strict) {
+ public DispatchEventOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -595,7 +595,7 @@ public DispatchEventOptions setStrict(boolean strict) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public DispatchEventOptions setTimeout(double timeout) {
+ public DispatchEventOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -655,14 +655,14 @@ class DragAndDropOptions {
* Whether to bypass the actionability checks. Defaults to
* {@code false}.
*/
- public DragAndDropOptions setForce(boolean force) {
+ public DragAndDropOptions setForce(@Nullable Boolean force) {
this.force = force;
return this;
}
/**
* @deprecated This option has no effect.
*/
- public DragAndDropOptions setNoWaitAfter(boolean noWaitAfter) {
+ public DragAndDropOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -672,7 +672,7 @@ public DragAndDropOptions setNoWaitAfter(boolean noWaitAfter) {
* "none"}, Playwright does not scroll the element and the action fails if the element is not already in the viewport. This
* is useful to assert that an element is reachable by the user without additional scrolling.
*/
- public DragAndDropOptions setScroll(ScrollMode scroll) {
+ public DragAndDropOptions setScroll(@Nullable ScrollMode scroll) {
this.scroll = scroll;
return this;
}
@@ -687,7 +687,7 @@ public DragAndDropOptions setSourcePosition(double x, double y) {
* Clicks on the source element at this point relative to the top-left corner of the element's padding box. If not
* specified, some visible point of the element is used.
*/
- public DragAndDropOptions setSourcePosition(Position sourcePosition) {
+ public DragAndDropOptions setSourcePosition(@Nullable Position sourcePosition) {
this.sourcePosition = sourcePosition;
return this;
}
@@ -695,7 +695,7 @@ public DragAndDropOptions setSourcePosition(Position sourcePosition) {
* Defaults to 1. Sends {@code n} interpolated {@code mousemove} events to represent travel between the {@code mousedown}
* and {@code mouseup} of the drag. When set to 1, emits a single {@code mousemove} event at the destination location.
*/
- public DragAndDropOptions setSteps(int steps) {
+ public DragAndDropOptions setSteps(@Nullable Integer steps) {
this.steps = steps;
return this;
}
@@ -703,7 +703,7 @@ public DragAndDropOptions setSteps(int steps) {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public DragAndDropOptions setStrict(boolean strict) {
+ public DragAndDropOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -718,7 +718,7 @@ public DragAndDropOptions setTargetPosition(double x, double y) {
* Drops on the target element at this point relative to the top-left corner of the element's padding box. If not
* specified, some visible point of the element is used.
*/
- public DragAndDropOptions setTargetPosition(Position targetPosition) {
+ public DragAndDropOptions setTargetPosition(@Nullable Position targetPosition) {
this.targetPosition = targetPosition;
return this;
}
@@ -728,7 +728,7 @@ public DragAndDropOptions setTargetPosition(Position targetPosition) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public DragAndDropOptions setTimeout(double timeout) {
+ public DragAndDropOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -737,7 +737,7 @@ public DragAndDropOptions setTimeout(double timeout) {
* checks and skips the action. Defaults to {@code false}. Useful to wait until the element is ready for the action without
* performing it.
*/
- public DragAndDropOptions setTrial(boolean trial) {
+ public DragAndDropOptions setTrial(@Nullable Boolean trial) {
this.trial = trial;
return this;
}
@@ -753,7 +753,7 @@ class EvalOnSelectorOptions {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public EvalOnSelectorOptions setStrict(boolean strict) {
+ public EvalOnSelectorOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -785,14 +785,14 @@ class FillOptions {
* Whether to bypass the actionability checks. Defaults to
* {@code false}.
*/
- public FillOptions setForce(boolean force) {
+ public FillOptions setForce(@Nullable Boolean force) {
this.force = force;
return this;
}
/**
* @deprecated This option has no effect.
*/
- public FillOptions setNoWaitAfter(boolean noWaitAfter) {
+ public FillOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -800,7 +800,7 @@ public FillOptions setNoWaitAfter(boolean noWaitAfter) {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public FillOptions setStrict(boolean strict) {
+ public FillOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -810,7 +810,7 @@ public FillOptions setStrict(boolean strict) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public FillOptions setTimeout(double timeout) {
+ public FillOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -833,7 +833,7 @@ class FocusOptions {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public FocusOptions setStrict(boolean strict) {
+ public FocusOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -843,7 +843,7 @@ public FocusOptions setStrict(boolean strict) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public FocusOptions setTimeout(double timeout) {
+ public FocusOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -866,7 +866,7 @@ class GetAttributeOptions {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public GetAttributeOptions setStrict(boolean strict) {
+ public GetAttributeOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -876,7 +876,7 @@ public GetAttributeOptions setStrict(boolean strict) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public GetAttributeOptions setTimeout(double timeout) {
+ public GetAttributeOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -892,7 +892,7 @@ class GetByAltTextOptions {
* Whether to find an exact match: case-sensitive and whole-string. Default to false. Ignored when locating by a regular
* expression. Note that exact match still trims whitespace.
*/
- public GetByAltTextOptions setExact(boolean exact) {
+ public GetByAltTextOptions setExact(@Nullable Boolean exact) {
this.exact = exact;
return this;
}
@@ -908,7 +908,7 @@ class GetByLabelOptions {
* Whether to find an exact match: case-sensitive and whole-string. Default to false. Ignored when locating by a regular
* expression. Note that exact match still trims whitespace.
*/
- public GetByLabelOptions setExact(boolean exact) {
+ public GetByLabelOptions setExact(@Nullable Boolean exact) {
this.exact = exact;
return this;
}
@@ -924,7 +924,7 @@ class GetByPlaceholderOptions {
* Whether to find an exact match: case-sensitive and whole-string. Default to false. Ignored when locating by a regular
* expression. Note that exact match still trims whitespace.
*/
- public GetByPlaceholderOptions setExact(boolean exact) {
+ public GetByPlaceholderOptions setExact(@Nullable Boolean exact) {
this.exact = exact;
return this;
}
@@ -1000,7 +1000,7 @@ class GetByRoleOptions {
*
*
Learn more about {@code aria-checked}.
*/
- public GetByRoleOptions setChecked(boolean checked) {
+ public GetByRoleOptions setChecked(@Nullable Boolean checked) {
this.checked = checked;
return this;
}
@@ -1010,7 +1010,7 @@ public GetByRoleOptions setChecked(boolean checked) {
*
*
Learn more about accessible description.
*/
- public GetByRoleOptions setDescription(String description) {
+ public GetByRoleOptions setDescription(@Nullable String description) {
this.description = description;
return this;
}
@@ -1020,7 +1020,7 @@ public GetByRoleOptions setDescription(String description) {
*
*
Learn more about accessible description.
*/
- public GetByRoleOptions setDescription(Pattern description) {
+ public GetByRoleOptions setDescription(@Nullable Pattern description) {
this.description = description;
return this;
}
@@ -1030,7 +1030,7 @@ public GetByRoleOptions setDescription(Pattern description) {
*
NOTE: Unlike most other attributes, {@code disabled} is inherited through the DOM hierarchy. Learn more about {@code aria-disabled}.
*/
- public GetByRoleOptions setDisabled(boolean disabled) {
+ public GetByRoleOptions setDisabled(@Nullable Boolean disabled) {
this.disabled = disabled;
return this;
}
@@ -1038,7 +1038,7 @@ public GetByRoleOptions setDisabled(boolean disabled) {
* Whether {@code name} and {@code description} are matched exactly: case-sensitive and whole-string. Defaults to false.
* Ignored when the value is a regular expression. Note that exact match still trims whitespace.
*/
- public GetByRoleOptions setExact(boolean exact) {
+ public GetByRoleOptions setExact(@Nullable Boolean exact) {
this.exact = exact;
return this;
}
@@ -1047,7 +1047,7 @@ public GetByRoleOptions setExact(boolean exact) {
*
*
Learn more about {@code aria-expanded}.
*/
- public GetByRoleOptions setExpanded(boolean expanded) {
+ public GetByRoleOptions setExpanded(@Nullable Boolean expanded) {
this.expanded = expanded;
return this;
}
@@ -1057,7 +1057,7 @@ public GetByRoleOptions setExpanded(boolean expanded) {
*
*
Learn more about {@code aria-hidden}.
*/
- public GetByRoleOptions setIncludeHidden(boolean includeHidden) {
+ public GetByRoleOptions setIncludeHidden(@Nullable Boolean includeHidden) {
this.includeHidden = includeHidden;
return this;
}
@@ -1067,7 +1067,7 @@ public GetByRoleOptions setIncludeHidden(boolean includeHidden) {
*
*
Learn more about {@code aria-level}.
*/
- public GetByRoleOptions setLevel(int level) {
+ public GetByRoleOptions setLevel(@Nullable Integer level) {
this.level = level;
return this;
}
@@ -1077,7 +1077,7 @@ public GetByRoleOptions setLevel(int level) {
*
*
Learn more about accessible name.
*/
- public GetByRoleOptions setName(String name) {
+ public GetByRoleOptions setName(@Nullable String name) {
this.name = name;
return this;
}
@@ -1087,7 +1087,7 @@ public GetByRoleOptions setName(String name) {
*
*
Learn more about accessible name.
*/
- public GetByRoleOptions setName(Pattern name) {
+ public GetByRoleOptions setName(@Nullable Pattern name) {
this.name = name;
return this;
}
@@ -1096,7 +1096,7 @@ public GetByRoleOptions setName(Pattern name) {
*
*
Learn more about {@code aria-pressed}.
*/
- public GetByRoleOptions setPressed(boolean pressed) {
+ public GetByRoleOptions setPressed(@Nullable Boolean pressed) {
this.pressed = pressed;
return this;
}
@@ -1105,7 +1105,7 @@ public GetByRoleOptions setPressed(boolean pressed) {
*
*
Learn more about {@code aria-selected}.
*/
- public GetByRoleOptions setSelected(boolean selected) {
+ public GetByRoleOptions setSelected(@Nullable Boolean selected) {
this.selected = selected;
return this;
}
@@ -1121,7 +1121,7 @@ class GetByTextOptions {
* Whether to find an exact match: case-sensitive and whole-string. Default to false. Ignored when locating by a regular
* expression. Note that exact match still trims whitespace.
*/
- public GetByTextOptions setExact(boolean exact) {
+ public GetByTextOptions setExact(@Nullable Boolean exact) {
this.exact = exact;
return this;
}
@@ -1137,7 +1137,7 @@ class GetByTitleOptions {
* Whether to find an exact match: case-sensitive and whole-string. Default to false. Ignored when locating by a regular
* expression. Note that exact match still trims whitespace.
*/
- public GetByTitleOptions setExact(boolean exact) {
+ public GetByTitleOptions setExact(@Nullable Boolean exact) {
this.exact = exact;
return this;
}
@@ -1173,7 +1173,7 @@ class NavigateOptions {
* Referer header value. If provided it will take preference over the referer header value set by {@link
* com.microsoft.playwright.Page#setExtraHTTPHeaders Page.setExtraHTTPHeaders()}.
*/
- public NavigateOptions setReferer(String referer) {
+ public NavigateOptions setReferer(@Nullable String referer) {
this.referer = referer;
return this;
}
@@ -1185,7 +1185,7 @@ public NavigateOptions setReferer(String referer) {
* Page.setDefaultNavigationTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public NavigateOptions setTimeout(double timeout) {
+ public NavigateOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1199,7 +1199,7 @@ public NavigateOptions setTimeout(double timeout) {
*
{@code "commit"} - consider operation to be finished when network response is received and the document started loading.
*
*/
- public NavigateOptions setWaitUntil(WaitUntilState waitUntil) {
+ public NavigateOptions setWaitUntil(@Nullable WaitUntilState waitUntil) {
this.waitUntil = waitUntil;
return this;
}
@@ -1256,7 +1256,7 @@ class HoverOptions {
* Whether to bypass the actionability checks. Defaults to
* {@code false}.
*/
- public HoverOptions setForce(boolean force) {
+ public HoverOptions setForce(@Nullable Boolean force) {
this.force = force;
return this;
}
@@ -1265,14 +1265,14 @@ public HoverOptions setForce(boolean force) {
* modifiers back. If not specified, currently pressed modifiers are used. "ControlOrMeta" resolves to "Control" on Windows
* and Linux and to "Meta" on macOS.
*/
- public HoverOptions setModifiers(List modifiers) {
+ public HoverOptions setModifiers(@Nullable List modifiers) {
this.modifiers = modifiers;
return this;
}
/**
* @deprecated This option has no effect.
*/
- public HoverOptions setNoWaitAfter(boolean noWaitAfter) {
+ public HoverOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -1287,7 +1287,7 @@ public HoverOptions setPosition(double x, double y) {
* A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the
* element.
*/
- public HoverOptions setPosition(Position position) {
+ public HoverOptions setPosition(@Nullable Position position) {
this.position = position;
return this;
}
@@ -1297,7 +1297,7 @@ public HoverOptions setPosition(Position position) {
* "none"}, Playwright does not scroll the element and the action fails if the element is not already in the viewport. This
* is useful to assert that an element is reachable by the user without additional scrolling.
*/
- public HoverOptions setScroll(ScrollMode scroll) {
+ public HoverOptions setScroll(@Nullable ScrollMode scroll) {
this.scroll = scroll;
return this;
}
@@ -1305,7 +1305,7 @@ public HoverOptions setScroll(ScrollMode scroll) {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public HoverOptions setStrict(boolean strict) {
+ public HoverOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -1315,7 +1315,7 @@ public HoverOptions setStrict(boolean strict) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public HoverOptions setTimeout(double timeout) {
+ public HoverOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1325,7 +1325,7 @@ public HoverOptions setTimeout(double timeout) {
* performing it. Note that keyboard {@code modifiers} will be pressed regardless of {@code trial} to allow testing
* elements which are only visible when those keys are pressed.
*/
- public HoverOptions setTrial(boolean trial) {
+ public HoverOptions setTrial(@Nullable Boolean trial) {
this.trial = trial;
return this;
}
@@ -1348,7 +1348,7 @@ class InnerHTMLOptions {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public InnerHTMLOptions setStrict(boolean strict) {
+ public InnerHTMLOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -1358,7 +1358,7 @@ public InnerHTMLOptions setStrict(boolean strict) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public InnerHTMLOptions setTimeout(double timeout) {
+ public InnerHTMLOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1381,7 +1381,7 @@ class InnerTextOptions {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public InnerTextOptions setStrict(boolean strict) {
+ public InnerTextOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -1391,7 +1391,7 @@ public InnerTextOptions setStrict(boolean strict) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public InnerTextOptions setTimeout(double timeout) {
+ public InnerTextOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1414,7 +1414,7 @@ class InputValueOptions {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public InputValueOptions setStrict(boolean strict) {
+ public InputValueOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -1424,7 +1424,7 @@ public InputValueOptions setStrict(boolean strict) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public InputValueOptions setTimeout(double timeout) {
+ public InputValueOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1447,7 +1447,7 @@ class IsCheckedOptions {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public IsCheckedOptions setStrict(boolean strict) {
+ public IsCheckedOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -1457,7 +1457,7 @@ public IsCheckedOptions setStrict(boolean strict) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public IsCheckedOptions setTimeout(double timeout) {
+ public IsCheckedOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1480,7 +1480,7 @@ class IsDisabledOptions {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public IsDisabledOptions setStrict(boolean strict) {
+ public IsDisabledOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -1490,7 +1490,7 @@ public IsDisabledOptions setStrict(boolean strict) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public IsDisabledOptions setTimeout(double timeout) {
+ public IsDisabledOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1513,7 +1513,7 @@ class IsEditableOptions {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public IsEditableOptions setStrict(boolean strict) {
+ public IsEditableOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -1523,7 +1523,7 @@ public IsEditableOptions setStrict(boolean strict) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public IsEditableOptions setTimeout(double timeout) {
+ public IsEditableOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1546,7 +1546,7 @@ class IsEnabledOptions {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public IsEnabledOptions setStrict(boolean strict) {
+ public IsEnabledOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -1556,7 +1556,7 @@ public IsEnabledOptions setStrict(boolean strict) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public IsEnabledOptions setTimeout(double timeout) {
+ public IsEnabledOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1577,7 +1577,7 @@ class IsHiddenOptions {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public IsHiddenOptions setStrict(boolean strict) {
+ public IsHiddenOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -1585,7 +1585,7 @@ public IsHiddenOptions setStrict(boolean strict) {
* @deprecated This option is ignored. {@link com.microsoft.playwright.Frame#isHidden Frame.isHidden()} does not wait for the element
* to become hidden and returns immediately.
*/
- public IsHiddenOptions setTimeout(double timeout) {
+ public IsHiddenOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1606,7 +1606,7 @@ class IsVisibleOptions {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public IsVisibleOptions setStrict(boolean strict) {
+ public IsVisibleOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -1614,7 +1614,7 @@ public IsVisibleOptions setStrict(boolean strict) {
* @deprecated This option is ignored. {@link com.microsoft.playwright.Frame#isVisible Frame.isVisible()} does not wait for the element
* to become visible and returns immediately.
*/
- public IsVisibleOptions setTimeout(double timeout) {
+ public IsVisibleOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1665,7 +1665,7 @@ class LocatorOptions {
*
*
Note that outer and inner locators must belong to the same frame. Inner locator must not contain {@code FrameLocator}s.
*/
- public LocatorOptions setHas(Locator has) {
+ public LocatorOptions setHas(@Nullable Locator has) {
this.has = has;
return this;
}
@@ -1676,7 +1676,7 @@ public LocatorOptions setHas(Locator has) {
*
*
Note that outer and inner locators must belong to the same frame. Inner locator must not contain {@code FrameLocator}s.
*/
- public LocatorOptions setHasNot(Locator hasNot) {
+ public LocatorOptions setHasNot(@Nullable Locator hasNot) {
this.hasNot = hasNot;
return this;
}
@@ -1684,7 +1684,7 @@ public LocatorOptions setHasNot(Locator hasNot) {
* Matches elements that do not contain specified text somewhere inside, possibly in a child or a descendant element. When
* passed a [string], matching is case-insensitive and searches for a substring.
*/
- public LocatorOptions setHasNotText(String hasNotText) {
+ public LocatorOptions setHasNotText(@Nullable String hasNotText) {
this.hasNotText = hasNotText;
return this;
}
@@ -1692,7 +1692,7 @@ public LocatorOptions setHasNotText(String hasNotText) {
* Matches elements that do not contain specified text somewhere inside, possibly in a child or a descendant element. When
* passed a [string], matching is case-insensitive and searches for a substring.
*/
- public LocatorOptions setHasNotText(Pattern hasNotText) {
+ public LocatorOptions setHasNotText(@Nullable Pattern hasNotText) {
this.hasNotText = hasNotText;
return this;
}
@@ -1701,7 +1701,7 @@ public LocatorOptions setHasNotText(Pattern hasNotText) {
* [string], matching is case-insensitive and searches for a substring. For example, {@code "Playwright"} matches {@code
*
Playwright
}.
*/
- public LocatorOptions setHasText(String hasText) {
+ public LocatorOptions setHasText(@Nullable String hasText) {
this.hasText = hasText;
return this;
}
@@ -1710,7 +1710,7 @@ public LocatorOptions setHasText(String hasText) {
* [string], matching is case-insensitive and searches for a substring. For example, {@code "Playwright"} matches {@code
*
Playwright
}.
*/
- public LocatorOptions setHasText(Pattern hasText) {
+ public LocatorOptions setHasText(@Nullable Pattern hasText) {
this.hasText = hasText;
return this;
}
@@ -1740,14 +1740,14 @@ class PressOptions {
/**
* Time to wait between {@code keydown} and {@code keyup} in milliseconds. Defaults to 0.
*/
- public PressOptions setDelay(double delay) {
+ public PressOptions setDelay(@Nullable Double delay) {
this.delay = delay;
return this;
}
/**
* @deprecated This option will default to {@code true} in the future.
*/
- public PressOptions setNoWaitAfter(boolean noWaitAfter) {
+ public PressOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -1755,7 +1755,7 @@ public PressOptions setNoWaitAfter(boolean noWaitAfter) {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public PressOptions setStrict(boolean strict) {
+ public PressOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -1765,7 +1765,7 @@ public PressOptions setStrict(boolean strict) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public PressOptions setTimeout(double timeout) {
+ public PressOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1781,7 +1781,7 @@ class QuerySelectorOptions {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public QuerySelectorOptions setStrict(boolean strict) {
+ public QuerySelectorOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -1813,14 +1813,14 @@ class SelectOptionOptions {
* Whether to bypass the actionability checks. Defaults to
* {@code false}.
*/
- public SelectOptionOptions setForce(boolean force) {
+ public SelectOptionOptions setForce(@Nullable Boolean force) {
this.force = force;
return this;
}
/**
* @deprecated This option has no effect.
*/
- public SelectOptionOptions setNoWaitAfter(boolean noWaitAfter) {
+ public SelectOptionOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -1828,7 +1828,7 @@ public SelectOptionOptions setNoWaitAfter(boolean noWaitAfter) {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public SelectOptionOptions setStrict(boolean strict) {
+ public SelectOptionOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -1838,7 +1838,7 @@ public SelectOptionOptions setStrict(boolean strict) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public SelectOptionOptions setTimeout(double timeout) {
+ public SelectOptionOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1888,14 +1888,14 @@ class SetCheckedOptions {
* Whether to bypass the actionability checks. Defaults to
* {@code false}.
*/
- public SetCheckedOptions setForce(boolean force) {
+ public SetCheckedOptions setForce(@Nullable Boolean force) {
this.force = force;
return this;
}
/**
* @deprecated This option has no effect.
*/
- public SetCheckedOptions setNoWaitAfter(boolean noWaitAfter) {
+ public SetCheckedOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -1910,7 +1910,7 @@ public SetCheckedOptions setPosition(double x, double y) {
* A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the
* element.
*/
- public SetCheckedOptions setPosition(Position position) {
+ public SetCheckedOptions setPosition(@Nullable Position position) {
this.position = position;
return this;
}
@@ -1920,7 +1920,7 @@ public SetCheckedOptions setPosition(Position position) {
* "none"}, Playwright does not scroll the element and the action fails if the element is not already in the viewport. This
* is useful to assert that an element is reachable by the user without additional scrolling.
*/
- public SetCheckedOptions setScroll(ScrollMode scroll) {
+ public SetCheckedOptions setScroll(@Nullable ScrollMode scroll) {
this.scroll = scroll;
return this;
}
@@ -1928,7 +1928,7 @@ public SetCheckedOptions setScroll(ScrollMode scroll) {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public SetCheckedOptions setStrict(boolean strict) {
+ public SetCheckedOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -1938,7 +1938,7 @@ public SetCheckedOptions setStrict(boolean strict) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public SetCheckedOptions setTimeout(double timeout) {
+ public SetCheckedOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1947,7 +1947,7 @@ public SetCheckedOptions setTimeout(double timeout) {
* checks and skips the action. Defaults to {@code false}. Useful to wait until the element is ready for the action without
* performing it.
*/
- public SetCheckedOptions setTrial(boolean trial) {
+ public SetCheckedOptions setTrial(@Nullable Boolean trial) {
this.trial = trial;
return this;
}
@@ -1982,7 +1982,7 @@ class SetContentOptions {
* Page.setDefaultNavigationTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public SetContentOptions setTimeout(double timeout) {
+ public SetContentOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1996,7 +1996,7 @@ public SetContentOptions setTimeout(double timeout) {
*
{@code "commit"} - consider operation to be finished when network response is received and the document started loading.
*
*/
- public SetContentOptions setWaitUntil(WaitUntilState waitUntil) {
+ public SetContentOptions setWaitUntil(@Nullable WaitUntilState waitUntil) {
this.waitUntil = waitUntil;
return this;
}
@@ -2022,7 +2022,7 @@ class SetInputFilesOptions {
/**
* @deprecated This option has no effect.
*/
- public SetInputFilesOptions setNoWaitAfter(boolean noWaitAfter) {
+ public SetInputFilesOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -2030,7 +2030,7 @@ public SetInputFilesOptions setNoWaitAfter(boolean noWaitAfter) {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public SetInputFilesOptions setStrict(boolean strict) {
+ public SetInputFilesOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -2040,7 +2040,7 @@ public SetInputFilesOptions setStrict(boolean strict) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public SetInputFilesOptions setTimeout(double timeout) {
+ public SetInputFilesOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -2097,7 +2097,7 @@ class TapOptions {
* Whether to bypass the actionability checks. Defaults to
* {@code false}.
*/
- public TapOptions setForce(boolean force) {
+ public TapOptions setForce(@Nullable Boolean force) {
this.force = force;
return this;
}
@@ -2106,14 +2106,14 @@ public TapOptions setForce(boolean force) {
* modifiers back. If not specified, currently pressed modifiers are used. "ControlOrMeta" resolves to "Control" on Windows
* and Linux and to "Meta" on macOS.
*/
- public TapOptions setModifiers(List modifiers) {
+ public TapOptions setModifiers(@Nullable List modifiers) {
this.modifiers = modifiers;
return this;
}
/**
* @deprecated This option has no effect.
*/
- public TapOptions setNoWaitAfter(boolean noWaitAfter) {
+ public TapOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -2128,7 +2128,7 @@ public TapOptions setPosition(double x, double y) {
* A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the
* element.
*/
- public TapOptions setPosition(Position position) {
+ public TapOptions setPosition(@Nullable Position position) {
this.position = position;
return this;
}
@@ -2138,7 +2138,7 @@ public TapOptions setPosition(Position position) {
* "none"}, Playwright does not scroll the element and the action fails if the element is not already in the viewport. This
* is useful to assert that an element is reachable by the user without additional scrolling.
*/
- public TapOptions setScroll(ScrollMode scroll) {
+ public TapOptions setScroll(@Nullable ScrollMode scroll) {
this.scroll = scroll;
return this;
}
@@ -2146,7 +2146,7 @@ public TapOptions setScroll(ScrollMode scroll) {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public TapOptions setStrict(boolean strict) {
+ public TapOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -2156,7 +2156,7 @@ public TapOptions setStrict(boolean strict) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public TapOptions setTimeout(double timeout) {
+ public TapOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -2166,7 +2166,7 @@ public TapOptions setTimeout(double timeout) {
* performing it. Note that keyboard {@code modifiers} will be pressed regardless of {@code trial} to allow testing
* elements which are only visible when those keys are pressed.
*/
- public TapOptions setTrial(boolean trial) {
+ public TapOptions setTrial(@Nullable Boolean trial) {
this.trial = trial;
return this;
}
@@ -2189,7 +2189,7 @@ class TextContentOptions {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public TextContentOptions setStrict(boolean strict) {
+ public TextContentOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -2199,7 +2199,7 @@ public TextContentOptions setStrict(boolean strict) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public TextContentOptions setTimeout(double timeout) {
+ public TextContentOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -2229,14 +2229,14 @@ class TypeOptions {
/**
* Time to wait between key presses in milliseconds. Defaults to 0.
*/
- public TypeOptions setDelay(double delay) {
+ public TypeOptions setDelay(@Nullable Double delay) {
this.delay = delay;
return this;
}
/**
* @deprecated This option has no effect.
*/
- public TypeOptions setNoWaitAfter(boolean noWaitAfter) {
+ public TypeOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -2244,7 +2244,7 @@ public TypeOptions setNoWaitAfter(boolean noWaitAfter) {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public TypeOptions setStrict(boolean strict) {
+ public TypeOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -2254,7 +2254,7 @@ public TypeOptions setStrict(boolean strict) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public TypeOptions setTimeout(double timeout) {
+ public TypeOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -2304,14 +2304,14 @@ class UncheckOptions {
* Whether to bypass the actionability checks. Defaults to
* {@code false}.
*/
- public UncheckOptions setForce(boolean force) {
+ public UncheckOptions setForce(@Nullable Boolean force) {
this.force = force;
return this;
}
/**
* @deprecated This option has no effect.
*/
- public UncheckOptions setNoWaitAfter(boolean noWaitAfter) {
+ public UncheckOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -2326,7 +2326,7 @@ public UncheckOptions setPosition(double x, double y) {
* A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the
* element.
*/
- public UncheckOptions setPosition(Position position) {
+ public UncheckOptions setPosition(@Nullable Position position) {
this.position = position;
return this;
}
@@ -2336,7 +2336,7 @@ public UncheckOptions setPosition(Position position) {
* "none"}, Playwright does not scroll the element and the action fails if the element is not already in the viewport. This
* is useful to assert that an element is reachable by the user without additional scrolling.
*/
- public UncheckOptions setScroll(ScrollMode scroll) {
+ public UncheckOptions setScroll(@Nullable ScrollMode scroll) {
this.scroll = scroll;
return this;
}
@@ -2344,7 +2344,7 @@ public UncheckOptions setScroll(ScrollMode scroll) {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public UncheckOptions setStrict(boolean strict) {
+ public UncheckOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -2354,7 +2354,7 @@ public UncheckOptions setStrict(boolean strict) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public UncheckOptions setTimeout(double timeout) {
+ public UncheckOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -2363,7 +2363,7 @@ public UncheckOptions setTimeout(double timeout) {
* checks and skips the action. Defaults to {@code false}. Useful to wait until the element is ready for the action without
* performing it.
*/
- public UncheckOptions setTrial(boolean trial) {
+ public UncheckOptions setTrial(@Nullable Boolean trial) {
this.trial = trial;
return this;
}
@@ -2386,7 +2386,7 @@ class WaitForFunctionOptions {
* If specified, then it is treated as an interval in milliseconds at which the function would be executed. By default if
* the option is not specified {@code expression} is executed in {@code requestAnimationFrame} callback.
*/
- public WaitForFunctionOptions setPollingInterval(double pollingInterval) {
+ public WaitForFunctionOptions setPollingInterval(@Nullable Double pollingInterval) {
this.pollingInterval = pollingInterval;
return this;
}
@@ -2396,7 +2396,7 @@ public WaitForFunctionOptions setPollingInterval(double pollingInterval) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public WaitForFunctionOptions setTimeout(double timeout) {
+ public WaitForFunctionOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -2420,7 +2420,7 @@ class WaitForLoadStateOptions {
* Page.setDefaultNavigationTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public WaitForLoadStateOptions setTimeout(double timeout) {
+ public WaitForLoadStateOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -2461,7 +2461,7 @@ class WaitForNavigationOptions {
* Page.setDefaultNavigationTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public WaitForNavigationOptions setTimeout(double timeout) {
+ public WaitForNavigationOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -2470,7 +2470,7 @@ public WaitForNavigationOptions setTimeout(double timeout) {
* parameter is a string without wildcard characters, the method will wait for navigation to URL that is exactly equal to
* the string.
*/
- public WaitForNavigationOptions setUrl(String url) {
+ public WaitForNavigationOptions setUrl(@Nullable String url) {
this.url = url;
return this;
}
@@ -2479,7 +2479,7 @@ public WaitForNavigationOptions setUrl(String url) {
* parameter is a string without wildcard characters, the method will wait for navigation to URL that is exactly equal to
* the string.
*/
- public WaitForNavigationOptions setUrl(Pattern url) {
+ public WaitForNavigationOptions setUrl(@Nullable Pattern url) {
this.url = url;
return this;
}
@@ -2488,7 +2488,7 @@ public WaitForNavigationOptions setUrl(Pattern url) {
* parameter is a string without wildcard characters, the method will wait for navigation to URL that is exactly equal to
* the string.
*/
- public WaitForNavigationOptions setUrl(Predicate url) {
+ public WaitForNavigationOptions setUrl(@Nullable Predicate url) {
this.url = url;
return this;
}
@@ -2502,7 +2502,7 @@ public WaitForNavigationOptions setUrl(Predicate url) {
*
{@code "commit"} - consider operation to be finished when network response is received and the document started loading.
*
*/
- public WaitForNavigationOptions setWaitUntil(WaitUntilState waitUntil) {
+ public WaitForNavigationOptions setWaitUntil(@Nullable WaitUntilState waitUntil) {
this.waitUntil = waitUntil;
return this;
}
@@ -2544,7 +2544,7 @@ class WaitForSelectorOptions {
* visibility:hidden}. This is opposite to the {@code "visible"} option.
*
*/
- public WaitForSelectorOptions setState(WaitForSelectorState state) {
+ public WaitForSelectorOptions setState(@Nullable WaitForSelectorState state) {
this.state = state;
return this;
}
@@ -2552,7 +2552,7 @@ public WaitForSelectorOptions setState(WaitForSelectorState state) {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public WaitForSelectorOptions setStrict(boolean strict) {
+ public WaitForSelectorOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -2562,7 +2562,7 @@ public WaitForSelectorOptions setStrict(boolean strict) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public WaitForSelectorOptions setTimeout(double timeout) {
+ public WaitForSelectorOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -2597,7 +2597,7 @@ class WaitForURLOptions {
* Page.setDefaultNavigationTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public WaitForURLOptions setTimeout(double timeout) {
+ public WaitForURLOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -2611,7 +2611,7 @@ public WaitForURLOptions setTimeout(double timeout) {
*
{@code "commit"} - consider operation to be finished when network response is received and the document started loading.
*
*/
- public WaitForURLOptions setWaitUntil(WaitUntilState waitUntil) {
+ public WaitForURLOptions setWaitUntil(@Nullable WaitUntilState waitUntil) {
this.waitUntil = waitUntil;
return this;
}
diff --git a/playwright/src/main/java/com/microsoft/playwright/FrameLocator.java b/playwright/src/main/java/com/microsoft/playwright/FrameLocator.java
index 2559fdb49..07b6237a3 100644
--- a/playwright/src/main/java/com/microsoft/playwright/FrameLocator.java
+++ b/playwright/src/main/java/com/microsoft/playwright/FrameLocator.java
@@ -85,7 +85,7 @@ class GetByAltTextOptions {
* Whether to find an exact match: case-sensitive and whole-string. Default to false. Ignored when locating by a regular
* expression. Note that exact match still trims whitespace.
*/
- public GetByAltTextOptions setExact(boolean exact) {
+ public GetByAltTextOptions setExact(@Nullable Boolean exact) {
this.exact = exact;
return this;
}
@@ -101,7 +101,7 @@ class GetByLabelOptions {
* Whether to find an exact match: case-sensitive and whole-string. Default to false. Ignored when locating by a regular
* expression. Note that exact match still trims whitespace.
*/
- public GetByLabelOptions setExact(boolean exact) {
+ public GetByLabelOptions setExact(@Nullable Boolean exact) {
this.exact = exact;
return this;
}
@@ -117,7 +117,7 @@ class GetByPlaceholderOptions {
* Whether to find an exact match: case-sensitive and whole-string. Default to false. Ignored when locating by a regular
* expression. Note that exact match still trims whitespace.
*/
- public GetByPlaceholderOptions setExact(boolean exact) {
+ public GetByPlaceholderOptions setExact(@Nullable Boolean exact) {
this.exact = exact;
return this;
}
@@ -193,7 +193,7 @@ class GetByRoleOptions {
*
*
Learn more about {@code aria-checked}.
*/
- public GetByRoleOptions setChecked(boolean checked) {
+ public GetByRoleOptions setChecked(@Nullable Boolean checked) {
this.checked = checked;
return this;
}
@@ -203,7 +203,7 @@ public GetByRoleOptions setChecked(boolean checked) {
*
*
Learn more about accessible description.
*/
- public GetByRoleOptions setDescription(String description) {
+ public GetByRoleOptions setDescription(@Nullable String description) {
this.description = description;
return this;
}
@@ -213,7 +213,7 @@ public GetByRoleOptions setDescription(String description) {
*
*
Learn more about accessible description.
*/
- public GetByRoleOptions setDescription(Pattern description) {
+ public GetByRoleOptions setDescription(@Nullable Pattern description) {
this.description = description;
return this;
}
@@ -223,7 +223,7 @@ public GetByRoleOptions setDescription(Pattern description) {
*
NOTE: Unlike most other attributes, {@code disabled} is inherited through the DOM hierarchy. Learn more about {@code aria-disabled}.
*/
- public GetByRoleOptions setDisabled(boolean disabled) {
+ public GetByRoleOptions setDisabled(@Nullable Boolean disabled) {
this.disabled = disabled;
return this;
}
@@ -231,7 +231,7 @@ public GetByRoleOptions setDisabled(boolean disabled) {
* Whether {@code name} and {@code description} are matched exactly: case-sensitive and whole-string. Defaults to false.
* Ignored when the value is a regular expression. Note that exact match still trims whitespace.
*/
- public GetByRoleOptions setExact(boolean exact) {
+ public GetByRoleOptions setExact(@Nullable Boolean exact) {
this.exact = exact;
return this;
}
@@ -240,7 +240,7 @@ public GetByRoleOptions setExact(boolean exact) {
*
*
Learn more about {@code aria-expanded}.
*/
- public GetByRoleOptions setExpanded(boolean expanded) {
+ public GetByRoleOptions setExpanded(@Nullable Boolean expanded) {
this.expanded = expanded;
return this;
}
@@ -250,7 +250,7 @@ public GetByRoleOptions setExpanded(boolean expanded) {
*
*
Learn more about {@code aria-hidden}.
*/
- public GetByRoleOptions setIncludeHidden(boolean includeHidden) {
+ public GetByRoleOptions setIncludeHidden(@Nullable Boolean includeHidden) {
this.includeHidden = includeHidden;
return this;
}
@@ -260,7 +260,7 @@ public GetByRoleOptions setIncludeHidden(boolean includeHidden) {
*
*
Learn more about {@code aria-level}.
*/
- public GetByRoleOptions setLevel(int level) {
+ public GetByRoleOptions setLevel(@Nullable Integer level) {
this.level = level;
return this;
}
@@ -270,7 +270,7 @@ public GetByRoleOptions setLevel(int level) {
*
*
Learn more about accessible name.
*/
- public GetByRoleOptions setName(String name) {
+ public GetByRoleOptions setName(@Nullable String name) {
this.name = name;
return this;
}
@@ -280,7 +280,7 @@ public GetByRoleOptions setName(String name) {
*
*
Learn more about accessible name.
*/
- public GetByRoleOptions setName(Pattern name) {
+ public GetByRoleOptions setName(@Nullable Pattern name) {
this.name = name;
return this;
}
@@ -289,7 +289,7 @@ public GetByRoleOptions setName(Pattern name) {
*
*
Learn more about {@code aria-pressed}.
*/
- public GetByRoleOptions setPressed(boolean pressed) {
+ public GetByRoleOptions setPressed(@Nullable Boolean pressed) {
this.pressed = pressed;
return this;
}
@@ -298,7 +298,7 @@ public GetByRoleOptions setPressed(boolean pressed) {
*
*
Learn more about {@code aria-selected}.
*/
- public GetByRoleOptions setSelected(boolean selected) {
+ public GetByRoleOptions setSelected(@Nullable Boolean selected) {
this.selected = selected;
return this;
}
@@ -314,7 +314,7 @@ class GetByTextOptions {
* Whether to find an exact match: case-sensitive and whole-string. Default to false. Ignored when locating by a regular
* expression. Note that exact match still trims whitespace.
*/
- public GetByTextOptions setExact(boolean exact) {
+ public GetByTextOptions setExact(@Nullable Boolean exact) {
this.exact = exact;
return this;
}
@@ -330,7 +330,7 @@ class GetByTitleOptions {
* Whether to find an exact match: case-sensitive and whole-string. Default to false. Ignored when locating by a regular
* expression. Note that exact match still trims whitespace.
*/
- public GetByTitleOptions setExact(boolean exact) {
+ public GetByTitleOptions setExact(@Nullable Boolean exact) {
this.exact = exact;
return this;
}
@@ -381,7 +381,7 @@ class LocatorOptions {
*
*
Note that outer and inner locators must belong to the same frame. Inner locator must not contain {@code FrameLocator}s.
*/
- public LocatorOptions setHas(Locator has) {
+ public LocatorOptions setHas(@Nullable Locator has) {
this.has = has;
return this;
}
@@ -392,7 +392,7 @@ public LocatorOptions setHas(Locator has) {
*
*
Note that outer and inner locators must belong to the same frame. Inner locator must not contain {@code FrameLocator}s.
*/
- public LocatorOptions setHasNot(Locator hasNot) {
+ public LocatorOptions setHasNot(@Nullable Locator hasNot) {
this.hasNot = hasNot;
return this;
}
@@ -400,7 +400,7 @@ public LocatorOptions setHasNot(Locator hasNot) {
* Matches elements that do not contain specified text somewhere inside, possibly in a child or a descendant element. When
* passed a [string], matching is case-insensitive and searches for a substring.
*/
- public LocatorOptions setHasNotText(String hasNotText) {
+ public LocatorOptions setHasNotText(@Nullable String hasNotText) {
this.hasNotText = hasNotText;
return this;
}
@@ -408,7 +408,7 @@ public LocatorOptions setHasNotText(String hasNotText) {
* Matches elements that do not contain specified text somewhere inside, possibly in a child or a descendant element. When
* passed a [string], matching is case-insensitive and searches for a substring.
*/
- public LocatorOptions setHasNotText(Pattern hasNotText) {
+ public LocatorOptions setHasNotText(@Nullable Pattern hasNotText) {
this.hasNotText = hasNotText;
return this;
}
@@ -417,7 +417,7 @@ public LocatorOptions setHasNotText(Pattern hasNotText) {
* [string], matching is case-insensitive and searches for a substring. For example, {@code "Playwright"} matches {@code
*
Playwright
}.
*/
- public LocatorOptions setHasText(String hasText) {
+ public LocatorOptions setHasText(@Nullable String hasText) {
this.hasText = hasText;
return this;
}
@@ -426,7 +426,7 @@ public LocatorOptions setHasText(String hasText) {
* [string], matching is case-insensitive and searches for a substring. For example, {@code "Playwright"} matches {@code
*
Playwright
}.
*/
- public LocatorOptions setHasText(Pattern hasText) {
+ public LocatorOptions setHasText(@Nullable Pattern hasText) {
this.hasText = hasText;
return this;
}
diff --git a/playwright/src/main/java/com/microsoft/playwright/Keyboard.java b/playwright/src/main/java/com/microsoft/playwright/Keyboard.java
index 8b6225b55..7ef0d67d5 100644
--- a/playwright/src/main/java/com/microsoft/playwright/Keyboard.java
+++ b/playwright/src/main/java/com/microsoft/playwright/Keyboard.java
@@ -62,7 +62,7 @@ class PressOptions {
/**
* Time to wait between {@code keydown} and {@code keyup} in milliseconds. Defaults to 0.
*/
- public PressOptions setDelay(double delay) {
+ public PressOptions setDelay(@Nullable Double delay) {
this.delay = delay;
return this;
}
@@ -76,7 +76,7 @@ class TypeOptions {
/**
* Time to wait between key presses in milliseconds. Defaults to 0.
*/
- public TypeOptions setDelay(double delay) {
+ public TypeOptions setDelay(@Nullable Double delay) {
this.delay = delay;
return this;
}
diff --git a/playwright/src/main/java/com/microsoft/playwright/Locator.java b/playwright/src/main/java/com/microsoft/playwright/Locator.java
index 230c6a0c0..07dab21da 100644
--- a/playwright/src/main/java/com/microsoft/playwright/Locator.java
+++ b/playwright/src/main/java/com/microsoft/playwright/Locator.java
@@ -61,14 +61,14 @@ class AriaSnapshotOptions {
* href="https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect">{@code
* Element.getBoundingClientRect()}. Defaults to {@code false}.
*/
- public AriaSnapshotOptions setBoxes(boolean boxes) {
+ public AriaSnapshotOptions setBoxes(@Nullable Boolean boxes) {
this.boxes = boxes;
return this;
}
/**
* When specified, limits the depth of the snapshot.
*/
- public AriaSnapshotOptions setDepth(int depth) {
+ public AriaSnapshotOptions setDepth(@Nullable Integer depth) {
this.depth = depth;
return this;
}
@@ -76,7 +76,7 @@ public AriaSnapshotOptions setDepth(int depth) {
* When set to {@code "ai"}, returns a snapshot optimized for AI consumption. Defaults to {@code "default"}. See details
* for more information.
*/
- public AriaSnapshotOptions setMode(AriaSnapshotMode mode) {
+ public AriaSnapshotOptions setMode(@Nullable AriaSnapshotMode mode) {
this.mode = mode;
return this;
}
@@ -86,7 +86,7 @@ public AriaSnapshotOptions setMode(AriaSnapshotMode mode) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public AriaSnapshotOptions setTimeout(double timeout) {
+ public AriaSnapshotOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -106,7 +106,7 @@ class BlurOptions {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public BlurOptions setTimeout(double timeout) {
+ public BlurOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -126,7 +126,7 @@ class BoundingBoxOptions {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public BoundingBoxOptions setTimeout(double timeout) {
+ public BoundingBoxOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -171,14 +171,14 @@ class CheckOptions {
* Whether to bypass the actionability checks. Defaults to
* {@code false}.
*/
- public CheckOptions setForce(boolean force) {
+ public CheckOptions setForce(@Nullable Boolean force) {
this.force = force;
return this;
}
/**
* @deprecated This option has no effect.
*/
- public CheckOptions setNoWaitAfter(boolean noWaitAfter) {
+ public CheckOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -193,7 +193,7 @@ public CheckOptions setPosition(double x, double y) {
* A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the
* element.
*/
- public CheckOptions setPosition(Position position) {
+ public CheckOptions setPosition(@Nullable Position position) {
this.position = position;
return this;
}
@@ -203,7 +203,7 @@ public CheckOptions setPosition(Position position) {
* "none"}, Playwright does not scroll the element and the action fails if the element is not already in the viewport. This
* is useful to assert that an element is reachable by the user without additional scrolling.
*/
- public CheckOptions setScroll(ScrollMode scroll) {
+ public CheckOptions setScroll(@Nullable ScrollMode scroll) {
this.scroll = scroll;
return this;
}
@@ -213,7 +213,7 @@ public CheckOptions setScroll(ScrollMode scroll) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public CheckOptions setTimeout(double timeout) {
+ public CheckOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -222,7 +222,7 @@ public CheckOptions setTimeout(double timeout) {
* checks and skips the action. Defaults to {@code false}. Useful to wait until the element is ready for the action without
* performing it.
*/
- public CheckOptions setTrial(boolean trial) {
+ public CheckOptions setTrial(@Nullable Boolean trial) {
this.trial = trial;
return this;
}
@@ -249,14 +249,14 @@ class ClearOptions {
* Whether to bypass the actionability checks. Defaults to
* {@code false}.
*/
- public ClearOptions setForce(boolean force) {
+ public ClearOptions setForce(@Nullable Boolean force) {
this.force = force;
return this;
}
/**
* @deprecated This option has no effect.
*/
- public ClearOptions setNoWaitAfter(boolean noWaitAfter) {
+ public ClearOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -266,7 +266,7 @@ public ClearOptions setNoWaitAfter(boolean noWaitAfter) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public ClearOptions setTimeout(double timeout) {
+ public ClearOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -335,21 +335,21 @@ class ClickOptions {
/**
* Defaults to {@code left}.
*/
- public ClickOptions setButton(MouseButton button) {
+ public ClickOptions setButton(@Nullable MouseButton button) {
this.button = button;
return this;
}
/**
* defaults to 1. See [UIEvent.detail].
*/
- public ClickOptions setClickCount(int clickCount) {
+ public ClickOptions setClickCount(@Nullable Integer clickCount) {
this.clickCount = clickCount;
return this;
}
/**
* Time to wait between {@code mousedown} and {@code mouseup} in milliseconds. Defaults to 0.
*/
- public ClickOptions setDelay(double delay) {
+ public ClickOptions setDelay(@Nullable Double delay) {
this.delay = delay;
return this;
}
@@ -357,7 +357,7 @@ public ClickOptions setDelay(double delay) {
* Whether to bypass the actionability checks. Defaults to
* {@code false}.
*/
- public ClickOptions setForce(boolean force) {
+ public ClickOptions setForce(@Nullable Boolean force) {
this.force = force;
return this;
}
@@ -366,14 +366,14 @@ public ClickOptions setForce(boolean force) {
* modifiers back. If not specified, currently pressed modifiers are used. "ControlOrMeta" resolves to "Control" on Windows
* and Linux and to "Meta" on macOS.
*/
- public ClickOptions setModifiers(List modifiers) {
+ public ClickOptions setModifiers(@Nullable List modifiers) {
this.modifiers = modifiers;
return this;
}
/**
* @deprecated This option will default to {@code true} in the future.
*/
- public ClickOptions setNoWaitAfter(boolean noWaitAfter) {
+ public ClickOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -388,7 +388,7 @@ public ClickOptions setPosition(double x, double y) {
* A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the
* element.
*/
- public ClickOptions setPosition(Position position) {
+ public ClickOptions setPosition(@Nullable Position position) {
this.position = position;
return this;
}
@@ -398,7 +398,7 @@ public ClickOptions setPosition(Position position) {
* "none"}, Playwright does not scroll the element and the action fails if the element is not already in the viewport. This
* is useful to assert that an element is reachable by the user without additional scrolling.
*/
- public ClickOptions setScroll(ScrollMode scroll) {
+ public ClickOptions setScroll(@Nullable ScrollMode scroll) {
this.scroll = scroll;
return this;
}
@@ -407,7 +407,7 @@ public ClickOptions setScroll(ScrollMode scroll) {
* cursor position and the provided destination. When set to 1, emits a single {@code mousemove} event at the destination
* location.
*/
- public ClickOptions setSteps(int steps) {
+ public ClickOptions setSteps(@Nullable Integer steps) {
this.steps = steps;
return this;
}
@@ -417,7 +417,7 @@ public ClickOptions setSteps(int steps) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public ClickOptions setTimeout(double timeout) {
+ public ClickOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -427,7 +427,7 @@ public ClickOptions setTimeout(double timeout) {
* performing it. Note that keyboard {@code modifiers} will be pressed regardless of {@code trial} to allow testing
* elements which are only visible when those keys are pressed.
*/
- public ClickOptions setTrial(boolean trial) {
+ public ClickOptions setTrial(@Nullable Boolean trial) {
this.trial = trial;
return this;
}
@@ -492,14 +492,14 @@ class DblclickOptions {
/**
* Defaults to {@code left}.
*/
- public DblclickOptions setButton(MouseButton button) {
+ public DblclickOptions setButton(@Nullable MouseButton button) {
this.button = button;
return this;
}
/**
* Time to wait between {@code mousedown} and {@code mouseup} in milliseconds. Defaults to 0.
*/
- public DblclickOptions setDelay(double delay) {
+ public DblclickOptions setDelay(@Nullable Double delay) {
this.delay = delay;
return this;
}
@@ -507,7 +507,7 @@ public DblclickOptions setDelay(double delay) {
* Whether to bypass the actionability checks. Defaults to
* {@code false}.
*/
- public DblclickOptions setForce(boolean force) {
+ public DblclickOptions setForce(@Nullable Boolean force) {
this.force = force;
return this;
}
@@ -516,14 +516,14 @@ public DblclickOptions setForce(boolean force) {
* modifiers back. If not specified, currently pressed modifiers are used. "ControlOrMeta" resolves to "Control" on Windows
* and Linux and to "Meta" on macOS.
*/
- public DblclickOptions setModifiers(List modifiers) {
+ public DblclickOptions setModifiers(@Nullable List modifiers) {
this.modifiers = modifiers;
return this;
}
/**
* @deprecated This option has no effect.
*/
- public DblclickOptions setNoWaitAfter(boolean noWaitAfter) {
+ public DblclickOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -538,7 +538,7 @@ public DblclickOptions setPosition(double x, double y) {
* A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the
* element.
*/
- public DblclickOptions setPosition(Position position) {
+ public DblclickOptions setPosition(@Nullable Position position) {
this.position = position;
return this;
}
@@ -548,7 +548,7 @@ public DblclickOptions setPosition(Position position) {
* "none"}, Playwright does not scroll the element and the action fails if the element is not already in the viewport. This
* is useful to assert that an element is reachable by the user without additional scrolling.
*/
- public DblclickOptions setScroll(ScrollMode scroll) {
+ public DblclickOptions setScroll(@Nullable ScrollMode scroll) {
this.scroll = scroll;
return this;
}
@@ -557,7 +557,7 @@ public DblclickOptions setScroll(ScrollMode scroll) {
* cursor position and the provided destination. When set to 1, emits a single {@code mousemove} event at the destination
* location.
*/
- public DblclickOptions setSteps(int steps) {
+ public DblclickOptions setSteps(@Nullable Integer steps) {
this.steps = steps;
return this;
}
@@ -567,7 +567,7 @@ public DblclickOptions setSteps(int steps) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public DblclickOptions setTimeout(double timeout) {
+ public DblclickOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -577,7 +577,7 @@ public DblclickOptions setTimeout(double timeout) {
* performing it. Note that keyboard {@code modifiers} will be pressed regardless of {@code trial} to allow testing
* elements which are only visible when those keys are pressed.
*/
- public DblclickOptions setTrial(boolean trial) {
+ public DblclickOptions setTrial(@Nullable Boolean trial) {
this.trial = trial;
return this;
}
@@ -597,7 +597,7 @@ class DispatchEventOptions {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public DispatchEventOptions setTimeout(double timeout) {
+ public DispatchEventOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -652,14 +652,14 @@ class DragToOptions {
* Whether to bypass the actionability checks. Defaults to
* {@code false}.
*/
- public DragToOptions setForce(boolean force) {
+ public DragToOptions setForce(@Nullable Boolean force) {
this.force = force;
return this;
}
/**
* @deprecated This option has no effect.
*/
- public DragToOptions setNoWaitAfter(boolean noWaitAfter) {
+ public DragToOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -669,7 +669,7 @@ public DragToOptions setNoWaitAfter(boolean noWaitAfter) {
* "none"}, Playwright does not scroll the element and the action fails if the element is not already in the viewport. This
* is useful to assert that an element is reachable by the user without additional scrolling.
*/
- public DragToOptions setScroll(ScrollMode scroll) {
+ public DragToOptions setScroll(@Nullable ScrollMode scroll) {
this.scroll = scroll;
return this;
}
@@ -684,7 +684,7 @@ public DragToOptions setSourcePosition(double x, double y) {
* Clicks on the source element at this point relative to the top-left corner of the element's padding box. If not
* specified, some visible point of the element is used.
*/
- public DragToOptions setSourcePosition(Position sourcePosition) {
+ public DragToOptions setSourcePosition(@Nullable Position sourcePosition) {
this.sourcePosition = sourcePosition;
return this;
}
@@ -692,7 +692,7 @@ public DragToOptions setSourcePosition(Position sourcePosition) {
* Defaults to 1. Sends {@code n} interpolated {@code mousemove} events to represent travel between the {@code mousedown}
* and {@code mouseup} of the drag. When set to 1, emits a single {@code mousemove} event at the destination location.
*/
- public DragToOptions setSteps(int steps) {
+ public DragToOptions setSteps(@Nullable Integer steps) {
this.steps = steps;
return this;
}
@@ -707,7 +707,7 @@ public DragToOptions setTargetPosition(double x, double y) {
* Drops on the target element at this point relative to the top-left corner of the element's padding box. If not
* specified, some visible point of the element is used.
*/
- public DragToOptions setTargetPosition(Position targetPosition) {
+ public DragToOptions setTargetPosition(@Nullable Position targetPosition) {
this.targetPosition = targetPosition;
return this;
}
@@ -717,7 +717,7 @@ public DragToOptions setTargetPosition(Position targetPosition) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public DragToOptions setTimeout(double timeout) {
+ public DragToOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -726,7 +726,7 @@ public DragToOptions setTimeout(double timeout) {
* checks and skips the action. Defaults to {@code false}. Useful to wait until the element is ready for the action without
* performing it.
*/
- public DragToOptions setTrial(boolean trial) {
+ public DragToOptions setTrial(@Nullable Boolean trial) {
this.trial = trial;
return this;
}
@@ -756,7 +756,7 @@ public DropOptions setPosition(double x, double y) {
* A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the
* element.
*/
- public DropOptions setPosition(Position position) {
+ public DropOptions setPosition(@Nullable Position position) {
this.position = position;
return this;
}
@@ -766,7 +766,7 @@ public DropOptions setPosition(Position position) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public DropOptions setTimeout(double timeout) {
+ public DropOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -786,7 +786,7 @@ class ElementHandleOptions {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public ElementHandleOptions setTimeout(double timeout) {
+ public ElementHandleOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -802,7 +802,7 @@ class EvaluateOptions {
* Maximum time in milliseconds to wait for the locator before evaluating. Note that after locator is resolved, evaluation
* itself is not limited by the timeout. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout.
*/
- public EvaluateOptions setTimeout(double timeout) {
+ public EvaluateOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -818,7 +818,7 @@ class EvaluateHandleOptions {
* Maximum time in milliseconds to wait for the locator before evaluating. Note that after locator is resolved, evaluation
* itself is not limited by the timeout. Defaults to {@code 30000} (30 seconds). Pass {@code 0} to disable timeout.
*/
- public EvaluateHandleOptions setTimeout(double timeout) {
+ public EvaluateHandleOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -845,14 +845,14 @@ class FillOptions {
* Whether to bypass the actionability checks. Defaults to
* {@code false}.
*/
- public FillOptions setForce(boolean force) {
+ public FillOptions setForce(@Nullable Boolean force) {
this.force = force;
return this;
}
/**
* @deprecated This option has no effect.
*/
- public FillOptions setNoWaitAfter(boolean noWaitAfter) {
+ public FillOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -862,7 +862,7 @@ public FillOptions setNoWaitAfter(boolean noWaitAfter) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public FillOptions setTimeout(double timeout) {
+ public FillOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -918,7 +918,7 @@ class FilterOptions {
*
*
Note that outer and inner locators must belong to the same frame. Inner locator must not contain {@code FrameLocator}s.
*/
- public FilterOptions setHas(Locator has) {
+ public FilterOptions setHas(@Nullable Locator has) {
this.has = has;
return this;
}
@@ -929,7 +929,7 @@ public FilterOptions setHas(Locator has) {
*
*
Note that outer and inner locators must belong to the same frame. Inner locator must not contain {@code FrameLocator}s.
*/
- public FilterOptions setHasNot(Locator hasNot) {
+ public FilterOptions setHasNot(@Nullable Locator hasNot) {
this.hasNot = hasNot;
return this;
}
@@ -937,7 +937,7 @@ public FilterOptions setHasNot(Locator hasNot) {
* Matches elements that do not contain specified text somewhere inside, possibly in a child or a descendant element. When
* passed a [string], matching is case-insensitive and searches for a substring.
*/
- public FilterOptions setHasNotText(String hasNotText) {
+ public FilterOptions setHasNotText(@Nullable String hasNotText) {
this.hasNotText = hasNotText;
return this;
}
@@ -945,7 +945,7 @@ public FilterOptions setHasNotText(String hasNotText) {
* Matches elements that do not contain specified text somewhere inside, possibly in a child or a descendant element. When
* passed a [string], matching is case-insensitive and searches for a substring.
*/
- public FilterOptions setHasNotText(Pattern hasNotText) {
+ public FilterOptions setHasNotText(@Nullable Pattern hasNotText) {
this.hasNotText = hasNotText;
return this;
}
@@ -954,7 +954,7 @@ public FilterOptions setHasNotText(Pattern hasNotText) {
* [string], matching is case-insensitive and searches for a substring. For example, {@code "Playwright"} matches {@code
*
Playwright
}.
*/
- public FilterOptions setHasText(String hasText) {
+ public FilterOptions setHasText(@Nullable String hasText) {
this.hasText = hasText;
return this;
}
@@ -963,7 +963,7 @@ public FilterOptions setHasText(String hasText) {
* [string], matching is case-insensitive and searches for a substring. For example, {@code "Playwright"} matches {@code
*
Playwright
}.
*/
- public FilterOptions setHasText(Pattern hasText) {
+ public FilterOptions setHasText(@Nullable Pattern hasText) {
this.hasText = hasText;
return this;
}
@@ -971,7 +971,7 @@ public FilterOptions setHasText(Pattern hasText) {
* Only matches visible or invisible elements. Prefer the {@link com.microsoft.playwright.Locator#visible
* Locator.visible()} shortcut when matching only visible elements.
*/
- public FilterOptions setVisible(boolean visible) {
+ public FilterOptions setVisible(@Nullable Boolean visible) {
this.visible = visible;
return this;
}
@@ -991,7 +991,7 @@ class FocusOptions {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public FocusOptions setTimeout(double timeout) {
+ public FocusOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1011,7 +1011,7 @@ class GetAttributeOptions {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public GetAttributeOptions setTimeout(double timeout) {
+ public GetAttributeOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1027,7 +1027,7 @@ class GetByAltTextOptions {
* Whether to find an exact match: case-sensitive and whole-string. Default to false. Ignored when locating by a regular
* expression. Note that exact match still trims whitespace.
*/
- public GetByAltTextOptions setExact(boolean exact) {
+ public GetByAltTextOptions setExact(@Nullable Boolean exact) {
this.exact = exact;
return this;
}
@@ -1043,7 +1043,7 @@ class GetByLabelOptions {
* Whether to find an exact match: case-sensitive and whole-string. Default to false. Ignored when locating by a regular
* expression. Note that exact match still trims whitespace.
*/
- public GetByLabelOptions setExact(boolean exact) {
+ public GetByLabelOptions setExact(@Nullable Boolean exact) {
this.exact = exact;
return this;
}
@@ -1059,7 +1059,7 @@ class GetByPlaceholderOptions {
* Whether to find an exact match: case-sensitive and whole-string. Default to false. Ignored when locating by a regular
* expression. Note that exact match still trims whitespace.
*/
- public GetByPlaceholderOptions setExact(boolean exact) {
+ public GetByPlaceholderOptions setExact(@Nullable Boolean exact) {
this.exact = exact;
return this;
}
@@ -1135,7 +1135,7 @@ class GetByRoleOptions {
*
*
Learn more about {@code aria-checked}.
*/
- public GetByRoleOptions setChecked(boolean checked) {
+ public GetByRoleOptions setChecked(@Nullable Boolean checked) {
this.checked = checked;
return this;
}
@@ -1145,7 +1145,7 @@ public GetByRoleOptions setChecked(boolean checked) {
*
*
Learn more about accessible description.
*/
- public GetByRoleOptions setDescription(String description) {
+ public GetByRoleOptions setDescription(@Nullable String description) {
this.description = description;
return this;
}
@@ -1155,7 +1155,7 @@ public GetByRoleOptions setDescription(String description) {
*
*
Learn more about accessible description.
*/
- public GetByRoleOptions setDescription(Pattern description) {
+ public GetByRoleOptions setDescription(@Nullable Pattern description) {
this.description = description;
return this;
}
@@ -1165,7 +1165,7 @@ public GetByRoleOptions setDescription(Pattern description) {
*
NOTE: Unlike most other attributes, {@code disabled} is inherited through the DOM hierarchy. Learn more about {@code aria-disabled}.
*/
- public GetByRoleOptions setDisabled(boolean disabled) {
+ public GetByRoleOptions setDisabled(@Nullable Boolean disabled) {
this.disabled = disabled;
return this;
}
@@ -1173,7 +1173,7 @@ public GetByRoleOptions setDisabled(boolean disabled) {
* Whether {@code name} and {@code description} are matched exactly: case-sensitive and whole-string. Defaults to false.
* Ignored when the value is a regular expression. Note that exact match still trims whitespace.
*/
- public GetByRoleOptions setExact(boolean exact) {
+ public GetByRoleOptions setExact(@Nullable Boolean exact) {
this.exact = exact;
return this;
}
@@ -1182,7 +1182,7 @@ public GetByRoleOptions setExact(boolean exact) {
*
*
Learn more about {@code aria-expanded}.
*/
- public GetByRoleOptions setExpanded(boolean expanded) {
+ public GetByRoleOptions setExpanded(@Nullable Boolean expanded) {
this.expanded = expanded;
return this;
}
@@ -1192,7 +1192,7 @@ public GetByRoleOptions setExpanded(boolean expanded) {
*
*
Learn more about {@code aria-hidden}.
*/
- public GetByRoleOptions setIncludeHidden(boolean includeHidden) {
+ public GetByRoleOptions setIncludeHidden(@Nullable Boolean includeHidden) {
this.includeHidden = includeHidden;
return this;
}
@@ -1202,7 +1202,7 @@ public GetByRoleOptions setIncludeHidden(boolean includeHidden) {
*
*
Learn more about {@code aria-level}.
*/
- public GetByRoleOptions setLevel(int level) {
+ public GetByRoleOptions setLevel(@Nullable Integer level) {
this.level = level;
return this;
}
@@ -1212,7 +1212,7 @@ public GetByRoleOptions setLevel(int level) {
*
*
Learn more about accessible name.
*/
- public GetByRoleOptions setName(String name) {
+ public GetByRoleOptions setName(@Nullable String name) {
this.name = name;
return this;
}
@@ -1222,7 +1222,7 @@ public GetByRoleOptions setName(String name) {
*
*
Learn more about accessible name.
*/
- public GetByRoleOptions setName(Pattern name) {
+ public GetByRoleOptions setName(@Nullable Pattern name) {
this.name = name;
return this;
}
@@ -1231,7 +1231,7 @@ public GetByRoleOptions setName(Pattern name) {
*
*
Learn more about {@code aria-pressed}.
*/
- public GetByRoleOptions setPressed(boolean pressed) {
+ public GetByRoleOptions setPressed(@Nullable Boolean pressed) {
this.pressed = pressed;
return this;
}
@@ -1240,7 +1240,7 @@ public GetByRoleOptions setPressed(boolean pressed) {
*
*
Learn more about {@code aria-selected}.
*/
- public GetByRoleOptions setSelected(boolean selected) {
+ public GetByRoleOptions setSelected(@Nullable Boolean selected) {
this.selected = selected;
return this;
}
@@ -1256,7 +1256,7 @@ class GetByTextOptions {
* Whether to find an exact match: case-sensitive and whole-string. Default to false. Ignored when locating by a regular
* expression. Note that exact match still trims whitespace.
*/
- public GetByTextOptions setExact(boolean exact) {
+ public GetByTextOptions setExact(@Nullable Boolean exact) {
this.exact = exact;
return this;
}
@@ -1272,7 +1272,7 @@ class GetByTitleOptions {
* Whether to find an exact match: case-sensitive and whole-string. Default to false. Ignored when locating by a regular
* expression. Note that exact match still trims whitespace.
*/
- public GetByTitleOptions setExact(boolean exact) {
+ public GetByTitleOptions setExact(@Nullable Boolean exact) {
this.exact = exact;
return this;
}
@@ -1286,7 +1286,7 @@ class HighlightOptions {
/**
* Additional inline CSS applied to the highlight overlay, e.g. {@code "outline: 2px dashed red"}.
*/
- public HighlightOptions setStyle(String style) {
+ public HighlightOptions setStyle(@Nullable String style) {
this.style = style;
return this;
}
@@ -1338,7 +1338,7 @@ class HoverOptions {
* Whether to bypass the actionability checks. Defaults to
* {@code false}.
*/
- public HoverOptions setForce(boolean force) {
+ public HoverOptions setForce(@Nullable Boolean force) {
this.force = force;
return this;
}
@@ -1347,14 +1347,14 @@ public HoverOptions setForce(boolean force) {
* modifiers back. If not specified, currently pressed modifiers are used. "ControlOrMeta" resolves to "Control" on Windows
* and Linux and to "Meta" on macOS.
*/
- public HoverOptions setModifiers(List modifiers) {
+ public HoverOptions setModifiers(@Nullable List modifiers) {
this.modifiers = modifiers;
return this;
}
/**
* @deprecated This option has no effect.
*/
- public HoverOptions setNoWaitAfter(boolean noWaitAfter) {
+ public HoverOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -1369,7 +1369,7 @@ public HoverOptions setPosition(double x, double y) {
* A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the
* element.
*/
- public HoverOptions setPosition(Position position) {
+ public HoverOptions setPosition(@Nullable Position position) {
this.position = position;
return this;
}
@@ -1379,7 +1379,7 @@ public HoverOptions setPosition(Position position) {
* "none"}, Playwright does not scroll the element and the action fails if the element is not already in the viewport. This
* is useful to assert that an element is reachable by the user without additional scrolling.
*/
- public HoverOptions setScroll(ScrollMode scroll) {
+ public HoverOptions setScroll(@Nullable ScrollMode scroll) {
this.scroll = scroll;
return this;
}
@@ -1389,7 +1389,7 @@ public HoverOptions setScroll(ScrollMode scroll) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public HoverOptions setTimeout(double timeout) {
+ public HoverOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1399,7 +1399,7 @@ public HoverOptions setTimeout(double timeout) {
* performing it. Note that keyboard {@code modifiers} will be pressed regardless of {@code trial} to allow testing
* elements which are only visible when those keys are pressed.
*/
- public HoverOptions setTrial(boolean trial) {
+ public HoverOptions setTrial(@Nullable Boolean trial) {
this.trial = trial;
return this;
}
@@ -1419,7 +1419,7 @@ class InnerHTMLOptions {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public InnerHTMLOptions setTimeout(double timeout) {
+ public InnerHTMLOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1439,7 +1439,7 @@ class InnerTextOptions {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public InnerTextOptions setTimeout(double timeout) {
+ public InnerTextOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1459,7 +1459,7 @@ class InputValueOptions {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public InputValueOptions setTimeout(double timeout) {
+ public InputValueOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1479,7 +1479,7 @@ class IsCheckedOptions {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public IsCheckedOptions setTimeout(double timeout) {
+ public IsCheckedOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1499,7 +1499,7 @@ class IsDisabledOptions {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public IsDisabledOptions setTimeout(double timeout) {
+ public IsDisabledOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1519,7 +1519,7 @@ class IsEditableOptions {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public IsEditableOptions setTimeout(double timeout) {
+ public IsEditableOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1539,7 +1539,7 @@ class IsEnabledOptions {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public IsEnabledOptions setTimeout(double timeout) {
+ public IsEnabledOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1555,7 +1555,7 @@ class IsHiddenOptions {
* @deprecated This option is ignored. {@link com.microsoft.playwright.Locator#isHidden Locator.isHidden()} does not wait for the
* element to become hidden and returns immediately.
*/
- public IsHiddenOptions setTimeout(double timeout) {
+ public IsHiddenOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1571,7 +1571,7 @@ class IsVisibleOptions {
* @deprecated This option is ignored. {@link com.microsoft.playwright.Locator#isVisible Locator.isVisible()} does not wait for the
* element to become visible and returns immediately.
*/
- public IsVisibleOptions setTimeout(double timeout) {
+ public IsVisibleOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1622,7 +1622,7 @@ class LocatorOptions {
*
*
Note that outer and inner locators must belong to the same frame. Inner locator must not contain {@code FrameLocator}s.
*/
- public LocatorOptions setHas(Locator has) {
+ public LocatorOptions setHas(@Nullable Locator has) {
this.has = has;
return this;
}
@@ -1633,7 +1633,7 @@ public LocatorOptions setHas(Locator has) {
*
*
Note that outer and inner locators must belong to the same frame. Inner locator must not contain {@code FrameLocator}s.
*/
- public LocatorOptions setHasNot(Locator hasNot) {
+ public LocatorOptions setHasNot(@Nullable Locator hasNot) {
this.hasNot = hasNot;
return this;
}
@@ -1641,7 +1641,7 @@ public LocatorOptions setHasNot(Locator hasNot) {
* Matches elements that do not contain specified text somewhere inside, possibly in a child or a descendant element. When
* passed a [string], matching is case-insensitive and searches for a substring.
*/
- public LocatorOptions setHasNotText(String hasNotText) {
+ public LocatorOptions setHasNotText(@Nullable String hasNotText) {
this.hasNotText = hasNotText;
return this;
}
@@ -1649,7 +1649,7 @@ public LocatorOptions setHasNotText(String hasNotText) {
* Matches elements that do not contain specified text somewhere inside, possibly in a child or a descendant element. When
* passed a [string], matching is case-insensitive and searches for a substring.
*/
- public LocatorOptions setHasNotText(Pattern hasNotText) {
+ public LocatorOptions setHasNotText(@Nullable Pattern hasNotText) {
this.hasNotText = hasNotText;
return this;
}
@@ -1658,7 +1658,7 @@ public LocatorOptions setHasNotText(Pattern hasNotText) {
* [string], matching is case-insensitive and searches for a substring. For example, {@code "Playwright"} matches {@code
*
Playwright
}.
*/
- public LocatorOptions setHasText(String hasText) {
+ public LocatorOptions setHasText(@Nullable String hasText) {
this.hasText = hasText;
return this;
}
@@ -1667,7 +1667,7 @@ public LocatorOptions setHasText(String hasText) {
* [string], matching is case-insensitive and searches for a substring. For example, {@code "Playwright"} matches {@code
*
Playwright
}.
*/
- public LocatorOptions setHasText(Pattern hasText) {
+ public LocatorOptions setHasText(@Nullable Pattern hasText) {
this.hasText = hasText;
return this;
}
@@ -1692,14 +1692,14 @@ class PressOptions {
/**
* Time to wait between {@code keydown} and {@code keyup} in milliseconds. Defaults to 0.
*/
- public PressOptions setDelay(double delay) {
+ public PressOptions setDelay(@Nullable Double delay) {
this.delay = delay;
return this;
}
/**
* @deprecated This option will default to {@code true} in the future.
*/
- public PressOptions setNoWaitAfter(boolean noWaitAfter) {
+ public PressOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -1709,7 +1709,7 @@ public PressOptions setNoWaitAfter(boolean noWaitAfter) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public PressOptions setTimeout(double timeout) {
+ public PressOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1734,14 +1734,14 @@ class PressSequentiallyOptions {
/**
* Time to wait between key presses in milliseconds. Defaults to 0.
*/
- public PressSequentiallyOptions setDelay(double delay) {
+ public PressSequentiallyOptions setDelay(@Nullable Double delay) {
this.delay = delay;
return this;
}
/**
* @deprecated This option has no effect.
*/
- public PressSequentiallyOptions setNoWaitAfter(boolean noWaitAfter) {
+ public PressSequentiallyOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -1751,7 +1751,7 @@ public PressSequentiallyOptions setNoWaitAfter(boolean noWaitAfter) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public PressSequentiallyOptions setTimeout(double timeout) {
+ public PressSequentiallyOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1839,7 +1839,7 @@ class ScreenshotOptions {
*
*
Defaults to {@code "allow"} that leaves animations untouched.
*/
- public ScreenshotOptions setAnimations(ScreenshotAnimations animations) {
+ public ScreenshotOptions setAnimations(@Nullable ScreenshotAnimations animations) {
this.animations = animations;
return this;
}
@@ -1847,7 +1847,7 @@ public ScreenshotOptions setAnimations(ScreenshotAnimations animations) {
* When set to {@code "hide"}, screenshot will hide text caret. When set to {@code "initial"}, text caret behavior will not
* be changed. Defaults to {@code "hide"}.
*/
- public ScreenshotOptions setCaret(ScreenshotCaret caret) {
+ public ScreenshotOptions setCaret(@Nullable ScreenshotCaret caret) {
this.caret = caret;
return this;
}
@@ -1857,7 +1857,7 @@ public ScreenshotOptions setCaret(ScreenshotCaret caret) {
* invisible elements, see Matching only
* visible elements to disable that.
*/
- public ScreenshotOptions setMask(List mask) {
+ public ScreenshotOptions setMask(@Nullable List mask) {
this.mask = mask;
return this;
}
@@ -1866,7 +1866,7 @@ public ScreenshotOptions setMask(List mask) {
* href="https://developer.mozilla.org/en-US/docs/Web/CSS/color_value">CSS color format. Default color is pink {@code
* #FF00FF}.
*/
- public ScreenshotOptions setMaskColor(String maskColor) {
+ public ScreenshotOptions setMaskColor(@Nullable String maskColor) {
this.maskColor = maskColor;
return this;
}
@@ -1874,7 +1874,7 @@ public ScreenshotOptions setMaskColor(String maskColor) {
* Hides default white background and allows capturing screenshots with transparency. Not applicable to {@code jpeg}
* images. Defaults to {@code false}.
*/
- public ScreenshotOptions setOmitBackground(boolean omitBackground) {
+ public ScreenshotOptions setOmitBackground(@Nullable Boolean omitBackground) {
this.omitBackground = omitBackground;
return this;
}
@@ -1883,7 +1883,7 @@ public ScreenshotOptions setOmitBackground(boolean omitBackground) {
* relative path, then it is resolved relative to the current working directory. If no path is provided, the image won't be
* saved to the disk.
*/
- public ScreenshotOptions setPath(Path path) {
+ public ScreenshotOptions setPath(@Nullable Path path) {
this.path = path;
return this;
}
@@ -1892,7 +1892,7 @@ public ScreenshotOptions setPath(Path path) {
* 80}. For {@code webp}, a quality of {@code 100} (the default) produces a lossless image, while lower values use lossy
* compression.
*/
- public ScreenshotOptions setQuality(int quality) {
+ public ScreenshotOptions setQuality(@Nullable Integer quality) {
this.quality = quality;
return this;
}
@@ -1903,7 +1903,7 @@ public ScreenshotOptions setQuality(int quality) {
*
*
Defaults to {@code "device"}.
*/
- public ScreenshotOptions setScale(ScreenshotScale scale) {
+ public ScreenshotOptions setScale(@Nullable ScreenshotScale scale) {
this.scale = scale;
return this;
}
@@ -1912,7 +1912,7 @@ public ScreenshotOptions setScale(ScreenshotScale scale) {
* invisible or change their properties to help you creating repeatable screenshots. This stylesheet pierces the Shadow DOM
* and applies to the inner frames.
*/
- public ScreenshotOptions setStyle(String style) {
+ public ScreenshotOptions setStyle(@Nullable String style) {
this.style = style;
return this;
}
@@ -1922,14 +1922,14 @@ public ScreenshotOptions setStyle(String style) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public ScreenshotOptions setTimeout(double timeout) {
+ public ScreenshotOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
/**
* Specify screenshot type, defaults to {@code png}.
*/
- public ScreenshotOptions setType(ScreenshotType type) {
+ public ScreenshotOptions setType(@Nullable ScreenshotType type) {
this.type = type;
return this;
}
@@ -1949,7 +1949,7 @@ class ScrollIntoViewIfNeededOptions {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public ScrollIntoViewIfNeededOptions setTimeout(double timeout) {
+ public ScrollIntoViewIfNeededOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1976,14 +1976,14 @@ class SelectOptionOptions {
* Whether to bypass the actionability checks. Defaults to
* {@code false}.
*/
- public SelectOptionOptions setForce(boolean force) {
+ public SelectOptionOptions setForce(@Nullable Boolean force) {
this.force = force;
return this;
}
/**
* @deprecated This option has no effect.
*/
- public SelectOptionOptions setNoWaitAfter(boolean noWaitAfter) {
+ public SelectOptionOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -1993,7 +1993,7 @@ public SelectOptionOptions setNoWaitAfter(boolean noWaitAfter) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public SelectOptionOptions setTimeout(double timeout) {
+ public SelectOptionOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -2016,7 +2016,7 @@ class SelectTextOptions {
* Whether to bypass the actionability checks. Defaults to
* {@code false}.
*/
- public SelectTextOptions setForce(boolean force) {
+ public SelectTextOptions setForce(@Nullable Boolean force) {
this.force = force;
return this;
}
@@ -2026,7 +2026,7 @@ public SelectTextOptions setForce(boolean force) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public SelectTextOptions setTimeout(double timeout) {
+ public SelectTextOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -2071,14 +2071,14 @@ class SetCheckedOptions {
* Whether to bypass the actionability checks. Defaults to
* {@code false}.
*/
- public SetCheckedOptions setForce(boolean force) {
+ public SetCheckedOptions setForce(@Nullable Boolean force) {
this.force = force;
return this;
}
/**
* @deprecated This option has no effect.
*/
- public SetCheckedOptions setNoWaitAfter(boolean noWaitAfter) {
+ public SetCheckedOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -2093,7 +2093,7 @@ public SetCheckedOptions setPosition(double x, double y) {
* A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the
* element.
*/
- public SetCheckedOptions setPosition(Position position) {
+ public SetCheckedOptions setPosition(@Nullable Position position) {
this.position = position;
return this;
}
@@ -2103,7 +2103,7 @@ public SetCheckedOptions setPosition(Position position) {
* "none"}, Playwright does not scroll the element and the action fails if the element is not already in the viewport. This
* is useful to assert that an element is reachable by the user without additional scrolling.
*/
- public SetCheckedOptions setScroll(ScrollMode scroll) {
+ public SetCheckedOptions setScroll(@Nullable ScrollMode scroll) {
this.scroll = scroll;
return this;
}
@@ -2113,7 +2113,7 @@ public SetCheckedOptions setScroll(ScrollMode scroll) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public SetCheckedOptions setTimeout(double timeout) {
+ public SetCheckedOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -2122,7 +2122,7 @@ public SetCheckedOptions setTimeout(double timeout) {
* checks and skips the action. Defaults to {@code false}. Useful to wait until the element is ready for the action without
* performing it.
*/
- public SetCheckedOptions setTrial(boolean trial) {
+ public SetCheckedOptions setTrial(@Nullable Boolean trial) {
this.trial = trial;
return this;
}
@@ -2143,7 +2143,7 @@ class SetInputFilesOptions {
/**
* @deprecated This option has no effect.
*/
- public SetInputFilesOptions setNoWaitAfter(boolean noWaitAfter) {
+ public SetInputFilesOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -2153,7 +2153,7 @@ public SetInputFilesOptions setNoWaitAfter(boolean noWaitAfter) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public SetInputFilesOptions setTimeout(double timeout) {
+ public SetInputFilesOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -2205,7 +2205,7 @@ class TapOptions {
* Whether to bypass the actionability checks. Defaults to
* {@code false}.
*/
- public TapOptions setForce(boolean force) {
+ public TapOptions setForce(@Nullable Boolean force) {
this.force = force;
return this;
}
@@ -2214,14 +2214,14 @@ public TapOptions setForce(boolean force) {
* modifiers back. If not specified, currently pressed modifiers are used. "ControlOrMeta" resolves to "Control" on Windows
* and Linux and to "Meta" on macOS.
*/
- public TapOptions setModifiers(List modifiers) {
+ public TapOptions setModifiers(@Nullable List modifiers) {
this.modifiers = modifiers;
return this;
}
/**
* @deprecated This option has no effect.
*/
- public TapOptions setNoWaitAfter(boolean noWaitAfter) {
+ public TapOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -2236,7 +2236,7 @@ public TapOptions setPosition(double x, double y) {
* A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the
* element.
*/
- public TapOptions setPosition(Position position) {
+ public TapOptions setPosition(@Nullable Position position) {
this.position = position;
return this;
}
@@ -2246,7 +2246,7 @@ public TapOptions setPosition(Position position) {
* "none"}, Playwright does not scroll the element and the action fails if the element is not already in the viewport. This
* is useful to assert that an element is reachable by the user without additional scrolling.
*/
- public TapOptions setScroll(ScrollMode scroll) {
+ public TapOptions setScroll(@Nullable ScrollMode scroll) {
this.scroll = scroll;
return this;
}
@@ -2256,7 +2256,7 @@ public TapOptions setScroll(ScrollMode scroll) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public TapOptions setTimeout(double timeout) {
+ public TapOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -2266,7 +2266,7 @@ public TapOptions setTimeout(double timeout) {
* performing it. Note that keyboard {@code modifiers} will be pressed regardless of {@code trial} to allow testing
* elements which are only visible when those keys are pressed.
*/
- public TapOptions setTrial(boolean trial) {
+ public TapOptions setTrial(@Nullable Boolean trial) {
this.trial = trial;
return this;
}
@@ -2286,7 +2286,7 @@ class TextContentOptions {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public TextContentOptions setTimeout(double timeout) {
+ public TextContentOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -2311,14 +2311,14 @@ class TypeOptions {
/**
* Time to wait between key presses in milliseconds. Defaults to 0.
*/
- public TypeOptions setDelay(double delay) {
+ public TypeOptions setDelay(@Nullable Double delay) {
this.delay = delay;
return this;
}
/**
* @deprecated This option has no effect.
*/
- public TypeOptions setNoWaitAfter(boolean noWaitAfter) {
+ public TypeOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -2328,7 +2328,7 @@ public TypeOptions setNoWaitAfter(boolean noWaitAfter) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public TypeOptions setTimeout(double timeout) {
+ public TypeOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -2373,14 +2373,14 @@ class UncheckOptions {
* Whether to bypass the actionability checks. Defaults to
* {@code false}.
*/
- public UncheckOptions setForce(boolean force) {
+ public UncheckOptions setForce(@Nullable Boolean force) {
this.force = force;
return this;
}
/**
* @deprecated This option has no effect.
*/
- public UncheckOptions setNoWaitAfter(boolean noWaitAfter) {
+ public UncheckOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -2395,7 +2395,7 @@ public UncheckOptions setPosition(double x, double y) {
* A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the
* element.
*/
- public UncheckOptions setPosition(Position position) {
+ public UncheckOptions setPosition(@Nullable Position position) {
this.position = position;
return this;
}
@@ -2405,7 +2405,7 @@ public UncheckOptions setPosition(Position position) {
* "none"}, Playwright does not scroll the element and the action fails if the element is not already in the viewport. This
* is useful to assert that an element is reachable by the user without additional scrolling.
*/
- public UncheckOptions setScroll(ScrollMode scroll) {
+ public UncheckOptions setScroll(@Nullable ScrollMode scroll) {
this.scroll = scroll;
return this;
}
@@ -2415,7 +2415,7 @@ public UncheckOptions setScroll(ScrollMode scroll) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public UncheckOptions setTimeout(double timeout) {
+ public UncheckOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -2424,7 +2424,7 @@ public UncheckOptions setTimeout(double timeout) {
* checks and skips the action. Defaults to {@code false}. Useful to wait until the element is ready for the action without
* performing it.
*/
- public UncheckOptions setTrial(boolean trial) {
+ public UncheckOptions setTrial(@Nullable Boolean trial) {
this.trial = trial;
return this;
}
@@ -2461,7 +2461,7 @@ class WaitForOptions {
* visibility:hidden}. This is opposite to the {@code "visible"} option.
*
*/
- public WaitForOptions setState(WaitForSelectorState state) {
+ public WaitForOptions setState(@Nullable WaitForSelectorState state) {
this.state = state;
return this;
}
@@ -2471,7 +2471,7 @@ public WaitForOptions setState(WaitForSelectorState state) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public WaitForOptions setTimeout(double timeout) {
+ public WaitForOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -2491,7 +2491,7 @@ class WaitForFunctionOptions {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public WaitForFunctionOptions setTimeout(double timeout) {
+ public WaitForFunctionOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
diff --git a/playwright/src/main/java/com/microsoft/playwright/Mouse.java b/playwright/src/main/java/com/microsoft/playwright/Mouse.java
index 9876a5bb0..68fecdc47 100644
--- a/playwright/src/main/java/com/microsoft/playwright/Mouse.java
+++ b/playwright/src/main/java/com/microsoft/playwright/Mouse.java
@@ -57,21 +57,21 @@ class ClickOptions {
/**
* Defaults to {@code left}.
*/
- public ClickOptions setButton(MouseButton button) {
+ public ClickOptions setButton(@Nullable MouseButton button) {
this.button = button;
return this;
}
/**
* defaults to 1. See [UIEvent.detail].
*/
- public ClickOptions setClickCount(int clickCount) {
+ public ClickOptions setClickCount(@Nullable Integer clickCount) {
this.clickCount = clickCount;
return this;
}
/**
* Time to wait between {@code mousedown} and {@code mouseup} in milliseconds. Defaults to 0.
*/
- public ClickOptions setDelay(double delay) {
+ public ClickOptions setDelay(@Nullable Double delay) {
this.delay = delay;
return this;
}
@@ -89,14 +89,14 @@ class DblclickOptions {
/**
* Defaults to {@code left}.
*/
- public DblclickOptions setButton(MouseButton button) {
+ public DblclickOptions setButton(@Nullable MouseButton button) {
this.button = button;
return this;
}
/**
* Time to wait between {@code mousedown} and {@code mouseup} in milliseconds. Defaults to 0.
*/
- public DblclickOptions setDelay(double delay) {
+ public DblclickOptions setDelay(@Nullable Double delay) {
this.delay = delay;
return this;
}
@@ -114,14 +114,14 @@ class DownOptions {
/**
* Defaults to {@code left}.
*/
- public DownOptions setButton(MouseButton button) {
+ public DownOptions setButton(@Nullable MouseButton button) {
this.button = button;
return this;
}
/**
* defaults to 1. See [UIEvent.detail].
*/
- public DownOptions setClickCount(int clickCount) {
+ public DownOptions setClickCount(@Nullable Integer clickCount) {
this.clickCount = clickCount;
return this;
}
@@ -139,7 +139,7 @@ class MoveOptions {
* cursor position and the provided destination. When set to 1, emits a single {@code mousemove} event at the destination
* location.
*/
- public MoveOptions setSteps(int steps) {
+ public MoveOptions setSteps(@Nullable Integer steps) {
this.steps = steps;
return this;
}
@@ -157,14 +157,14 @@ class UpOptions {
/**
* Defaults to {@code left}.
*/
- public UpOptions setButton(MouseButton button) {
+ public UpOptions setButton(@Nullable MouseButton button) {
this.button = button;
return this;
}
/**
* defaults to 1. See [UIEvent.detail].
*/
- public UpOptions setClickCount(int clickCount) {
+ public UpOptions setClickCount(@Nullable Integer clickCount) {
this.clickCount = clickCount;
return this;
}
diff --git a/playwright/src/main/java/com/microsoft/playwright/Page.java b/playwright/src/main/java/com/microsoft/playwright/Page.java
index 4d857570c..d4aa4e9be 100644
--- a/playwright/src/main/java/com/microsoft/playwright/Page.java
+++ b/playwright/src/main/java/com/microsoft/playwright/Page.java
@@ -366,7 +366,7 @@ class AddScriptTagOptions {
/**
* Raw JavaScript content to be injected into frame.
*/
- public AddScriptTagOptions setContent(String content) {
+ public AddScriptTagOptions setContent(@Nullable String content) {
this.content = content;
return this;
}
@@ -374,7 +374,7 @@ public AddScriptTagOptions setContent(String content) {
* Path to the JavaScript file to be injected into frame. If {@code path} is a relative path, then it is resolved relative
* to the current working directory.
*/
- public AddScriptTagOptions setPath(Path path) {
+ public AddScriptTagOptions setPath(@Nullable Path path) {
this.path = path;
return this;
}
@@ -382,14 +382,14 @@ public AddScriptTagOptions setPath(Path path) {
* Script type. Use 'module' in order to load a JavaScript ES6 module. See script for more details.
*/
- public AddScriptTagOptions setType(String type) {
+ public AddScriptTagOptions setType(@Nullable String type) {
this.type = type;
return this;
}
/**
* URL of a script to be added.
*/
- public AddScriptTagOptions setUrl(String url) {
+ public AddScriptTagOptions setUrl(@Nullable String url) {
this.url = url;
return this;
}
@@ -412,7 +412,7 @@ class AddStyleTagOptions {
/**
* Raw CSS content to be injected into frame.
*/
- public AddStyleTagOptions setContent(String content) {
+ public AddStyleTagOptions setContent(@Nullable String content) {
this.content = content;
return this;
}
@@ -420,14 +420,14 @@ public AddStyleTagOptions setContent(String content) {
* Path to the CSS file to be injected into frame. If {@code path} is a relative path, then it is resolved relative to the
* current working directory.
*/
- public AddStyleTagOptions setPath(Path path) {
+ public AddStyleTagOptions setPath(@Nullable Path path) {
this.path = path;
return this;
}
/**
* URL of the {@code } tag.
*/
- public AddStyleTagOptions setUrl(String url) {
+ public AddStyleTagOptions setUrl(@Nullable String url) {
this.url = url;
return this;
}
@@ -477,14 +477,14 @@ class CheckOptions {
* Whether to bypass the actionability checks. Defaults to
* {@code false}.
*/
- public CheckOptions setForce(boolean force) {
+ public CheckOptions setForce(@Nullable Boolean force) {
this.force = force;
return this;
}
/**
* @deprecated This option has no effect.
*/
- public CheckOptions setNoWaitAfter(boolean noWaitAfter) {
+ public CheckOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -499,7 +499,7 @@ public CheckOptions setPosition(double x, double y) {
* A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the
* element.
*/
- public CheckOptions setPosition(Position position) {
+ public CheckOptions setPosition(@Nullable Position position) {
this.position = position;
return this;
}
@@ -509,7 +509,7 @@ public CheckOptions setPosition(Position position) {
* "none"}, Playwright does not scroll the element and the action fails if the element is not already in the viewport. This
* is useful to assert that an element is reachable by the user without additional scrolling.
*/
- public CheckOptions setScroll(ScrollMode scroll) {
+ public CheckOptions setScroll(@Nullable ScrollMode scroll) {
this.scroll = scroll;
return this;
}
@@ -517,7 +517,7 @@ public CheckOptions setScroll(ScrollMode scroll) {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public CheckOptions setStrict(boolean strict) {
+ public CheckOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -527,7 +527,7 @@ public CheckOptions setStrict(boolean strict) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public CheckOptions setTimeout(double timeout) {
+ public CheckOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -536,7 +536,7 @@ public CheckOptions setTimeout(double timeout) {
* checks and skips the action. Defaults to {@code false}. Useful to wait until the element is ready for the action without
* performing it.
*/
- public CheckOptions setTrial(boolean trial) {
+ public CheckOptions setTrial(@Nullable Boolean trial) {
this.trial = trial;
return this;
}
@@ -604,21 +604,21 @@ class ClickOptions {
/**
* Defaults to {@code left}.
*/
- public ClickOptions setButton(MouseButton button) {
+ public ClickOptions setButton(@Nullable MouseButton button) {
this.button = button;
return this;
}
/**
* defaults to 1. See [UIEvent.detail].
*/
- public ClickOptions setClickCount(int clickCount) {
+ public ClickOptions setClickCount(@Nullable Integer clickCount) {
this.clickCount = clickCount;
return this;
}
/**
* Time to wait between {@code mousedown} and {@code mouseup} in milliseconds. Defaults to 0.
*/
- public ClickOptions setDelay(double delay) {
+ public ClickOptions setDelay(@Nullable Double delay) {
this.delay = delay;
return this;
}
@@ -626,7 +626,7 @@ public ClickOptions setDelay(double delay) {
* Whether to bypass the actionability checks. Defaults to
* {@code false}.
*/
- public ClickOptions setForce(boolean force) {
+ public ClickOptions setForce(@Nullable Boolean force) {
this.force = force;
return this;
}
@@ -635,14 +635,14 @@ public ClickOptions setForce(boolean force) {
* modifiers back. If not specified, currently pressed modifiers are used. "ControlOrMeta" resolves to "Control" on Windows
* and Linux and to "Meta" on macOS.
*/
- public ClickOptions setModifiers(List modifiers) {
+ public ClickOptions setModifiers(@Nullable List modifiers) {
this.modifiers = modifiers;
return this;
}
/**
* @deprecated This option will default to {@code true} in the future.
*/
- public ClickOptions setNoWaitAfter(boolean noWaitAfter) {
+ public ClickOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -657,7 +657,7 @@ public ClickOptions setPosition(double x, double y) {
* A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the
* element.
*/
- public ClickOptions setPosition(Position position) {
+ public ClickOptions setPosition(@Nullable Position position) {
this.position = position;
return this;
}
@@ -667,7 +667,7 @@ public ClickOptions setPosition(Position position) {
* "none"}, Playwright does not scroll the element and the action fails if the element is not already in the viewport. This
* is useful to assert that an element is reachable by the user without additional scrolling.
*/
- public ClickOptions setScroll(ScrollMode scroll) {
+ public ClickOptions setScroll(@Nullable ScrollMode scroll) {
this.scroll = scroll;
return this;
}
@@ -675,7 +675,7 @@ public ClickOptions setScroll(ScrollMode scroll) {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public ClickOptions setStrict(boolean strict) {
+ public ClickOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -685,7 +685,7 @@ public ClickOptions setStrict(boolean strict) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public ClickOptions setTimeout(double timeout) {
+ public ClickOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -695,7 +695,7 @@ public ClickOptions setTimeout(double timeout) {
* performing it. Note that keyboard {@code modifiers} will be pressed regardless of {@code trial} to allow testing
* elements which are only visible when those keys are pressed.
*/
- public ClickOptions setTrial(boolean trial) {
+ public ClickOptions setTrial(@Nullable Boolean trial) {
this.trial = trial;
return this;
}
@@ -714,7 +714,7 @@ class CloseOptions {
/**
* The reason to be reported to the operations interrupted by the page closure.
*/
- public CloseOptions setReason(String reason) {
+ public CloseOptions setReason(@Nullable String reason) {
this.reason = reason;
return this;
}
@@ -722,7 +722,7 @@ public CloseOptions setReason(String reason) {
* Defaults to {@code false}. Whether to run the before unload page handlers.
*/
- public CloseOptions setRunBeforeUnload(boolean runBeforeUnload) {
+ public CloseOptions setRunBeforeUnload(@Nullable Boolean runBeforeUnload) {
this.runBeforeUnload = runBeforeUnload;
return this;
}
@@ -786,14 +786,14 @@ class DblclickOptions {
/**
* Defaults to {@code left}.
*/
- public DblclickOptions setButton(MouseButton button) {
+ public DblclickOptions setButton(@Nullable MouseButton button) {
this.button = button;
return this;
}
/**
* Time to wait between {@code mousedown} and {@code mouseup} in milliseconds. Defaults to 0.
*/
- public DblclickOptions setDelay(double delay) {
+ public DblclickOptions setDelay(@Nullable Double delay) {
this.delay = delay;
return this;
}
@@ -801,7 +801,7 @@ public DblclickOptions setDelay(double delay) {
* Whether to bypass the actionability checks. Defaults to
* {@code false}.
*/
- public DblclickOptions setForce(boolean force) {
+ public DblclickOptions setForce(@Nullable Boolean force) {
this.force = force;
return this;
}
@@ -810,14 +810,14 @@ public DblclickOptions setForce(boolean force) {
* modifiers back. If not specified, currently pressed modifiers are used. "ControlOrMeta" resolves to "Control" on Windows
* and Linux and to "Meta" on macOS.
*/
- public DblclickOptions setModifiers(List modifiers) {
+ public DblclickOptions setModifiers(@Nullable List modifiers) {
this.modifiers = modifiers;
return this;
}
/**
* @deprecated This option has no effect.
*/
- public DblclickOptions setNoWaitAfter(boolean noWaitAfter) {
+ public DblclickOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -832,7 +832,7 @@ public DblclickOptions setPosition(double x, double y) {
* A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the
* element.
*/
- public DblclickOptions setPosition(Position position) {
+ public DblclickOptions setPosition(@Nullable Position position) {
this.position = position;
return this;
}
@@ -842,7 +842,7 @@ public DblclickOptions setPosition(Position position) {
* "none"}, Playwright does not scroll the element and the action fails if the element is not already in the viewport. This
* is useful to assert that an element is reachable by the user without additional scrolling.
*/
- public DblclickOptions setScroll(ScrollMode scroll) {
+ public DblclickOptions setScroll(@Nullable ScrollMode scroll) {
this.scroll = scroll;
return this;
}
@@ -850,7 +850,7 @@ public DblclickOptions setScroll(ScrollMode scroll) {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public DblclickOptions setStrict(boolean strict) {
+ public DblclickOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -860,7 +860,7 @@ public DblclickOptions setStrict(boolean strict) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public DblclickOptions setTimeout(double timeout) {
+ public DblclickOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -870,7 +870,7 @@ public DblclickOptions setTimeout(double timeout) {
* performing it. Note that keyboard {@code modifiers} will be pressed regardless of {@code trial} to allow testing
* elements which are only visible when those keys are pressed.
*/
- public DblclickOptions setTrial(boolean trial) {
+ public DblclickOptions setTrial(@Nullable Boolean trial) {
this.trial = trial;
return this;
}
@@ -893,7 +893,7 @@ class DispatchEventOptions {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public DispatchEventOptions setStrict(boolean strict) {
+ public DispatchEventOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -903,7 +903,7 @@ public DispatchEventOptions setStrict(boolean strict) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public DispatchEventOptions setTimeout(double timeout) {
+ public DispatchEventOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -963,14 +963,14 @@ class DragAndDropOptions {
* Whether to bypass the actionability checks. Defaults to
* {@code false}.
*/
- public DragAndDropOptions setForce(boolean force) {
+ public DragAndDropOptions setForce(@Nullable Boolean force) {
this.force = force;
return this;
}
/**
* @deprecated This option has no effect.
*/
- public DragAndDropOptions setNoWaitAfter(boolean noWaitAfter) {
+ public DragAndDropOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -980,7 +980,7 @@ public DragAndDropOptions setNoWaitAfter(boolean noWaitAfter) {
* "none"}, Playwright does not scroll the element and the action fails if the element is not already in the viewport. This
* is useful to assert that an element is reachable by the user without additional scrolling.
*/
- public DragAndDropOptions setScroll(ScrollMode scroll) {
+ public DragAndDropOptions setScroll(@Nullable ScrollMode scroll) {
this.scroll = scroll;
return this;
}
@@ -995,7 +995,7 @@ public DragAndDropOptions setSourcePosition(double x, double y) {
* Clicks on the source element at this point relative to the top-left corner of the element's padding box. If not
* specified, some visible point of the element is used.
*/
- public DragAndDropOptions setSourcePosition(Position sourcePosition) {
+ public DragAndDropOptions setSourcePosition(@Nullable Position sourcePosition) {
this.sourcePosition = sourcePosition;
return this;
}
@@ -1003,7 +1003,7 @@ public DragAndDropOptions setSourcePosition(Position sourcePosition) {
* Defaults to 1. Sends {@code n} interpolated {@code mousemove} events to represent travel between the {@code mousedown}
* and {@code mouseup} of the drag. When set to 1, emits a single {@code mousemove} event at the destination location.
*/
- public DragAndDropOptions setSteps(int steps) {
+ public DragAndDropOptions setSteps(@Nullable Integer steps) {
this.steps = steps;
return this;
}
@@ -1011,7 +1011,7 @@ public DragAndDropOptions setSteps(int steps) {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public DragAndDropOptions setStrict(boolean strict) {
+ public DragAndDropOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -1026,7 +1026,7 @@ public DragAndDropOptions setTargetPosition(double x, double y) {
* Drops on the target element at this point relative to the top-left corner of the element's padding box. If not
* specified, some visible point of the element is used.
*/
- public DragAndDropOptions setTargetPosition(Position targetPosition) {
+ public DragAndDropOptions setTargetPosition(@Nullable Position targetPosition) {
this.targetPosition = targetPosition;
return this;
}
@@ -1036,7 +1036,7 @@ public DragAndDropOptions setTargetPosition(Position targetPosition) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public DragAndDropOptions setTimeout(double timeout) {
+ public DragAndDropOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1045,7 +1045,7 @@ public DragAndDropOptions setTimeout(double timeout) {
* checks and skips the action. Defaults to {@code false}. Useful to wait until the element is ready for the action without
* performing it.
*/
- public DragAndDropOptions setTrial(boolean trial) {
+ public DragAndDropOptions setTrial(@Nullable Boolean trial) {
this.trial = trial;
return this;
}
@@ -1133,7 +1133,7 @@ class EvalOnSelectorOptions {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public EvalOnSelectorOptions setStrict(boolean strict) {
+ public EvalOnSelectorOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -1165,14 +1165,14 @@ class FillOptions {
* Whether to bypass the actionability checks. Defaults to
* {@code false}.
*/
- public FillOptions setForce(boolean force) {
+ public FillOptions setForce(@Nullable Boolean force) {
this.force = force;
return this;
}
/**
* @deprecated This option has no effect.
*/
- public FillOptions setNoWaitAfter(boolean noWaitAfter) {
+ public FillOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -1180,7 +1180,7 @@ public FillOptions setNoWaitAfter(boolean noWaitAfter) {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public FillOptions setStrict(boolean strict) {
+ public FillOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -1190,7 +1190,7 @@ public FillOptions setStrict(boolean strict) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public FillOptions setTimeout(double timeout) {
+ public FillOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1213,7 +1213,7 @@ class FocusOptions {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public FocusOptions setStrict(boolean strict) {
+ public FocusOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -1223,7 +1223,7 @@ public FocusOptions setStrict(boolean strict) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public FocusOptions setTimeout(double timeout) {
+ public FocusOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1246,7 +1246,7 @@ class GetAttributeOptions {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public GetAttributeOptions setStrict(boolean strict) {
+ public GetAttributeOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -1256,7 +1256,7 @@ public GetAttributeOptions setStrict(boolean strict) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public GetAttributeOptions setTimeout(double timeout) {
+ public GetAttributeOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1272,7 +1272,7 @@ class GetByAltTextOptions {
* Whether to find an exact match: case-sensitive and whole-string. Default to false. Ignored when locating by a regular
* expression. Note that exact match still trims whitespace.
*/
- public GetByAltTextOptions setExact(boolean exact) {
+ public GetByAltTextOptions setExact(@Nullable Boolean exact) {
this.exact = exact;
return this;
}
@@ -1288,7 +1288,7 @@ class GetByLabelOptions {
* Whether to find an exact match: case-sensitive and whole-string. Default to false. Ignored when locating by a regular
* expression. Note that exact match still trims whitespace.
*/
- public GetByLabelOptions setExact(boolean exact) {
+ public GetByLabelOptions setExact(@Nullable Boolean exact) {
this.exact = exact;
return this;
}
@@ -1304,7 +1304,7 @@ class GetByPlaceholderOptions {
* Whether to find an exact match: case-sensitive and whole-string. Default to false. Ignored when locating by a regular
* expression. Note that exact match still trims whitespace.
*/
- public GetByPlaceholderOptions setExact(boolean exact) {
+ public GetByPlaceholderOptions setExact(@Nullable Boolean exact) {
this.exact = exact;
return this;
}
@@ -1380,7 +1380,7 @@ class GetByRoleOptions {
*
*
Learn more about {@code aria-checked}.
*/
- public GetByRoleOptions setChecked(boolean checked) {
+ public GetByRoleOptions setChecked(@Nullable Boolean checked) {
this.checked = checked;
return this;
}
@@ -1390,7 +1390,7 @@ public GetByRoleOptions setChecked(boolean checked) {
*
*
Learn more about accessible description.
*/
- public GetByRoleOptions setDescription(String description) {
+ public GetByRoleOptions setDescription(@Nullable String description) {
this.description = description;
return this;
}
@@ -1400,7 +1400,7 @@ public GetByRoleOptions setDescription(String description) {
*
*
Learn more about accessible description.
*/
- public GetByRoleOptions setDescription(Pattern description) {
+ public GetByRoleOptions setDescription(@Nullable Pattern description) {
this.description = description;
return this;
}
@@ -1410,7 +1410,7 @@ public GetByRoleOptions setDescription(Pattern description) {
*
NOTE: Unlike most other attributes, {@code disabled} is inherited through the DOM hierarchy. Learn more about {@code aria-disabled}.
*/
- public GetByRoleOptions setDisabled(boolean disabled) {
+ public GetByRoleOptions setDisabled(@Nullable Boolean disabled) {
this.disabled = disabled;
return this;
}
@@ -1418,7 +1418,7 @@ public GetByRoleOptions setDisabled(boolean disabled) {
* Whether {@code name} and {@code description} are matched exactly: case-sensitive and whole-string. Defaults to false.
* Ignored when the value is a regular expression. Note that exact match still trims whitespace.
*/
- public GetByRoleOptions setExact(boolean exact) {
+ public GetByRoleOptions setExact(@Nullable Boolean exact) {
this.exact = exact;
return this;
}
@@ -1427,7 +1427,7 @@ public GetByRoleOptions setExact(boolean exact) {
*
*
Learn more about {@code aria-expanded}.
*/
- public GetByRoleOptions setExpanded(boolean expanded) {
+ public GetByRoleOptions setExpanded(@Nullable Boolean expanded) {
this.expanded = expanded;
return this;
}
@@ -1437,7 +1437,7 @@ public GetByRoleOptions setExpanded(boolean expanded) {
*
*
Learn more about {@code aria-hidden}.
*/
- public GetByRoleOptions setIncludeHidden(boolean includeHidden) {
+ public GetByRoleOptions setIncludeHidden(@Nullable Boolean includeHidden) {
this.includeHidden = includeHidden;
return this;
}
@@ -1447,7 +1447,7 @@ public GetByRoleOptions setIncludeHidden(boolean includeHidden) {
*
*
Learn more about {@code aria-level}.
*/
- public GetByRoleOptions setLevel(int level) {
+ public GetByRoleOptions setLevel(@Nullable Integer level) {
this.level = level;
return this;
}
@@ -1457,7 +1457,7 @@ public GetByRoleOptions setLevel(int level) {
*
*
Learn more about accessible name.
*/
- public GetByRoleOptions setName(String name) {
+ public GetByRoleOptions setName(@Nullable String name) {
this.name = name;
return this;
}
@@ -1467,7 +1467,7 @@ public GetByRoleOptions setName(String name) {
*
*
Learn more about accessible name.
*/
- public GetByRoleOptions setName(Pattern name) {
+ public GetByRoleOptions setName(@Nullable Pattern name) {
this.name = name;
return this;
}
@@ -1476,7 +1476,7 @@ public GetByRoleOptions setName(Pattern name) {
*
*
Learn more about {@code aria-pressed}.
*/
- public GetByRoleOptions setPressed(boolean pressed) {
+ public GetByRoleOptions setPressed(@Nullable Boolean pressed) {
this.pressed = pressed;
return this;
}
@@ -1485,7 +1485,7 @@ public GetByRoleOptions setPressed(boolean pressed) {
*
*
Learn more about {@code aria-selected}.
*/
- public GetByRoleOptions setSelected(boolean selected) {
+ public GetByRoleOptions setSelected(@Nullable Boolean selected) {
this.selected = selected;
return this;
}
@@ -1501,7 +1501,7 @@ class GetByTextOptions {
* Whether to find an exact match: case-sensitive and whole-string. Default to false. Ignored when locating by a regular
* expression. Note that exact match still trims whitespace.
*/
- public GetByTextOptions setExact(boolean exact) {
+ public GetByTextOptions setExact(@Nullable Boolean exact) {
this.exact = exact;
return this;
}
@@ -1517,7 +1517,7 @@ class GetByTitleOptions {
* Whether to find an exact match: case-sensitive and whole-string. Default to false. Ignored when locating by a regular
* expression. Note that exact match still trims whitespace.
*/
- public GetByTitleOptions setExact(boolean exact) {
+ public GetByTitleOptions setExact(@Nullable Boolean exact) {
this.exact = exact;
return this;
}
@@ -1552,7 +1552,7 @@ class GoBackOptions {
* Page.setDefaultNavigationTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public GoBackOptions setTimeout(double timeout) {
+ public GoBackOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1566,7 +1566,7 @@ public GoBackOptions setTimeout(double timeout) {
*
{@code "commit"} - consider operation to be finished when network response is received and the document started loading.
*
*/
- public GoBackOptions setWaitUntil(WaitUntilState waitUntil) {
+ public GoBackOptions setWaitUntil(@Nullable WaitUntilState waitUntil) {
this.waitUntil = waitUntil;
return this;
}
@@ -1601,7 +1601,7 @@ class GoForwardOptions {
* Page.setDefaultNavigationTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public GoForwardOptions setTimeout(double timeout) {
+ public GoForwardOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1615,7 +1615,7 @@ public GoForwardOptions setTimeout(double timeout) {
*
{@code "commit"} - consider operation to be finished when network response is received and the document started loading.
*
*/
- public GoForwardOptions setWaitUntil(WaitUntilState waitUntil) {
+ public GoForwardOptions setWaitUntil(@Nullable WaitUntilState waitUntil) {
this.waitUntil = waitUntil;
return this;
}
@@ -1651,7 +1651,7 @@ class NavigateOptions {
* Referer header value. If provided it will take preference over the referer header value set by {@link
* com.microsoft.playwright.Page#setExtraHTTPHeaders Page.setExtraHTTPHeaders()}.
*/
- public NavigateOptions setReferer(String referer) {
+ public NavigateOptions setReferer(@Nullable String referer) {
this.referer = referer;
return this;
}
@@ -1663,7 +1663,7 @@ public NavigateOptions setReferer(String referer) {
* Page.setDefaultNavigationTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public NavigateOptions setTimeout(double timeout) {
+ public NavigateOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1677,7 +1677,7 @@ public NavigateOptions setTimeout(double timeout) {
*
{@code "commit"} - consider operation to be finished when network response is received and the document started loading.
*
*/
- public NavigateOptions setWaitUntil(WaitUntilState waitUntil) {
+ public NavigateOptions setWaitUntil(@Nullable WaitUntilState waitUntil) {
this.waitUntil = waitUntil;
return this;
}
@@ -1734,7 +1734,7 @@ class HoverOptions {
* Whether to bypass the actionability checks. Defaults to
* {@code false}.
*/
- public HoverOptions setForce(boolean force) {
+ public HoverOptions setForce(@Nullable Boolean force) {
this.force = force;
return this;
}
@@ -1743,14 +1743,14 @@ public HoverOptions setForce(boolean force) {
* modifiers back. If not specified, currently pressed modifiers are used. "ControlOrMeta" resolves to "Control" on Windows
* and Linux and to "Meta" on macOS.
*/
- public HoverOptions setModifiers(List modifiers) {
+ public HoverOptions setModifiers(@Nullable List modifiers) {
this.modifiers = modifiers;
return this;
}
/**
* @deprecated This option has no effect.
*/
- public HoverOptions setNoWaitAfter(boolean noWaitAfter) {
+ public HoverOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -1765,7 +1765,7 @@ public HoverOptions setPosition(double x, double y) {
* A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the
* element.
*/
- public HoverOptions setPosition(Position position) {
+ public HoverOptions setPosition(@Nullable Position position) {
this.position = position;
return this;
}
@@ -1775,7 +1775,7 @@ public HoverOptions setPosition(Position position) {
* "none"}, Playwright does not scroll the element and the action fails if the element is not already in the viewport. This
* is useful to assert that an element is reachable by the user without additional scrolling.
*/
- public HoverOptions setScroll(ScrollMode scroll) {
+ public HoverOptions setScroll(@Nullable ScrollMode scroll) {
this.scroll = scroll;
return this;
}
@@ -1783,7 +1783,7 @@ public HoverOptions setScroll(ScrollMode scroll) {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public HoverOptions setStrict(boolean strict) {
+ public HoverOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -1793,7 +1793,7 @@ public HoverOptions setStrict(boolean strict) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public HoverOptions setTimeout(double timeout) {
+ public HoverOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1803,7 +1803,7 @@ public HoverOptions setTimeout(double timeout) {
* performing it. Note that keyboard {@code modifiers} will be pressed regardless of {@code trial} to allow testing
* elements which are only visible when those keys are pressed.
*/
- public HoverOptions setTrial(boolean trial) {
+ public HoverOptions setTrial(@Nullable Boolean trial) {
this.trial = trial;
return this;
}
@@ -1826,7 +1826,7 @@ class InnerHTMLOptions {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public InnerHTMLOptions setStrict(boolean strict) {
+ public InnerHTMLOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -1836,7 +1836,7 @@ public InnerHTMLOptions setStrict(boolean strict) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public InnerHTMLOptions setTimeout(double timeout) {
+ public InnerHTMLOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1859,7 +1859,7 @@ class InnerTextOptions {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public InnerTextOptions setStrict(boolean strict) {
+ public InnerTextOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -1869,7 +1869,7 @@ public InnerTextOptions setStrict(boolean strict) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public InnerTextOptions setTimeout(double timeout) {
+ public InnerTextOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1892,7 +1892,7 @@ class InputValueOptions {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public InputValueOptions setStrict(boolean strict) {
+ public InputValueOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -1902,7 +1902,7 @@ public InputValueOptions setStrict(boolean strict) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public InputValueOptions setTimeout(double timeout) {
+ public InputValueOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1925,7 +1925,7 @@ class IsCheckedOptions {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public IsCheckedOptions setStrict(boolean strict) {
+ public IsCheckedOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -1935,7 +1935,7 @@ public IsCheckedOptions setStrict(boolean strict) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public IsCheckedOptions setTimeout(double timeout) {
+ public IsCheckedOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1958,7 +1958,7 @@ class IsDisabledOptions {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public IsDisabledOptions setStrict(boolean strict) {
+ public IsDisabledOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -1968,7 +1968,7 @@ public IsDisabledOptions setStrict(boolean strict) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public IsDisabledOptions setTimeout(double timeout) {
+ public IsDisabledOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -1991,7 +1991,7 @@ class IsEditableOptions {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public IsEditableOptions setStrict(boolean strict) {
+ public IsEditableOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -2001,7 +2001,7 @@ public IsEditableOptions setStrict(boolean strict) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public IsEditableOptions setTimeout(double timeout) {
+ public IsEditableOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -2024,7 +2024,7 @@ class IsEnabledOptions {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public IsEnabledOptions setStrict(boolean strict) {
+ public IsEnabledOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -2034,7 +2034,7 @@ public IsEnabledOptions setStrict(boolean strict) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public IsEnabledOptions setTimeout(double timeout) {
+ public IsEnabledOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -2055,7 +2055,7 @@ class IsHiddenOptions {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public IsHiddenOptions setStrict(boolean strict) {
+ public IsHiddenOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -2063,7 +2063,7 @@ public IsHiddenOptions setStrict(boolean strict) {
* @deprecated This option is ignored. {@link com.microsoft.playwright.Page#isHidden Page.isHidden()} does not wait for the element to
* become hidden and returns immediately.
*/
- public IsHiddenOptions setTimeout(double timeout) {
+ public IsHiddenOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -2084,7 +2084,7 @@ class IsVisibleOptions {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public IsVisibleOptions setStrict(boolean strict) {
+ public IsVisibleOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -2092,7 +2092,7 @@ public IsVisibleOptions setStrict(boolean strict) {
* @deprecated This option is ignored. {@link com.microsoft.playwright.Page#isVisible Page.isVisible()} does not wait for the element
* to become visible and returns immediately.
*/
- public IsVisibleOptions setTimeout(double timeout) {
+ public IsVisibleOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -2106,7 +2106,7 @@ class ConsoleMessagesOptions {
/**
* Controls which messages are returned:
*/
- public ConsoleMessagesOptions setFilter(ConsoleMessagesFilter filter) {
+ public ConsoleMessagesOptions setFilter(@Nullable ConsoleMessagesFilter filter) {
this.filter = filter;
return this;
}
@@ -2157,7 +2157,7 @@ class LocatorOptions {
*
*
Note that outer and inner locators must belong to the same frame. Inner locator must not contain {@code FrameLocator}s.
*/
- public LocatorOptions setHas(Locator has) {
+ public LocatorOptions setHas(@Nullable Locator has) {
this.has = has;
return this;
}
@@ -2168,7 +2168,7 @@ public LocatorOptions setHas(Locator has) {
*
*
Note that outer and inner locators must belong to the same frame. Inner locator must not contain {@code FrameLocator}s.
*/
- public LocatorOptions setHasNot(Locator hasNot) {
+ public LocatorOptions setHasNot(@Nullable Locator hasNot) {
this.hasNot = hasNot;
return this;
}
@@ -2176,7 +2176,7 @@ public LocatorOptions setHasNot(Locator hasNot) {
* Matches elements that do not contain specified text somewhere inside, possibly in a child or a descendant element. When
* passed a [string], matching is case-insensitive and searches for a substring.
*/
- public LocatorOptions setHasNotText(String hasNotText) {
+ public LocatorOptions setHasNotText(@Nullable String hasNotText) {
this.hasNotText = hasNotText;
return this;
}
@@ -2184,7 +2184,7 @@ public LocatorOptions setHasNotText(String hasNotText) {
* Matches elements that do not contain specified text somewhere inside, possibly in a child or a descendant element. When
* passed a [string], matching is case-insensitive and searches for a substring.
*/
- public LocatorOptions setHasNotText(Pattern hasNotText) {
+ public LocatorOptions setHasNotText(@Nullable Pattern hasNotText) {
this.hasNotText = hasNotText;
return this;
}
@@ -2193,7 +2193,7 @@ public LocatorOptions setHasNotText(Pattern hasNotText) {
* [string], matching is case-insensitive and searches for a substring. For example, {@code "Playwright"} matches {@code
*
Playwright
}.
*/
- public LocatorOptions setHasText(String hasText) {
+ public LocatorOptions setHasText(@Nullable String hasText) {
this.hasText = hasText;
return this;
}
@@ -2202,7 +2202,7 @@ public LocatorOptions setHasText(String hasText) {
* [string], matching is case-insensitive and searches for a substring. For example, {@code "Playwright"} matches {@code
*
Playwright
}.
*/
- public LocatorOptions setHasText(Pattern hasText) {
+ public LocatorOptions setHasText(@Nullable Pattern hasText) {
this.hasText = hasText;
return this;
}
@@ -2282,21 +2282,21 @@ class PdfOptions {
/**
* Display header and footer. Defaults to {@code false}.
*/
- public PdfOptions setDisplayHeaderFooter(boolean displayHeaderFooter) {
+ public PdfOptions setDisplayHeaderFooter(@Nullable Boolean displayHeaderFooter) {
this.displayHeaderFooter = displayHeaderFooter;
return this;
}
/**
* HTML template for the print footer. Should use the same format as the {@code headerTemplate}.
*/
- public PdfOptions setFooterTemplate(String footerTemplate) {
+ public PdfOptions setFooterTemplate(@Nullable String footerTemplate) {
this.footerTemplate = footerTemplate;
return this;
}
/**
* Paper format. If set, takes priority over {@code width} or {@code height} options. Defaults to 'Letter'.
*/
- public PdfOptions setFormat(String format) {
+ public PdfOptions setFormat(@Nullable String format) {
this.format = format;
return this;
}
@@ -2311,42 +2311,42 @@ public PdfOptions setFormat(String format) {
*
{@code "totalPages"} total pages in the document
*
*/
- public PdfOptions setHeaderTemplate(String headerTemplate) {
+ public PdfOptions setHeaderTemplate(@Nullable String headerTemplate) {
this.headerTemplate = headerTemplate;
return this;
}
/**
* Paper height, accepts values labeled with units.
*/
- public PdfOptions setHeight(String height) {
+ public PdfOptions setHeight(@Nullable String height) {
this.height = height;
return this;
}
/**
* Paper orientation. Defaults to {@code false}.
*/
- public PdfOptions setLandscape(boolean landscape) {
+ public PdfOptions setLandscape(@Nullable Boolean landscape) {
this.landscape = landscape;
return this;
}
/**
* Paper margins, defaults to none.
*/
- public PdfOptions setMargin(Margin margin) {
+ public PdfOptions setMargin(@Nullable Margin margin) {
this.margin = margin;
return this;
}
/**
* Whether or not to embed the document outline into the PDF. Defaults to {@code false}.
*/
- public PdfOptions setOutline(boolean outline) {
+ public PdfOptions setOutline(@Nullable Boolean outline) {
this.outline = outline;
return this;
}
/**
* Paper ranges to print, e.g., '1-5, 8, 11-13'. Defaults to the empty string, which means print all pages.
*/
- public PdfOptions setPageRanges(String pageRanges) {
+ public PdfOptions setPageRanges(@Nullable String pageRanges) {
this.pageRanges = pageRanges;
return this;
}
@@ -2354,7 +2354,7 @@ public PdfOptions setPageRanges(String pageRanges) {
* The file path to save the PDF to. If {@code path} is a relative path, then it is resolved relative to the current
* working directory. If no path is provided, the PDF won't be saved to the disk.
*/
- public PdfOptions setPath(Path path) {
+ public PdfOptions setPath(@Nullable Path path) {
this.path = path;
return this;
}
@@ -2362,35 +2362,35 @@ public PdfOptions setPath(Path path) {
* Give any CSS {@code @page} size declared in the page priority over what is declared in {@code width} and {@code height}
* or {@code format} options. Defaults to {@code false}, which will scale the content to fit the paper size.
*/
- public PdfOptions setPreferCSSPageSize(boolean preferCSSPageSize) {
+ public PdfOptions setPreferCSSPageSize(@Nullable Boolean preferCSSPageSize) {
this.preferCSSPageSize = preferCSSPageSize;
return this;
}
/**
* Print background graphics. Defaults to {@code false}.
*/
- public PdfOptions setPrintBackground(boolean printBackground) {
+ public PdfOptions setPrintBackground(@Nullable Boolean printBackground) {
this.printBackground = printBackground;
return this;
}
/**
* Scale of the webpage rendering. Defaults to {@code 1}. Scale amount must be between 0.1 and 2.
*/
- public PdfOptions setScale(double scale) {
+ public PdfOptions setScale(@Nullable Double scale) {
this.scale = scale;
return this;
}
/**
* Whether or not to generate tagged (accessible) PDF. Defaults to {@code false}.
*/
- public PdfOptions setTagged(boolean tagged) {
+ public PdfOptions setTagged(@Nullable Boolean tagged) {
this.tagged = tagged;
return this;
}
/**
* Paper width, accepts values labeled with units.
*/
- public PdfOptions setWidth(String width) {
+ public PdfOptions setWidth(@Nullable String width) {
this.width = width;
return this;
}
@@ -2420,14 +2420,14 @@ class PressOptions {
/**
* Time to wait between {@code keydown} and {@code keyup} in milliseconds. Defaults to 0.
*/
- public PressOptions setDelay(double delay) {
+ public PressOptions setDelay(@Nullable Double delay) {
this.delay = delay;
return this;
}
/**
* @deprecated This option will default to {@code true} in the future.
*/
- public PressOptions setNoWaitAfter(boolean noWaitAfter) {
+ public PressOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -2435,7 +2435,7 @@ public PressOptions setNoWaitAfter(boolean noWaitAfter) {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public PressOptions setStrict(boolean strict) {
+ public PressOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -2445,7 +2445,7 @@ public PressOptions setStrict(boolean strict) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public PressOptions setTimeout(double timeout) {
+ public PressOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -2461,7 +2461,7 @@ class QuerySelectorOptions {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public QuerySelectorOptions setStrict(boolean strict) {
+ public QuerySelectorOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -2483,14 +2483,14 @@ class AddLocatorHandlerOptions {
* will continue with the action/assertion that triggered the handler. This option allows to opt-out of this behavior, so
* that overlay can stay visible after the handler has run.
*/
- public AddLocatorHandlerOptions setNoWaitAfter(boolean noWaitAfter) {
+ public AddLocatorHandlerOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
/**
* Specifies the maximum number of times this handler should be called. Unlimited by default.
*/
- public AddLocatorHandlerOptions setTimes(int times) {
+ public AddLocatorHandlerOptions setTimes(@Nullable Integer times) {
this.times = times;
return this;
}
@@ -2525,7 +2525,7 @@ class ReloadOptions {
* Page.setDefaultNavigationTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public ReloadOptions setTimeout(double timeout) {
+ public ReloadOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -2539,7 +2539,7 @@ public ReloadOptions setTimeout(double timeout) {
*
{@code "commit"} - consider operation to be finished when network response is received and the document started loading.
*
*/
- public ReloadOptions setWaitUntil(WaitUntilState waitUntil) {
+ public ReloadOptions setWaitUntil(@Nullable WaitUntilState waitUntil) {
this.waitUntil = waitUntil;
return this;
}
@@ -2553,7 +2553,7 @@ class RouteOptions {
/**
* How often a route should be used. By default it will be used every time.
*/
- public RouteOptions setTimes(int times) {
+ public RouteOptions setTimes(@Nullable Integer times) {
this.times = times;
return this;
}
@@ -2598,7 +2598,7 @@ class RouteFromHAROptions {
*
*
Defaults to abort.
*/
- public RouteFromHAROptions setNotFound(HarNotFound notFound) {
+ public RouteFromHAROptions setNotFound(@Nullable HarNotFound notFound) {
this.notFound = notFound;
return this;
}
@@ -2606,7 +2606,7 @@ public RouteFromHAROptions setNotFound(HarNotFound notFound) {
* If specified, updates the given HAR with the actual network information instead of serving from file. The file is
* written to disk when {@link com.microsoft.playwright.BrowserContext#close BrowserContext.close()} is called.
*/
- public RouteFromHAROptions setUpdate(boolean update) {
+ public RouteFromHAROptions setUpdate(@Nullable Boolean update) {
this.update = update;
return this;
}
@@ -2614,7 +2614,7 @@ public RouteFromHAROptions setUpdate(boolean update) {
* Optional setting to control resource content management. If {@code attach} is specified, resources are persisted as
* separate files or entries in the ZIP archive. If {@code embed} is specified, content is stored inline the HAR file.
*/
- public RouteFromHAROptions setUpdateContent(RouteFromHarUpdateContentPolicy updateContent) {
+ public RouteFromHAROptions setUpdateContent(@Nullable RouteFromHarUpdateContentPolicy updateContent) {
this.updateContent = updateContent;
return this;
}
@@ -2623,7 +2623,7 @@ public RouteFromHAROptions setUpdateContent(RouteFromHarUpdateContentPolicy upda
* cookies, security and other types of HAR information that are not used when replaying from HAR. Defaults to {@code
* minimal}.
*/
- public RouteFromHAROptions setUpdateMode(HarMode updateMode) {
+ public RouteFromHAROptions setUpdateMode(@Nullable HarMode updateMode) {
this.updateMode = updateMode;
return this;
}
@@ -2631,7 +2631,7 @@ public RouteFromHAROptions setUpdateMode(HarMode updateMode) {
* A glob pattern, regular expression or predicate to match the request URL. Only requests with URL matching the pattern
* will be served from the HAR file. If not specified, all requests are served from the HAR file.
*/
- public RouteFromHAROptions setUrl(String url) {
+ public RouteFromHAROptions setUrl(@Nullable String url) {
this.url = url;
return this;
}
@@ -2639,7 +2639,7 @@ public RouteFromHAROptions setUrl(String url) {
* A glob pattern, regular expression or predicate to match the request URL. Only requests with URL matching the pattern
* will be served from the HAR file. If not specified, all requests are served from the HAR file.
*/
- public RouteFromHAROptions setUrl(Pattern url) {
+ public RouteFromHAROptions setUrl(@Nullable Pattern url) {
this.url = url;
return this;
}
@@ -2736,7 +2736,7 @@ class ScreenshotOptions {
*
*
Defaults to {@code "allow"} that leaves animations untouched.
*/
- public ScreenshotOptions setAnimations(ScreenshotAnimations animations) {
+ public ScreenshotOptions setAnimations(@Nullable ScreenshotAnimations animations) {
this.animations = animations;
return this;
}
@@ -2744,7 +2744,7 @@ public ScreenshotOptions setAnimations(ScreenshotAnimations animations) {
* When set to {@code "hide"}, screenshot will hide text caret. When set to {@code "initial"}, text caret behavior will not
* be changed. Defaults to {@code "hide"}.
*/
- public ScreenshotOptions setCaret(ScreenshotCaret caret) {
+ public ScreenshotOptions setCaret(@Nullable ScreenshotCaret caret) {
this.caret = caret;
return this;
}
@@ -2757,7 +2757,7 @@ public ScreenshotOptions setClip(double x, double y, double width, double height
/**
* An object which specifies clipping of the resulting image.
*/
- public ScreenshotOptions setClip(Clip clip) {
+ public ScreenshotOptions setClip(@Nullable Clip clip) {
this.clip = clip;
return this;
}
@@ -2765,7 +2765,7 @@ public ScreenshotOptions setClip(Clip clip) {
* When true, takes a screenshot of the full scrollable page, instead of the currently visible viewport. Defaults to {@code
* false}.
*/
- public ScreenshotOptions setFullPage(boolean fullPage) {
+ public ScreenshotOptions setFullPage(@Nullable Boolean fullPage) {
this.fullPage = fullPage;
return this;
}
@@ -2775,7 +2775,7 @@ public ScreenshotOptions setFullPage(boolean fullPage) {
* invisible elements, see Matching only
* visible elements to disable that.
*/
- public ScreenshotOptions setMask(List mask) {
+ public ScreenshotOptions setMask(@Nullable List mask) {
this.mask = mask;
return this;
}
@@ -2784,7 +2784,7 @@ public ScreenshotOptions setMask(List mask) {
* href="https://developer.mozilla.org/en-US/docs/Web/CSS/color_value">CSS color format. Default color is pink {@code
* #FF00FF}.
*/
- public ScreenshotOptions setMaskColor(String maskColor) {
+ public ScreenshotOptions setMaskColor(@Nullable String maskColor) {
this.maskColor = maskColor;
return this;
}
@@ -2792,7 +2792,7 @@ public ScreenshotOptions setMaskColor(String maskColor) {
* Hides default white background and allows capturing screenshots with transparency. Not applicable to {@code jpeg}
* images. Defaults to {@code false}.
*/
- public ScreenshotOptions setOmitBackground(boolean omitBackground) {
+ public ScreenshotOptions setOmitBackground(@Nullable Boolean omitBackground) {
this.omitBackground = omitBackground;
return this;
}
@@ -2801,7 +2801,7 @@ public ScreenshotOptions setOmitBackground(boolean omitBackground) {
* relative path, then it is resolved relative to the current working directory. If no path is provided, the image won't be
* saved to the disk.
*/
- public ScreenshotOptions setPath(Path path) {
+ public ScreenshotOptions setPath(@Nullable Path path) {
this.path = path;
return this;
}
@@ -2810,7 +2810,7 @@ public ScreenshotOptions setPath(Path path) {
* 80}. For {@code webp}, a quality of {@code 100} (the default) produces a lossless image, while lower values use lossy
* compression.
*/
- public ScreenshotOptions setQuality(int quality) {
+ public ScreenshotOptions setQuality(@Nullable Integer quality) {
this.quality = quality;
return this;
}
@@ -2821,7 +2821,7 @@ public ScreenshotOptions setQuality(int quality) {
*
*
Defaults to {@code "device"}.
*/
- public ScreenshotOptions setScale(ScreenshotScale scale) {
+ public ScreenshotOptions setScale(@Nullable ScreenshotScale scale) {
this.scale = scale;
return this;
}
@@ -2830,7 +2830,7 @@ public ScreenshotOptions setScale(ScreenshotScale scale) {
* invisible or change their properties to help you creating repeatable screenshots. This stylesheet pierces the Shadow DOM
* and applies to the inner frames.
*/
- public ScreenshotOptions setStyle(String style) {
+ public ScreenshotOptions setStyle(@Nullable String style) {
this.style = style;
return this;
}
@@ -2840,14 +2840,14 @@ public ScreenshotOptions setStyle(String style) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public ScreenshotOptions setTimeout(double timeout) {
+ public ScreenshotOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
/**
* Specify screenshot type, defaults to {@code png}.
*/
- public ScreenshotOptions setType(ScreenshotType type) {
+ public ScreenshotOptions setType(@Nullable ScreenshotType type) {
this.type = type;
return this;
}
@@ -2879,14 +2879,14 @@ class SelectOptionOptions {
* Whether to bypass the actionability checks. Defaults to
* {@code false}.
*/
- public SelectOptionOptions setForce(boolean force) {
+ public SelectOptionOptions setForce(@Nullable Boolean force) {
this.force = force;
return this;
}
/**
* @deprecated This option has no effect.
*/
- public SelectOptionOptions setNoWaitAfter(boolean noWaitAfter) {
+ public SelectOptionOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -2894,7 +2894,7 @@ public SelectOptionOptions setNoWaitAfter(boolean noWaitAfter) {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public SelectOptionOptions setStrict(boolean strict) {
+ public SelectOptionOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -2904,7 +2904,7 @@ public SelectOptionOptions setStrict(boolean strict) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public SelectOptionOptions setTimeout(double timeout) {
+ public SelectOptionOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -2954,14 +2954,14 @@ class SetCheckedOptions {
* Whether to bypass the actionability checks. Defaults to
* {@code false}.
*/
- public SetCheckedOptions setForce(boolean force) {
+ public SetCheckedOptions setForce(@Nullable Boolean force) {
this.force = force;
return this;
}
/**
* @deprecated This option has no effect.
*/
- public SetCheckedOptions setNoWaitAfter(boolean noWaitAfter) {
+ public SetCheckedOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -2976,7 +2976,7 @@ public SetCheckedOptions setPosition(double x, double y) {
* A point to use relative to the top-left corner of element padding box. If not specified, uses some visible point of the
* element.
*/
- public SetCheckedOptions setPosition(Position position) {
+ public SetCheckedOptions setPosition(@Nullable Position position) {
this.position = position;
return this;
}
@@ -2986,7 +2986,7 @@ public SetCheckedOptions setPosition(Position position) {
* "none"}, Playwright does not scroll the element and the action fails if the element is not already in the viewport. This
* is useful to assert that an element is reachable by the user without additional scrolling.
*/
- public SetCheckedOptions setScroll(ScrollMode scroll) {
+ public SetCheckedOptions setScroll(@Nullable ScrollMode scroll) {
this.scroll = scroll;
return this;
}
@@ -2994,7 +2994,7 @@ public SetCheckedOptions setScroll(ScrollMode scroll) {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public SetCheckedOptions setStrict(boolean strict) {
+ public SetCheckedOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -3004,7 +3004,7 @@ public SetCheckedOptions setStrict(boolean strict) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public SetCheckedOptions setTimeout(double timeout) {
+ public SetCheckedOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -3013,7 +3013,7 @@ public SetCheckedOptions setTimeout(double timeout) {
* checks and skips the action. Defaults to {@code false}. Useful to wait until the element is ready for the action without
* performing it.
*/
- public SetCheckedOptions setTrial(boolean trial) {
+ public SetCheckedOptions setTrial(@Nullable Boolean trial) {
this.trial = trial;
return this;
}
@@ -3048,7 +3048,7 @@ class SetContentOptions {
* Page.setDefaultNavigationTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public SetContentOptions setTimeout(double timeout) {
+ public SetContentOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -3062,7 +3062,7 @@ public SetContentOptions setTimeout(double timeout) {
*
{@code "commit"} - consider operation to be finished when network response is received and the document started loading.
*
*/
- public SetContentOptions setWaitUntil(WaitUntilState waitUntil) {
+ public SetContentOptions setWaitUntil(@Nullable WaitUntilState waitUntil) {
this.waitUntil = waitUntil;
return this;
}
@@ -3088,7 +3088,7 @@ class SetInputFilesOptions {
/**
* @deprecated This option has no effect.
*/
- public SetInputFilesOptions setNoWaitAfter(boolean noWaitAfter) {
+ public SetInputFilesOptions setNoWaitAfter(@Nullable Boolean noWaitAfter) {
this.noWaitAfter = noWaitAfter;
return this;
}
@@ -3096,7 +3096,7 @@ public SetInputFilesOptions setNoWaitAfter(boolean noWaitAfter) {
* When true, the call requires selector to resolve to a single element. If given selector resolves to more than one
* element, the call throws an exception.
*/
- public SetInputFilesOptions setStrict(boolean strict) {
+ public SetInputFilesOptions setStrict(@Nullable Boolean strict) {
this.strict = strict;
return this;
}
@@ -3106,7 +3106,7 @@ public SetInputFilesOptions setStrict(boolean strict) {
* BrowserContext.setDefaultTimeout()} or {@link com.microsoft.playwright.Page#setDefaultTimeout Page.setDefaultTimeout()}
* methods.
*/
- public SetInputFilesOptions setTimeout(double timeout) {
+ public SetInputFilesOptions setTimeout(@Nullable Double timeout) {
this.timeout = timeout;
return this;
}
@@ -3142,14 +3142,14 @@ class AriaSnapshotOptions {
* href="https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect">{@code
* Element.getBoundingClientRect()}. Defaults to {@code false}.
*/
- public AriaSnapshotOptions setBoxes(boolean boxes) {
+ public AriaSnapshotOptions setBoxes(@Nullable Boolean boxes) {
this.boxes = boxes;
return this;
}
/**
* When specified, limits the depth of the snapshot.
*/
- public AriaSnapshotOptions setDepth(int depth) {
+ public AriaSnapshotOptions setDepth(@Nullable Integer depth) {
this.depth = depth;
return this;
}
@@ -3157,7 +3157,7 @@ public AriaSnapshotOptions setDepth(int depth) {
* When set to {@code "ai"}, returns a snapshot optimized for AI consumption: including element references like {@code
* [ref=e2]} and snapshots of {@code