I'm very newbie at this. I'm trying to login a website using Selenium to make some web scraping but I can't succeed in clicking the submit button.
This is what I'm using:
browser.find_element_by_name("submit").click()
And this is the html form code from the web:
<div _ngcontent-ihr-c27="" class="form-group">
<button _ngcontent-ihr-c27="" class="btn-fantasy green big" gtm-action="Login_Mail" gtm-category="Interaccion" gtmeventclick="" type="submit"> Iniciar sesión </button>
</div>
Any suggestion? Maybe using another attribute in find_element_by_XXX?
Thanks!