pub struct Alert { /* private fields */ }
Expand description
Struct for managing alerts.
Implementations§
Source§impl Alert
impl Alert
Sourcepub fn new(handle: SessionHandle) -> Self
pub fn new(handle: SessionHandle) -> Self
Create a new Alert struct. This is typically created internally
via a call to WebDriver::switch_to().alert()
.
pub async fn text(&self) -> WebDriverResult<String>
👎Deprecated since 0.30.0: This method has been moved to WebDriver::get_alert_text()
pub async fn dismiss(&self) -> WebDriverResult<()>
👎Deprecated since 0.30.0: This method has been moved to WebDriver::dismiss_alert()
pub async fn accept(&self) -> WebDriverResult<()>
👎Deprecated since 0.30.0: This method has been moved to WebDriver::accept_alert()
pub async fn send_keys(&self, keys: impl AsRef<str>) -> WebDriverResult<()>
👎Deprecated since 0.30.0: This method has been moved to WebDriver::send_alert_text()
Auto Trait Implementations§
impl Freeze for Alert
impl !RefUnwindSafe for Alert
impl Send for Alert
impl Sync for Alert
impl Unpin for Alert
impl !UnwindSafe for Alert
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