Skip to content
Advertisement

Python Selenium unclickable button

I am working with the following website: www.offerte.smartpaws.ch

I am trying to use the French site: www.offerte.smartpaws.ch/fr

I have a piece of code that works with the German part but for some reason I get an error when trying to do the same thing on the French side, even if the elements are identical.

I have the following code to select the year:

JavaScript

This code is supposed to go through a range of years, click on the calendar option, then click on the dropdown for years and take the selected year, finally, we close the calendar.

This method is working fine in the German side, but fails at the French side, with the following error:

JavaScript

Thank you for any advice or sugestions.

Advertisement

Answer

Try clicking the parent div element of the input. Seems to work for me for both language sites:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement