Comments (8)
The issue is that the execute future gets polled and then dropped before finishing. This drops the receiver (ret_rx
) and makes this send panic as a result.
from thirtyfour.
Yes, ignoring the error is likely the way to go. We tried it for the application in the OP and it seemed to work fine.
Regarding logging, I'd probably go with a Debug
loglevel, since this event seems fairly uninteresting outside of this crate.
from thirtyfour.
@stevepryde could you notify me here, when this fix is in the crates.io version of this crate? Until then I will use a local git branch ;)
from thirtyfour.
Minimal repro:
use thirtyfour::prelude::*;
use tokio::time::*;
#[tokio::main]
async fn main() -> WebDriverResult<()> {
let caps = DesiredCapabilities::chrome();
let driver = WebDriver::new("http://localhost:9515/", &caps).await?;
let fut = driver.get("http://example.org");
let _ = timeout(Duration::from_millis(1), fut).await;
Ok(())
}
from thirtyfour.
Ok that makes sense. So I assume in this case it should probably just ignore the send error? Perhaps we can log it as a warning and then continue.
from thirtyfour.
Good point 👍
from thirtyfour.
I had a little bit panic, but as panicbit says after removing the expect, my application works again.
from thirtyfour.
@Tockra I've uploaded a fix in v0.23.1
which should be on crates.io now. Let me know if this fixes the issue.
from thirtyfour.
Related Issues (20)
- How to use selenium-manager in my code? HOT 2
- thread 'tokio-runtime-worker' panicked at 'internal error: entered unreachable code: received unknown error (no such frame) for NOT_FOUND status code' HOT 4
- How can I set the user-agent for Chromedriver? HOT 3
- Is there a way to use wait_until or something like it to way for a specific ID to be available ? HOT 2
- wait until element to disappear HOT 6
- Chrome Options example erroring HOT 2
- Does `query` work on child elements? HOT 3
- Cannot interact with WebElement HOT 1
- How to trigger onchange event without submitting the form? HOT 2
- How to set PageLoadStrategy::None in DesiredCapabilities::chrome()? HOT 1
- Running the Test without Existing Browser (HtmlUnitDriver) HOT 1
- Add cdp type from auto_generate_cdp crate HOT 2
- How to handle file picker? HOT 4
- How to capture the Chromium's requests and responses traffic using thirtyfour HOT 5
- Maintenance Status
- Device Farm incompatibility - with workaround
- Chromedriver - http incompatibility with hyper HOT 3
- Incompatible with Selenoid
- noProxy should be an Array and not a String
- Get prop `naturalWidth` of img, get a error ` Json("Unexpected value for property: Number(450)")`
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 thirtyfour.