pub struct Frame { /* private fields */ }Expand description
Channel for the Frame interface (frame.yml).
Implementations§
Source§impl Frame
impl Frame
Sourcepub async fn eval_on_selector(
&self,
params: FrameEvalOnSelectorParams,
) -> Result<FrameEvalOnSelectorResult, ProtocolError>
pub async fn eval_on_selector( &self, params: FrameEvalOnSelectorParams, ) -> Result<FrameEvalOnSelectorResult, ProtocolError>
Frame.evalOnSelector (“Evaluate”).
Sourcepub async fn eval_on_selector_all(
&self,
params: FrameEvalOnSelectorAllParams,
) -> Result<FrameEvalOnSelectorAllResult, ProtocolError>
pub async fn eval_on_selector_all( &self, params: FrameEvalOnSelectorAllParams, ) -> Result<FrameEvalOnSelectorAllResult, ProtocolError>
Frame.evalOnSelectorAll (“Evaluate”).
Sourcepub async fn add_script_tag(
&self,
params: FrameAddScriptTagParams,
) -> Result<FrameAddScriptTagResult, ProtocolError>
pub async fn add_script_tag( &self, params: FrameAddScriptTagParams, ) -> Result<FrameAddScriptTagResult, ProtocolError>
Frame.addScriptTag (“Add script tag”).
Sourcepub async fn add_style_tag(
&self,
params: FrameAddStyleTagParams,
) -> Result<FrameAddStyleTagResult, ProtocolError>
pub async fn add_style_tag( &self, params: FrameAddStyleTagParams, ) -> Result<FrameAddStyleTagResult, ProtocolError>
Frame.addStyleTag (“Add style tag”).
Sourcepub async fn aria_snapshot(
&self,
params: FrameAriaSnapshotParams,
) -> Result<FrameAriaSnapshotResult, ProtocolError>
pub async fn aria_snapshot( &self, params: FrameAriaSnapshotParams, ) -> Result<FrameAriaSnapshotResult, ProtocolError>
Frame.ariaSnapshot (“Aria snapshot”).
Sourcepub async fn aria_snapshot_json(
&self,
params: FrameAriaSnapshotJSONParams,
) -> Result<FrameAriaSnapshotJSONResult, ProtocolError>
pub async fn aria_snapshot_json( &self, params: FrameAriaSnapshotJSONParams, ) -> Result<FrameAriaSnapshotJSONResult, ProtocolError>
Frame.ariaSnapshotJSON (“Aria snapshot JSON”).
Sourcepub async fn blur(&self, params: FrameBlurParams) -> Result<(), ProtocolError>
pub async fn blur(&self, params: FrameBlurParams) -> Result<(), ProtocolError>
Frame.blur (“Blur”).
Sourcepub async fn check(&self, params: FrameCheckParams) -> Result<(), ProtocolError>
pub async fn check(&self, params: FrameCheckParams) -> Result<(), ProtocolError>
Frame.check (“Check”).
Sourcepub async fn click(&self, params: FrameClickParams) -> Result<(), ProtocolError>
pub async fn click(&self, params: FrameClickParams) -> Result<(), ProtocolError>
Frame.click (“Click”).
Sourcepub async fn content(&self) -> Result<FrameContentResult, ProtocolError>
pub async fn content(&self) -> Result<FrameContentResult, ProtocolError>
Frame.content (“Get content”).
Sourcepub async fn drag_and_drop(
&self,
params: FrameDragAndDropParams,
) -> Result<(), ProtocolError>
pub async fn drag_and_drop( &self, params: FrameDragAndDropParams, ) -> Result<(), ProtocolError>
Frame.dragAndDrop (“Drag and drop”).
Sourcepub async fn drop(&self, params: FrameDropParams) -> Result<(), ProtocolError>
pub async fn drop(&self, params: FrameDropParams) -> Result<(), ProtocolError>
Frame.drop (“Drop files or data onto an element”).
Sourcepub async fn dblclick(
&self,
params: FrameDblclickParams,
) -> Result<(), ProtocolError>
pub async fn dblclick( &self, params: FrameDblclickParams, ) -> Result<(), ProtocolError>
Frame.dblclick (“Double click”).
Sourcepub async fn dispatch_event(
&self,
params: FrameDispatchEventParams,
) -> Result<(), ProtocolError>
pub async fn dispatch_event( &self, params: FrameDispatchEventParams, ) -> Result<(), ProtocolError>
Frame.dispatchEvent (“Dispatch “{type}”“).
Sourcepub async fn evaluate_expression(
&self,
params: FrameEvaluateExpressionParams,
) -> Result<FrameEvaluateExpressionResult, ProtocolError>
pub async fn evaluate_expression( &self, params: FrameEvaluateExpressionParams, ) -> Result<FrameEvaluateExpressionResult, ProtocolError>
Frame.evaluateExpression (“Evaluate”).
Sourcepub async fn evaluate_expression_handle(
&self,
params: FrameEvaluateExpressionHandleParams,
) -> Result<FrameEvaluateExpressionHandleResult, ProtocolError>
pub async fn evaluate_expression_handle( &self, params: FrameEvaluateExpressionHandleParams, ) -> Result<FrameEvaluateExpressionHandleResult, ProtocolError>
Frame.evaluateExpressionHandle (“Evaluate”).
Sourcepub async fn fill(&self, params: FrameFillParams) -> Result<(), ProtocolError>
pub async fn fill(&self, params: FrameFillParams) -> Result<(), ProtocolError>
Frame.fill (“Fill “{value}”“).
Sourcepub async fn focus(&self, params: FrameFocusParams) -> Result<(), ProtocolError>
pub async fn focus(&self, params: FrameFocusParams) -> Result<(), ProtocolError>
Frame.focus (“Focus”).
Sourcepub async fn frame_element(
&self,
) -> Result<FrameFrameElementResult, ProtocolError>
pub async fn frame_element( &self, ) -> Result<FrameFrameElementResult, ProtocolError>
Frame.frameElement (“Get frame element”).
Sourcepub async fn resolve_selector(
&self,
params: FrameResolveSelectorParams,
) -> Result<FrameResolveSelectorResult, ProtocolError>
pub async fn resolve_selector( &self, params: FrameResolveSelectorParams, ) -> Result<FrameResolveSelectorResult, ProtocolError>
Frame.resolveSelector (internal).
Sourcepub async fn highlight(
&self,
params: FrameHighlightParams,
) -> Result<(), ProtocolError>
pub async fn highlight( &self, params: FrameHighlightParams, ) -> Result<(), ProtocolError>
Frame.highlight (internal).
Sourcepub async fn hide_highlight(
&self,
params: FrameHideHighlightParams,
) -> Result<(), ProtocolError>
pub async fn hide_highlight( &self, params: FrameHideHighlightParams, ) -> Result<(), ProtocolError>
Frame.hideHighlight (internal).
Sourcepub async fn get_attribute(
&self,
params: FrameGetAttributeParams,
) -> Result<FrameGetAttributeResult, ProtocolError>
pub async fn get_attribute( &self, params: FrameGetAttributeParams, ) -> Result<FrameGetAttributeResult, ProtocolError>
Frame.getAttribute (“Get attribute “{name}”“).
Sourcepub async fn goto(
&self,
params: FrameGotoParams,
) -> Result<FrameGotoResult, ProtocolError>
pub async fn goto( &self, params: FrameGotoParams, ) -> Result<FrameGotoResult, ProtocolError>
Frame.goto (“Navigate”).
Sourcepub async fn hover(&self, params: FrameHoverParams) -> Result<(), ProtocolError>
pub async fn hover(&self, params: FrameHoverParams) -> Result<(), ProtocolError>
Frame.hover (“Hover”).
Sourcepub async fn inner_html(
&self,
params: FrameInnerHTMLParams,
) -> Result<FrameInnerHTMLResult, ProtocolError>
pub async fn inner_html( &self, params: FrameInnerHTMLParams, ) -> Result<FrameInnerHTMLResult, ProtocolError>
Frame.innerHTML (“Get HTML”).
Sourcepub async fn inner_text(
&self,
params: FrameInnerTextParams,
) -> Result<FrameInnerTextResult, ProtocolError>
pub async fn inner_text( &self, params: FrameInnerTextParams, ) -> Result<FrameInnerTextResult, ProtocolError>
Frame.innerText (“Get inner text”).
Sourcepub async fn input_value(
&self,
params: FrameInputValueParams,
) -> Result<FrameInputValueResult, ProtocolError>
pub async fn input_value( &self, params: FrameInputValueParams, ) -> Result<FrameInputValueResult, ProtocolError>
Frame.inputValue (“Get input value”).
Sourcepub async fn is_checked(
&self,
params: FrameIsCheckedParams,
) -> Result<FrameIsCheckedResult, ProtocolError>
pub async fn is_checked( &self, params: FrameIsCheckedParams, ) -> Result<FrameIsCheckedResult, ProtocolError>
Frame.isChecked (“Is checked”).
Sourcepub async fn is_disabled(
&self,
params: FrameIsDisabledParams,
) -> Result<FrameIsDisabledResult, ProtocolError>
pub async fn is_disabled( &self, params: FrameIsDisabledParams, ) -> Result<FrameIsDisabledResult, ProtocolError>
Frame.isDisabled (“Is disabled”).
Sourcepub async fn is_enabled(
&self,
params: FrameIsEnabledParams,
) -> Result<FrameIsEnabledResult, ProtocolError>
pub async fn is_enabled( &self, params: FrameIsEnabledParams, ) -> Result<FrameIsEnabledResult, ProtocolError>
Frame.isEnabled (“Is enabled”).
Frame.isHidden (“Is hidden”).
Sourcepub async fn is_visible(
&self,
params: FrameIsVisibleParams,
) -> Result<FrameIsVisibleResult, ProtocolError>
pub async fn is_visible( &self, params: FrameIsVisibleParams, ) -> Result<FrameIsVisibleResult, ProtocolError>
Frame.isVisible (“Is visible”).
Sourcepub async fn is_editable(
&self,
params: FrameIsEditableParams,
) -> Result<FrameIsEditableResult, ProtocolError>
pub async fn is_editable( &self, params: FrameIsEditableParams, ) -> Result<FrameIsEditableResult, ProtocolError>
Frame.isEditable (“Is editable”).
Sourcepub async fn press(&self, params: FramePressParams) -> Result<(), ProtocolError>
pub async fn press(&self, params: FramePressParams) -> Result<(), ProtocolError>
Frame.press (“Press “{key}”“).
Sourcepub async fn query_selector(
&self,
params: FrameQuerySelectorParams,
) -> Result<FrameQuerySelectorResult, ProtocolError>
pub async fn query_selector( &self, params: FrameQuerySelectorParams, ) -> Result<FrameQuerySelectorResult, ProtocolError>
Frame.querySelector (“Query selector”).
Sourcepub async fn query_selector_all(
&self,
params: FrameQuerySelectorAllParams,
) -> Result<FrameQuerySelectorAllResult, ProtocolError>
pub async fn query_selector_all( &self, params: FrameQuerySelectorAllParams, ) -> Result<FrameQuerySelectorAllResult, ProtocolError>
Frame.querySelectorAll (“Query selector all”).
Sourcepub async fn query_count(
&self,
params: FrameQueryCountParams,
) -> Result<FrameQueryCountResult, ProtocolError>
pub async fn query_count( &self, params: FrameQueryCountParams, ) -> Result<FrameQueryCountResult, ProtocolError>
Frame.queryCount (“Query count”).
Sourcepub async fn select_option(
&self,
params: FrameSelectOptionParams,
) -> Result<FrameSelectOptionResult, ProtocolError>
pub async fn select_option( &self, params: FrameSelectOptionParams, ) -> Result<FrameSelectOptionResult, ProtocolError>
Frame.selectOption (“Select option”).
Sourcepub async fn set_content(
&self,
params: FrameSetContentParams,
) -> Result<(), ProtocolError>
pub async fn set_content( &self, params: FrameSetContentParams, ) -> Result<(), ProtocolError>
Frame.setContent (“Set content”).
Sourcepub async fn set_input_files(
&self,
params: FrameSetInputFilesParams,
) -> Result<(), ProtocolError>
pub async fn set_input_files( &self, params: FrameSetInputFilesParams, ) -> Result<(), ProtocolError>
Frame.setInputFiles (“Set input files”).
Sourcepub async fn tap(&self, params: FrameTapParams) -> Result<(), ProtocolError>
pub async fn tap(&self, params: FrameTapParams) -> Result<(), ProtocolError>
Frame.tap (“Tap”).
Sourcepub async fn text_content(
&self,
params: FrameTextContentParams,
) -> Result<FrameTextContentResult, ProtocolError>
pub async fn text_content( &self, params: FrameTextContentParams, ) -> Result<FrameTextContentResult, ProtocolError>
Frame.textContent (“Get text content”).
Sourcepub async fn title(&self) -> Result<FrameTitleResult, ProtocolError>
pub async fn title(&self) -> Result<FrameTitleResult, ProtocolError>
Frame.title (“Get page title”).
Sourcepub async fn type(&self, params: FrameTypeParams) -> Result<(), ProtocolError>
pub async fn type(&self, params: FrameTypeParams) -> Result<(), ProtocolError>
Frame.type (“Type “{text}”“).
Sourcepub async fn uncheck(
&self,
params: FrameUncheckParams,
) -> Result<(), ProtocolError>
pub async fn uncheck( &self, params: FrameUncheckParams, ) -> Result<(), ProtocolError>
Frame.uncheck (“Uncheck”).
Sourcepub async fn wait_for_timeout(
&self,
params: FrameWaitForTimeoutParams,
) -> Result<(), ProtocolError>
pub async fn wait_for_timeout( &self, params: FrameWaitForTimeoutParams, ) -> Result<(), ProtocolError>
Frame.waitForTimeout (“Wait for timeout”).
Sourcepub async fn wait_for_function(
&self,
params: FrameWaitForFunctionParams,
) -> Result<FrameWaitForFunctionResult, ProtocolError>
pub async fn wait_for_function( &self, params: FrameWaitForFunctionParams, ) -> Result<FrameWaitForFunctionResult, ProtocolError>
Frame.waitForFunction (“Wait for function”).
Sourcepub async fn wait_for_selector(
&self,
params: FrameWaitForSelectorParams,
) -> Result<FrameWaitForSelectorResult, ProtocolError>
pub async fn wait_for_selector( &self, params: FrameWaitForSelectorParams, ) -> Result<FrameWaitForSelectorResult, ProtocolError>
Frame.waitForSelector (“Wait for selector”).
Sourcepub async fn expect(
&self,
params: FrameExpectParams,
) -> Result<(), ProtocolError>
pub async fn expect( &self, params: FrameExpectParams, ) -> Result<(), ProtocolError>
Frame.expect (“Expect “{expression}”“).
Trait Implementations§
Source§impl ChannelType for Frame
impl ChannelType for Frame
Source§type Initializer = FrameInitializer
type Initializer = FrameInitializer
__create__.Source§type Event = FrameEvent
type Event = FrameEvent
Source§fn accepts(interface: &str) -> bool
fn accepts(interface: &str) -> bool
interface can be used as this type (an
ElementHandle is also a JSHandle).Source§fn from_channel(channel: Channel) -> Self
fn from_channel(channel: Channel) -> Self
Source§fn initializer(&self) -> Result<Self::Initializer, ProtocolError>
fn initializer(&self) -> Result<Self::Initializer, ProtocolError>
Source§fn events(&self) -> EventStream<Self::Event>
fn events(&self) -> EventStream<Self::Event>
Auto Trait Implementations§
impl !RefUnwindSafe for Frame
impl !UnwindSafe for Frame
impl Freeze for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more