View All Public Notes
"Another thing I like to do is serialize(save) the Watir::Browser object into a file using YAML, like so: require "yaml" File.open("browserObj.yaml", 'w').write YAML::dump(@browser) This browserObj.yaml file will then contain all sorts of internal details in easily readable/parseable text, including PID of whichever browser, path to temp profile, etc. Eg. profile_dir: /tmp/webdriver-rb-profilecopy20121201-1981-9o9t9a" #Watir #browsers #cookies #preferences #states #automation #data #pub