I'm trying to use python and selenium webdriver to click in a submit button of a specific form, below is the source code of the element that I want to click:
<input type="submit" name="post" tabindex="5" value="Submit" class="btn btn-primary btn-xs btnmain" accesskey="s">
And here is the python expression that I'm using to click on it:
text_area = wd.find_element_by_id('qreply')
text_area.send_keys("TEST STRING")
wd.find_element_by_xpath("//button[contains(@class,'btn btn-primary btn-xs btnmain')]").click()
The problem is, that for some reason, my script appears to not click at the button and the information is not sent.
Any suggestion how I can solve it?