Package com.microsoft.playwright
Class BrowserType.ConnectOverCDPOptions
- java.lang.Object
-
- com.microsoft.playwright.BrowserType.ConnectOverCDPOptions
-
- Enclosing interface:
- BrowserType
public static class BrowserType.ConnectOverCDPOptions extends Object
-
-
Field Summary
Fields Modifier and Type Field Description Map<String,String>headersAdditional HTTP headers to be sent with connect request.DoubleslowMoSlows down Playwright operations by the specified amount of milliseconds.DoubletimeoutMaximum time in milliseconds to wait for the connection to be established.
-
Constructor Summary
Constructors Constructor Description ConnectOverCDPOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BrowserType.ConnectOverCDPOptionssetHeaders(Map<String,String> headers)Additional HTTP headers to be sent with connect request.BrowserType.ConnectOverCDPOptionssetSlowMo(double slowMo)Slows down Playwright operations by the specified amount of milliseconds.BrowserType.ConnectOverCDPOptionssetTimeout(double timeout)Maximum time in milliseconds to wait for the connection to be established.
-
-
-
Field Detail
-
headers
public Map<String,String> headers
Additional HTTP headers to be sent with connect request. Optional.
-
slowMo
public Double slowMo
Slows down Playwright operations by the specified amount of milliseconds. Useful so that you can see what is going on. Defaults to 0.
-
timeout
public Double timeout
Maximum time in milliseconds to wait for the connection to be established. Defaults to30000(30 seconds). Pass0to disable timeout.
-
-
Method Detail
-
setHeaders
public BrowserType.ConnectOverCDPOptions setHeaders(Map<String,String> headers)
Additional HTTP headers to be sent with connect request. Optional.
-
setSlowMo
public BrowserType.ConnectOverCDPOptions setSlowMo(double slowMo)
Slows down Playwright operations by the specified amount of milliseconds. Useful so that you can see what is going on. Defaults to 0.
-
setTimeout
public BrowserType.ConnectOverCDPOptions setTimeout(double timeout)
Maximum time in milliseconds to wait for the connection to be established. Defaults to30000(30 seconds). Pass0to disable timeout.
-
-