-
Notifications
You must be signed in to change notification settings - Fork 123
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
Wrapping capabilities for initialization #44
Comments
You can construct the |
Re-exporting would be a sort of quick fix, but I don't know if its considered a good or bad practice. I would be inclined to go against it. Ideally I would just change |
I'm inclined to re-export since we don't actually need our own wrapper functions or anything here. It's unclear what we gain from exposing our own. In your particular case, the |
Thanks for the idea of not using let arg = json!({"args": ["-headless"]}); Yeah, re-exporting |
Ah, yes, I'd forgotten about pub mod ext {
pub use serde_json::{json, Value};
pub use webdriver::capabilities::Capabilities;
} |
Hi Amin, |
Hi @Grav3y sadly I didn't document where I got it, but this links might be useful
That project I never got to implementing the capabilities for a Chromedriver so not much else I can do to help you |
Hi I want to use
with_capabilities
to create a new client, but not sure if doing it right. This is what I'm doing:If this is the right way to do it I was wondering if we could receive in the capabilities in another way that didn't involve me knowing about
webdriver
andserde_json
and having to add them to my dependencies.I'm open to making a PR if you prefer to discuss over actual code.
The text was updated successfully, but these errors were encountered: