Could these be defined outside of the `then`s, so that the code isn't repeated below for browser.get?