# Setting up the log file, this opens the file and gives it access rights. $logfile1 = File.open("TestLog", "a") # Just putting a message at the beginning of the log, to note what is going on $logfile1.puts "Beginning of TheTest" # Simple text check with a log for working or failing if $ie.contains_text("Text I want to use") $logfile.puts "Working, moving on..." else $logfile.puts "Something went horribly wrong!" end #Closing the log file, the puts is just to give a space $logfile1.puts " " $logfile1.close