Skip to content
Advertisement

Python Selenium Button Click with Class Not working

I want to login to https://in1.dashboard.clevertap.com/login.html through selenium using safari. I’m able to enter username and password however since both of them have an ID, however with any of the selenium methods to locate a button I’m not able to do click on the “Log In” button. When I try it either shows an error or open Google Login. I tried to use two classes one is the button class and the second one is span class which defines the text for the button. All of them have failed.

Here is the code:

JavaScript

Advertisement

Answer

click on it using Explicit wait :

JavaScript

Imports :

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