| Package | Description |
|---|---|
| com.microsoft.playwright |
| Modifier and Type | Method and Description |
|---|---|
default ElementHandle |
Page.addScriptTag()
Adds a
<script> tag into the page with the desired url or content. |
default ElementHandle |
Frame.addScriptTag()
Returns the added tag when the script's onload fires or when the script content was injected into frame.
|
ElementHandle |
Frame.addScriptTag(Frame.AddScriptTagOptions options)
Returns the added tag when the script's onload fires or when the script content was injected into frame.
|
ElementHandle |
Page.addScriptTag(Page.AddScriptTagOptions options)
Adds a
<script> tag into the page with the desired url or content. |
default ElementHandle |
Page.addStyleTag()
Adds a
<link rel="stylesheet"> tag into the page with the desired url or a <style type="text/css"> tag with the
content. |
default ElementHandle |
Frame.addStyleTag()
Returns the added tag when the stylesheet's onload fires or when the CSS content was injected into frame.
|
ElementHandle |
Frame.addStyleTag(Frame.AddStyleTagOptions options)
Returns the added tag when the stylesheet's onload fires or when the CSS content was injected into frame.
|
ElementHandle |
Page.addStyleTag(Page.AddStyleTagOptions options)
Adds a
<link rel="stylesheet"> tag into the page with the desired url or a <style type="text/css"> tag with the
content. |
ElementHandle |
JSHandle.asElement()
Returns either
null or the object handle itself, if the object handle is an instance of ElementHandle. |
ElementHandle |
FileChooser.element()
Returns input element associated with this file chooser.
|
ElementHandle |
Frame.frameElement()
Returns the
frame or iframe element handle which corresponds to this frame. |
ElementHandle |
Page.querySelector(String selector)
The method finds an element matching the specified selector within the page.
|
ElementHandle |
Frame.querySelector(String selector)
Returns the ElementHandle pointing to the frame element.
|
ElementHandle |
ElementHandle.querySelector(String selector)
The method finds an element matching the specified selector in the
ElementHandle's subtree. |
default ElementHandle |
Page.waitForSelector(String selector)
Returns when element specified by selector satisfies
state option. |
default ElementHandle |
Frame.waitForSelector(String selector)
Returns when element specified by selector satisfies
state option. |
default ElementHandle |
ElementHandle.waitForSelector(String selector)
Returns element specified by selector when it satisfies
state option. |
ElementHandle |
ElementHandle.waitForSelector(String selector,
ElementHandle.WaitForSelectorOptions options)
Returns element specified by selector when it satisfies
state option. |
ElementHandle |
Frame.waitForSelector(String selector,
Frame.WaitForSelectorOptions options)
Returns when element specified by selector satisfies
state option. |
ElementHandle |
Page.waitForSelector(String selector,
Page.WaitForSelectorOptions options)
Returns when element specified by selector satisfies
state option. |
| Modifier and Type | Method and Description |
|---|---|
List<ElementHandle> |
Page.querySelectorAll(String selector)
The method finds all elements matching the specified selector within the page.
|
List<ElementHandle> |
Frame.querySelectorAll(String selector)
Returns the ElementHandles pointing to the frame elements.
|
List<ElementHandle> |
ElementHandle.querySelectorAll(String selector)
The method finds all elements matching the specified selector in the
ElementHandles subtree. |
| Modifier and Type | Method and Description |
|---|---|
default List<String> |
ElementHandle.selectOption(ElementHandle values)
This method waits for actionability checks, waits until
all specified options are present in the
<select> element and selects these options. |
default List<String> |
ElementHandle.selectOption(ElementHandle[] values)
This method waits for actionability checks, waits until
all specified options are present in the
<select> element and selects these options. |
List<String> |
ElementHandle.selectOption(ElementHandle[] values,
ElementHandle.SelectOptionOptions options)
This method waits for actionability checks, waits until
all specified options are present in the
<select> element and selects these options. |
List<String> |
ElementHandle.selectOption(ElementHandle values,
ElementHandle.SelectOptionOptions options)
This method waits for actionability checks, waits until
all specified options are present in the
<select> element and selects these options. |
default List<String> |
Page.selectOption(String selector,
ElementHandle values)
This method waits for an element matching
selector, waits for actionability checks, waits until all specified options are
present in the <select> element and selects these options. |
default List<String> |
Frame.selectOption(String selector,
ElementHandle values)
This method waits for an element matching
selector, waits for actionability checks, waits until all specified options are
present in the <select> element and selects these options. |
default List<String> |
Page.selectOption(String selector,
ElementHandle[] values)
This method waits for an element matching
selector, waits for actionability checks, waits until all specified options are
present in the <select> element and selects these options. |
default List<String> |
Frame.selectOption(String selector,
ElementHandle[] values)
This method waits for an element matching
selector, waits for actionability checks, waits until all specified options are
present in the <select> element and selects these options. |
List<String> |
Frame.selectOption(String selector,
ElementHandle[] values,
Frame.SelectOptionOptions options)
This method waits for an element matching
selector, waits for actionability checks, waits until all specified options are
present in the <select> element and selects these options. |
List<String> |
Page.selectOption(String selector,
ElementHandle[] values,
Page.SelectOptionOptions options)
This method waits for an element matching
selector, waits for actionability checks, waits until all specified options are
present in the <select> element and selects these options. |
List<String> |
Frame.selectOption(String selector,
ElementHandle values,
Frame.SelectOptionOptions options)
This method waits for an element matching
selector, waits for actionability checks, waits until all specified options are
present in the <select> element and selects these options. |
List<String> |
Page.selectOption(String selector,
ElementHandle values,
Page.SelectOptionOptions options)
This method waits for an element matching
selector, waits for actionability checks, waits until all specified options are
present in the <select> element and selects these options. |
Copyright © 2021. All rights reserved.