For login purposes, how about a before_capture equivalent that runs just once
natethinks opened this issue · comments
Title says it all, the docs aren't super clear on what js files are executed when but it seems like most of the browser automation is made to be run just before certain paths are executed, I just want one that is executed at the beginning of the run. So if I run the spider, it runs the before and logs in to site i've automated out. And if I run capture, it does the same.
Does this not give you what you need?
http://bbc-news.github.io/wraith/#before_capturehooks
(The before_capture: "javascript/config-level.js"
bit, which is run at the beginning of every path).