Skip to content

Instantly share code, notes, and snippets.

@samuelvaneck
Created August 29, 2019 05:46
Show Gist options
  • Select an option

  • Save samuelvaneck/3295efaa85de6cf8b988a7d9a8a2eac5 to your computer and use it in GitHub Desktop.

Select an option

Save samuelvaneck/3295efaa85de6cf8b988a7d9a8a2eac5 to your computer and use it in GitHub Desktop.

Revisions

  1. samuelvaneck created this gist Aug 29, 2019.
    2 changes: 2 additions & 0 deletions wait_for_file.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    wait = Selenium::WebDriver::Wait.new
    wait.until { File.file? file }