auto set wait time based on the actual load time of the page