You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use this code to fill a login box in a web page:
use std::error::Error;
use thirtyfour::prelude::*;
#[tokio::main]
async fn main() -> Result<(), Box<dyn Error + Send + Sync>> {
// define the browser options
let mut caps = DesiredCapabilities::chrome();
// to run Chrome in headless mode
// caps.add_arg("--headless=new")?; // comment out in development
caps.add_arg("--enable-automation")?; // comment out in development
// initialize a driver to control a Chrome instance
// with the specified options
let driver = WebDriver::new("http://localhost:9515", caps).await?;
// visit the target page
driver.goto("https://programme.openhouse.org.uk/login").await?;
//
let login = driver.find(By::Css("input#email-input")).await?;
login.send_keys("kevin.smith@gmail.com").await?;
println!("login");
// close the browser and release its resources
// driver.quit().await?;
Ok(())
}
The code execute without any error, but the login name is written incomplete in the web page: vin.mith@gmail.com
and not kevin.smith@gmail.com
as expected.
Any idea of how to solve this issue.
I use:
ChromeDriver 131.0.6778.108 (3b014839fbc4fb688b2f5af512d6ce312ad208b1-refs/branch-heads/6778@{#2393})
Google Chrome 131.0.6778.139
cargo 1.83.0 (5ffbef321 2024-10-29)
thirtyfour v0.35.0
Best regards
The text was updated successfully, but these errors were encountered:
I use this code to fill a login box in a web page:
use std::error::Error;
use thirtyfour::prelude::*;
#[tokio::main]
async fn main() -> Result<(), Box<dyn Error + Send + Sync>> {
// define the browser options
let mut caps = DesiredCapabilities::chrome();
// to run Chrome in headless mode
// caps.add_arg("--headless=new")?; // comment out in development
caps.add_arg("--enable-automation")?; // comment out in development
// initialize a driver to control a Chrome instance
// with the specified options
let driver = WebDriver::new("http://localhost:9515", caps).await?;
//
let login = driver.find(By::Css("input#email-input")).await?;
login.send_keys("kevin.smith@gmail.com").await?;
println!("login");
// close the browser and release its resources
// driver.quit().await?;
Ok(())
}
The code execute without any error, but the login name is written incomplete in the web page:
vin.mith@gmail.com
and not
kevin.smith@gmail.com
as expected.
Any idea of how to solve this issue.
I use:
ChromeDriver 131.0.6778.108 (3b014839fbc4fb688b2f5af512d6ce312ad208b1-refs/branch-heads/6778@{#2393})
Google Chrome 131.0.6778.139
cargo 1.83.0 (5ffbef321 2024-10-29)
thirtyfour v0.35.0
Best regards
The text was updated successfully, but these errors were encountered: