You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My question is related to issue #182. I am not sure how to use selenium-manager to manager webdriver.
I tried with the below code on #[tokio::main] async fn main(),
let mut manager: Box<T> = browser_manager;
let driver_version = manager
.discover_driver_version_and_download_browser_if_necessary()
.expect("Browser was not found");
manager.set_driver_version(driver_version);
manager
.download_driver()
.expect("Error downloading the driver...");
let driver_path = manager.get_driver_path_in_cache().unwrap();
But it failed with error thread 'main' panicked at 'Cannot start a runtime from within a runtime. This happens because a function (like block_on) attempted to block the current thread while the thread is being used to drive asynchronous tasks.
Is selenium-manager intended to use only on CLI or using this way is possible? can you please help me on using this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
My question is related to issue #182. I am not sure how to use selenium-manager to manager webdriver.
I tried with the below code on
#[tokio::main] async fn main()
,But it failed with error
thread 'main' panicked at 'Cannot start a runtime from within a runtime. This happens because a function (like
block_on) attempted to block the current thread while the thread is being used to drive asynchronous tasks.
Is selenium-manager intended to use only on CLI or using this way is possible? can you please help me on using this?
Beta Was this translation helpful? Give feedback.
All reactions