Expose expectWithTextSynchronous