We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fc2582 commit 88198b9Copy full SHA for 88198b9
rust/src/lib.rs
@@ -875,7 +875,7 @@ pub trait SeleniumManager {
875
self.get_driver_version()
876
));
877
}
878
- } else {
+ } else if !self.is_safari() {
879
// If driver is not in the cache, download it
880
self.assert_online_or_err(OFFLINE_DOWNLOAD_ERR_MSG)?;
881
self.download_driver()?;
rust/src/lock.rs
@@ -74,7 +74,7 @@ pub fn clear_lock_if_required() {
74
if lock_path.is_some() {
75
let lock = lock_path.unwrap();
76
if lock.exists() {
77
- fs::remove_dir_all(lock.parent().unwrap()).unwrap_or_default();
+ fs::remove_file(lock).unwrap_or_default();
78
79
80
0 commit comments