Tests no longer uses getNextInputElement, so make it private.