I think I figured out a way to get selenium working satisfactorily. I also evaluated the structure of my tests and changed some things, partly because selenium is slow so I only want to use it when I need to.