added browser wait for the html to be rendered and reverted to button name syntax