def screenshot(path)
      if path
        ext_screenshot(path)
      else
        if RUBY_ENGINE == 'ruby'
          time = Time.now.utc.strftime '%Y-%m-%d--%H-%M-%S'
        else
          time = Time.now.utc.to_i
        end
        ext_screenshot("./screenshot-#{time}.png")
      end
    end
def screenshot(path)
      if path
        ext_screenshot(path)
      else
        if RUBY_ENGINE == 'ruby'
          time = Time.now.utc.strftime '%Y-%m-%d--%H-%M-%S'
        else
          time = Time.now.utc.to_i
        end
        ext_screenshot("./screenshot-#{time}.png")
      end
    end
Take screenshot