Comments (7)
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!
from fantoccini.
@jonhoo chromedriver works fine! thanks
from fantoccini.
Same problem on nightly
from fantoccini.
There is a different error when using WebKitWebDriver -p 4444
$ 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
from fantoccini.
Thanks!
I used
[dependencies.fantoccini]
git = "https://github.com/jonhoo/fantoccini"
rev = "52cf5b1f763a5f19d3735bafd378fede9d193a07"
And now it works with geckodriver
ut using WebKitWebDriver -p 4444
it still fails with
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
from fantoccini.
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 chromedriver
instead?
from fantoccini.
Filed it as #37 :)
from fantoccini.
Related Issues (20)
- `Session::with_capabilities_and_connector` hides the WebDriver response HOT 1
- What's happening here? (fantoccini breaks String + &String) HOT 10
- Error when connecting to browserstack: Session not started or terminated HOT 1
- Test whether text is visible? HOT 3
- excute() doesnt execute some scripts correctly HOT 3
- SessionNotCreated error on second run with fantoccini and geckodriver HOT 1
- How to specify options for webdriver? HOT 1
- An error occurs in the IE mode of the Edge browser. HOT 2
- Testing of client&server-side Rust interaction HOT 1
- returning Prototype.Array shows in console.log but nothing from println. HOT 1
- Can you automate the geckodriver session initialization? HOT 2
- Please add Network Request Interception HOT 1
- Get console log messages HOT 1
- webdriver might be part of public API HOT 1
- WheelActions needed HOT 2
- Any blockers for 0.20? HOT 1
- wait_* methods deprecated with no alternative HOT 2
- Any suggested pattern for closing the Client on test failure? HOT 1
- How can I use it with no display? HOT 1
- scrollIntoView HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fantoccini.