This turned out to be just a bug in the class where I was implementing the method. I was using a facade pattern to wrap around multiple browser libraries and the value of this.page was being unintentionally silently altered, leading to this bug down the line.