Skip to content

Commit

Permalink
Fix a bug introduced by #146 in ChromeFinder.
Browse files Browse the repository at this point in the history
Re-adding a fix which I had accidentally reverted during the final force push. The fix updates the location methods in the ChromeFinder to return nil if a valid binary is not found.
  • Loading branch information
kapoorlakshya committed Jul 24, 2019
1 parent 878c470 commit 210d5dc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/webdrivers/chrome_finder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ def win_location
return option if File.exist?(option)
end
end

nil
end

def mac_location
Expand All @@ -59,6 +61,8 @@ def mac_location
return option if File.exist?(option)
end
end

nil
end

def linux_location
Expand All @@ -71,6 +75,8 @@ def linux_location
return option if File.exist?(option)
end
end

nil
end

def win_version(location)
Expand Down

0 comments on commit 210d5dc

Please sign in to comment.