Added a wait to the page represnetation element available check