-
Notifications
You must be signed in to change notification settings - Fork 85
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
WASM support #30
Comments
Honestly I haven't tried compiling to WASM either. I'm wondering if it isn't easier to simply use javascript/WASM to control the browser you're currently running in, instead. I guess that's where I'm still a little confused by what you're trying to do. To clarify, are you wanting to do web requests from a browser, to a local webdriver server (or I guess it could be remote if you wish), to then control a separate browser instance? |
You got it right ;) |
Ok yes that makes sense. Let me know how the WASM compilation goes |
@olanod you probably have to create a new HTTP request backend. The current default is |
Yes the http client is abstracted out and you can implement the relevant trait and supply your own. I'm keen to see how far you get with this. |
Resolved by v0.34.0 |
I haven't tried compiling this to WASM but I will assume it doesn't 😅
I might sound weird wanting to run a browser automation tool from a browser environment but I have a use case of a plug-in system where plugins are JS or Rust compiled to WASM running in a WebWorker, this plug-ins can run in the browser and the server with the help of Deno. The browser APIs limit me to use
fetch
orWebSocket
based libraries so I was looking for Webdriver rust libraries that would use reqwest as HTTP client which supports compiling to browser WASM, I used fantoccini a bit and was planning to work on a fork that used reqwest but I'm glad to see Thirtyfour exists and the API might even be nicer.The text was updated successfully, but these errors were encountered: