diff --git a/lib/browserstack/localbinary.rb b/lib/browserstack/localbinary.rb index d3231e2..d633dd4 100644 --- a/lib/browserstack/localbinary.rb +++ b/lib/browserstack/localbinary.rb @@ -63,7 +63,7 @@ def binary_path dest_parent_dir = get_available_dirs binary_path = File.join(dest_parent_dir, "BrowserStackLocal#{".exe" if @windows}") - if File.exists? binary_path + if File.exist? binary_path binary_path else binary_path = download(dest_parent_dir)