Skip to content
Advertisement

Selenium 4.3.0 get the element of button type to python

I am struggling on how to get the button type element in this example, so that I can be able to test it using selenium in python.

JavaScript

My Code:

JavaScript

I think the code changed because of the selenium version? I need help guys Thank you.

Advertisement

Answer

There is no such selector type as "type". You can either use another locator for Submit button e.g.

JavaScript

or this form submitting approach

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