public class CdpFrame extends Frame
accessibility, document, hasStartedLoading, id, name, parentIdLOGGER| 构造器和说明 |
|---|
CdpFrame(FrameManager frameManager,
String frameId,
String parentFrameId,
CDPSession client) |
$, $$, $$eval, $eval, addScriptTag, addStyleTag, clearDocumentHandle, click, content, disposed, document, evaluate, evaluate, evaluate, evaluateHandle, fastTransposeIteratorHandle, focus, hover, id, name, parentId, select, setFrameContent, tap, title, transposeIterableHandle, transposeIteratorHandle, type, waitForFunction, waitForSelectordisposeSymbol, emit, listenerCount, off, on, once, removeAllListeners, removeListenerpublic CdpFrame(FrameManager frameManager, String frameId, String parentFrameId, CDPSession client)
public Map<String,IsolatedWorld> worlds()
public CDPSession client()
Framepublic void updateId(String id)
public void updateClient(CDPSession client)
public CdpResponse goTo(String url, GoToOptions options)
Framepublic CdpResponse waitForNavigation(WaitForOptions options, Runnable navigateRunner)
FramewaitForNavigation 在类中 Frameoptions - 可选的等待导航选项navigateRunner - 一个需要的执行的步骤public IsolatedWorld mainRealm()
public IsolatedWorld isolatedRealm()
isolatedRealm 在类中 Framepublic void setContent(String html, WaitForOptions options) throws com.fasterxml.jackson.core.JsonProcessingException, EvaluateException
FramesetContent 在类中 Framehtml - 要分配给页面的 HTML 标记。options - (可选的)用于配置超时前多长时间以及何时认为内容设置成功的选项。com.fasterxml.jackson.core.JsonProcessingException - 序列化异常EvaluateException - JS 函数执行异常public Frame parentFrame()
FrameparentFrame 在类中 Framepublic List<CdpFrame> childFrames()
FramechildFrames 在类中 Framepublic DeviceRequestPromptManager deviceRequestPromptManager()
public void addPreloadScript(PreloadScript preloadScript)
public void addExposedFunctionBinding(Binding binding) throws com.fasterxml.jackson.core.JsonProcessingException, EvaluateException
com.fasterxml.jackson.core.JsonProcessingExceptionEvaluateExceptionpublic void removeExposedFunctionBinding(Binding binding) throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionpublic DeviceRequestPrompt waitForDevicePrompt(int timeout)
FramewaitForDevicePrompt 在类中 Frametimeout - 超时时间public void navigated(FramePayload framePayload)
public void navigatedWithinDocument(String url)
public void onLoadingStopped()
public void onLoadingStarted()
public boolean detached()
Framepublic void dispose()
public ElementHandle frameElement() throws com.fasterxml.jackson.core.JsonProcessingException, EvaluateException
FrameframeElement 在类中 Framecom.fasterxml.jackson.core.JsonProcessingException - 序列化异常EvaluateException - JS 函数执行异常public String loaderId()
public FrameManager frameManager()
public Accessibility accessibility()
accessibility 在类中 Framepublic void setId(String frameId)
public static String referrerPolicyToProtocol(String referrerPolicy)
referrerPolicy - The web-facing referrer policy (e.g., "no-referrer-when-downgrade").Copyright © 2020–2025. All rights reserved.