/// Get the active alert text.
///
/// # Example:
/// ```rust
/// # use thirtyfour::error::WebDriverResult;
/// # use thirtyfour::{By, DesiredCapabilities, WebDriver};
/// # use tokio;
/// #
/// # #[tokio::main]
/// # async fn main() -> WebDriverResult<()> {
/// #     let caps = DesiredCapabilities::chrome();
/// #     let driver = WebDriver::new("http://localhost:4444/wd/hub", &caps).await?;
/// #     driver.get("http://localhost:8000").await?;
/// #     driver.find_element(By::Id("alertbutton1")).await?.click().await?;
/// let alert = driver.switch_to().alert();
/// let text = alert.text().await?;
/// #     assert_eq!(text, "Alert 1 showing");
/// #     alert.dismiss().await?;
/// #     Ok(())
/// # }
/// ```
Get the active alert text.
Get the active alert text .
pub async fn text(&self) -> WebDriverResult<String> {
        let v = self
            .conn
            .execute(Command::GetAlertText(&self.session_id))
            .await?;
        unwrap::<String>(&v["value"])
    }
pub async fn text ( & self ) -> WebDriverResult < String > { let v = self . conn . execute ( Command :: GetAlertText ( & self . session_id ) ) . await ? ; unwrap :: < String > ( & v [ " " ] ) }
Get the active alert text.
Get the active alert text .
&self
example:
None
use thirtyfour::error::webdriverresult;
None
use thirtyfour::{by, desiredcapabilities, webdriver};
None
use tokio;
None
#[tokio::main]
None
async fn main() -> webdriverresult<()> {
None
let caps = desiredcapabilities::chrome();
None
let driver = webdriver::new("http://localhost:4444/wd/hub", &caps).await?;
None
driver.get("http://localhost:8000").await?;
None
driver.find_element(by::id("alertbutton1")).await?.click().await?;
None
assert_eq!(text, "alert 1 showing");
None
alert.dismiss().await?;
None
ok(())
None
}
None