try have_selector to wait for button to appear