Comments (11)
I noticed that in the geckodriver snippet a protocol was not given.
I could be wrong but I believe the http
protocol is necessary.
from fantoccini.
The following works for me:
$ chromedriver --port=4444
Client::new("http://localhost:4444");
So does just starting geckodriver
and using the same Rust code to connect.
You're running these two commands on the same machine, right?
from fantoccini.
yes
from fantoccini.
now it sees the chrome driver. but
thread 'main' panicked at 'called
Result::unwrap()on an
Err value: NotW3C(Object({"message": String("session not created exception: Missing or invalid capabilities\n (Driver info: chromedriver=2.29,platform=Linux 4.11.5-1-ARCH x86_64)")}))', src/libcore/result.rs:859
from fantoccini.
Are you using the latest commit on master
? And a recent version of Chrome + chromedriver?
from fantoccini.
yes
from fantoccini.
Seems this is happening on the latest version of Chrome for me too -- not clear why. I suspect Chrome's WebDriver implementation is deviating from the W3C spec again, so you should stick with geckodriver
for now (since it's a conforming solution).
from fantoccini.
the latest version of geckodriver
thread 'main' panicked at 'unexpected webdriver error; webdriver returned error: connection refused', /home/user123/.cargo/registry/src/github.com-1ecc6299db9ec823/fantoccini-0.6.4/src/lib.rs:173
note: Run with `RUST_BACKTRACE=1` for a backtrace.
from fantoccini.
geckodriver
takes a little while to start up -- make sure you wait for the server to be ready before trying to launch the Rust program. Beyond that, I don't know what to tell you. It works on my machine with geckodriver :/
from fantoccini.
Apparently the chromedriver
issue is known, and has been fixed with chromedriver 2.30
.
from fantoccini.
@kokinarido one workaround that might work for you for chromedriver
is to replace
.map(|s| s.contains("cannot find dict 'desiredCapabilities'"))
with
.map(|s| s.contains("Missing or invalid capabilities"))
in the code. There should only be one place that it appears. This change and much more will eventually land in the next release (currently on the futures
branch).
from fantoccini.
Related Issues (20)
- 👋 From the Selenium project! HOT 1
- Cannot access error variant information from webdriver::ErrorStatus enum HOT 1
- `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?
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.