Giter Club home page Giter Club logo

Comments (7)

jonhoo avatar jonhoo commented on July 26, 2024 1

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.

rochacbruno avatar rochacbruno commented on July 26, 2024 1

@jonhoo chromedriver works fine! thanks

from fantoccini.

rochacbruno avatar rochacbruno commented on July 26, 2024

Same problem on nightly

from fantoccini.

rochacbruno avatar rochacbruno commented on July 26, 2024

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.

rochacbruno avatar rochacbruno commented on July 26, 2024

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.

jonhoo avatar jonhoo commented on July 26, 2024

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.

jonhoo avatar jonhoo commented on July 26, 2024

Filed it as #37 :)

from fantoccini.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.