framework for browser wait