I'm new to python and selenium. I want to click on the get_likes_button and I need to send the value = 1803345990687013485 when doing that.
Here's the HTML
<form action="" method="post" accept-charset="utf-8"><span style="font-size: 14px;">
<i class="fa fa-heart" style="color: #F12938;"></i> 20 </span>
<input type="hidden" value="1803345990687013485" name="id">
<button class="btn btn-primary pull-right" type="submit" name="submit"
id="get_likes_button"> Get Likes </button> </form></b>
Here's the code
driver.find_element_by_xpath("//input[@name='id']").send_key('1803345990687013485')
driver.find_element_by_id('get_likes_button').submit()
I get the following message
Exception: Message: Element not visible.
type='hidden'attribute. In addition,get_likes_buttonisid, notname.