-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chromeOptions is not the name of a known capability or extension capability #36
Comments
Same problem on nightly |
There is a different error when using $ cargo run
Finished dev [unoptimized + debuginfo] target(s) in 0.10s
Running `target/debug/web_ui_testing`
thread 'tokio-runtime-worker-2' panicked at 'unexpected webdriver error; webdriver returned error: Invalid alwaysMatch capabilities', /home/rochacbruno/.cargo/git/checkouts/fantoccini-37a5b9f98b789092/c1c515d/src/session.rs:314:17
note: Run with `RUST_BACKTRACE=1` for a backtrace.
thread 'tokio-runtime-worker-1' panicked at 'called `Option::unwrap()` on a `None` value', libcore/option.rs:355:21
|
Ah, good catch! This is because WebDriver apparently now serializes legacy new session parameters incorrect (see b030fc3). I'd worked around that by setting this capability, but it's Google Chrome specific, and I'd left off the vendor prefix (fixed in 65081eb). I think this should now be fixed in the about-to-be-published 0.11.3! |
Thanks! I used [dependencies.fantoccini]
git = "https://github.com/jonhoo/fantoccini"
rev = "52cf5b1f763a5f19d3735bafd378fede9d193a07" And now it works with ut using thread 'thread 'tokio-runtime-worker-2tokio-runtime-worker-3' panicked at '' panicked at 'not yet implemented: failed to connect to WebDriver: SessionNotCreated(WebDriverError { error: SessionNotCreated, message: "Failed to match capabilities", stack: "", delete_session: false })called `Option::unwrap()` on a `None` value', ', src/main.rslibcore/option.rs::14355::1721 @jonhoo I'll give a talk on saturday about testing strategies and Iam going to show Factoccini demo! Thanks |
That's truly bizarre. As far as I can tell, we're hitting this line in WebKitWebDriver, but I don't see why the matched capabilities list would be empty. Can you try |
@jonhoo chromedriver works fine! thanks |
Filed it as #37 :) |
I download and installed
geckodriver
wget https://github.com/mozilla/geckodriver/releases/{latest}linux64.tar.gz tar -xvzf geckodriver* chmod +x geckodriver geckodriver (running on port 4444)
Used this code:
Result:
The text was updated successfully, but these errors were encountered: