pub struct Frame { /* private fields */ }Expand description
同源 iframe 的封装,可在该 frame 内直接查找元素(把 iframe 看作普通元素,逻辑更清晰)。
Implementations§
Source§impl Frame
impl Frame
Sourcepub fn ele(&self, locator: &str) -> Result<Option<Element>, CdpError>
pub fn ele(&self, locator: &str) -> Result<Option<Element>, CdpError>
在本 frame 内按定位器查单个元素(与 DrissionPage 在 ChromiumFrame 上 ele() 一致)
Sourcepub fn eles(&self, locator: &str) -> Result<Vec<Element>, CdpError>
pub fn eles(&self, locator: &str) -> Result<Vec<Element>, CdpError>
在本 frame 内按定位器查多个元素(与 DrissionPage 在 ChromiumFrame 上 eles() 一致)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Frame
impl !RefUnwindSafe for Frame
impl Send for Frame
impl !Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe 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
Mutably borrows from an owned value. Read more