Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Error clicking button with selenium
#1
time.sleep(5)
driver.find_element_by_css_selector('.js-checkout-step-submit').click()
time.sleep(0.4)
This above is just a piece of my code with.

When I run this with the other code I've written it gives this error:
selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable


I am pretty sure the path ('.js-checkout-step-submit') to the button I want selenium to click is right because I found is right. Cause I used SelectorGadget to find it wich worked well for me before.

Does someone have an idea what is going on or could someone maybe help me?
Quote
#2
First instead of some arbitrary wait, i would wait until that specific element is loaded to ensure it is loaded before trying to click it.
Quote
#3
(Jan-05-2020, 10:09 PM)metulburr Wrote: First instead of some arbitrary wait, i would wait until that specific element is loaded to ensure it is loaded before trying to click it.
The element was loaded
Quote
#4
Have you tried xpath by any chance? Are you sure that is the only element with that class name? Have you tried ActionChains and moving to the element?

Can you post the code or give us the website with the navigation to the element for us to try ourselves?
Quote
#5
https://www.snipes.nl/checkout?stage=payment#payment
it's a checkout so you first have to add something to your cart. The button I can't click is the button that says 'verder'(Dutch). in English that button would say 'continue'.
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Selenium error with ebdriver (geckodriver) Martinelli 4 580 Sep-24-2019, 01:40 AM
Last Post: Martinelli
  Python Selenium .click() Loads Error - Works Manually.- Events not Triggered NSearch 24 1,548 Aug-14-2019, 02:23 PM
Last Post: NSearch
  Selenium click on popup button??? GuJu 7 1,470 Jul-20-2019, 09:21 AM
Last Post: Nizam
  Error when trying to use Selenium ejected 1 1,338 Mar-26-2019, 04:53 AM
Last Post: ejected
  Instagramlogin Error (Selenium) julian_veit 0 506 Jan-26-2019, 02:40 PM
Last Post: julian_veit
  selenium error : evilcode1 7 1,166 Nov-12-2018, 01:08 PM
Last Post: snippsat
  Getting error when accessing elements in a modal window of an webpage using selenium sumandas89 3 3,075 Jul-13-2018, 10:44 AM
Last Post: mlieqo
  Python 3/selenium - nontype error water_fox 2 2,628 Jun-28-2018, 08:19 PM
Last Post: Sudhakar
  Error in Selenium: CRITICAL:root:Selenium module is not installed...Exiting program. AcszE 1 1,123 Nov-03-2017, 08:41 PM
Last Post: metulburr
  Click on a Drop-down button with selenium Python AcszE 3 3,357 Oct-25-2017, 03:13 PM
Last Post: vardhhan

Forum Jump:


Users browsing this thread: 1 Guest(s)