google chrome - How to backup browser state after Watir automation - Stack Overflow
stackoverflow.com
"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
Collect and share the web
Get started for free