jonhoo / fantoccini

A high-level API for programmatically interacting with web pages through WebDriver.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Warning in Sample app

sirxyzzy opened this issue · comments

The sample code gives warnings:

warning: use of deprecated associated function `fantoccini::Client::new`: Prefer ClientBuilder::native

On this line in the Wikipeadia example:

    let mut c = Client::new("http://localhost:4444").await.expect("failed to connect to WebDriver");

Good catch — those examples were super old! I uploaded a new one to replace them :)