python - How to select a button after page has fully loaded? -


using python , selenium, when click on continue button 'continue_pax', page loads exact same page before, use pax_page again wait element load , click on 'continue_pax' again. however, browser crashes when this. think maybe because trying click 'continue' button fast.

i error stating:

, line 193, in check_response     raise exception_class(message, screen, stacktrace) webdriverexception: message: element not clickable @ point (834.5, 562). other element receive click: <div class="modal-outer"></div> 

how can click on continue button again after page has reloaded move onto seats_page element?

pax_page = wait.until(ec.visibility_of_element_located((by.id, "ctl00_maincontent_passengerlist_passengergridview_ctl08_butaddbagsforall")))  ... filling code in between      #continue seats     continue_pax = driver.find_element_by_id("pagecontinue").click()     pax_page     continue_pax     seats_page = wait.until(ec.visibility_of_element_located((by.id, "findyourseat"))) 

it looks there modal "popup" covering button - suspect the loading spinner.

two things try:

  • wait continue button to clickable:

    wait.until(ec.element_to_be_clickable((by.id, "pagecontinue"))).click(); 
  • wait invisibility of modal:

    wait.until(ec.invisibility_of_element_located((by.class_name, "modal-outer"))) 

Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -