public class DOMWorld extends Object
| 构造器和说明 |
|---|
DOMWorld() |
DOMWorld(FrameManager frameManager,
Frame frame,
TimeoutSettings timeoutSettings) |
public DOMWorld()
public DOMWorld(FrameManager frameManager, Frame frame, TimeoutSettings timeoutSettings)
public Frame frame()
public String content()
public void setContext(ExecutionContext context)
public boolean hasContext()
public ExecutionContext executionContext()
public JSHandle evaluateHandle(String pageFunction, PageEvaluateType type, Object... args)
public Object evaluate(String pageFunction, PageEvaluateType type, Object... args)
public ElementHandle $(String selector)
public List<ElementHandle> $x(String expression)
public Object $eval(String selector, String pageFunction, PageEvaluateType type, Object... args)
public Object $$eval(String selector, String pageFunction, PageEvaluateType type, Object... args)
public List<ElementHandle> $$(String selector)
public void setContent(String html, PageNavigateOptions options)
public ElementHandle addScriptTag(ScriptTagOptions options) throws IOException
IOExceptionpublic ElementHandle addStyleTag(StyleTagOptions options) throws IOException
IOExceptionpublic void click(String selector, ClickOptions options, boolean isBlock) throws InterruptedException, ExecutionException
public void focus(String selector)
public void hover(String selector) throws ExecutionException, InterruptedException
public void tap(String selector, boolean isBlock)
public void type(String selector, String text, int delay) throws InterruptedException
public ElementHandle waitForSelector(String selector, WaitForSelectorOptions options) throws InterruptedException
public ElementHandle waitForXPath(String xpath, WaitForSelectorOptions options) throws InterruptedException
public String title()
public JSHandle waitForFunction(String pageFunction, PageEvaluateType type, WaitForSelectorOptions options, Object... args) throws InterruptedException
public void detach()
Copyright © 2020. All rights reserved.