jonhoo / fantoccini

A high-level API for programmatically interacting with web pages through WebDriver.
Apache License 2.0
1.63k stars 119 forks source link

Please help, can't run chrome browser #269

Open CarbonPool opened 1 month ago

CarbonPool commented 1 month ago

I downloaded the corresponding version of chromedriver and ran this command .\chromedriver.exe --port=4444

Refer to the example, my code is as follows, but there is no startup response.

use fantoccini::{ClientBuilder, Locator};
fn main() {
    start();
}

async fn start() {
    let c = ClientBuilder::native().connect("http://localhost:4444").await.expect("failed to connect to WebDriver");
    c.goto("https://www.google.com").await.unwrap();
}
jonhoo commented 3 weeks ago

It's impossible to debug this without information about what errors you got and what else actually happened. Could you include some information about the output you've gotten as well?