I am trying to fill a text box but I am getting unable to locate element.
I have tried finding the element
- by class
- by name
- Added 10 secs wait
But I am still getting the same error.
Here is HTML
<div class="innerWrap">
<textarea aria-autocomplete="list" aria-controls="typeahead_list_u_0_j"
aria-expanded="false" aria-haspopup="true" aria-label=
"Write a birthday wish on his Timeline..." class=
"enter_submit uiTextareaNoResize uiTextareaAutogrow uiStreamInlineTextarea inlineReplyTextArea mentionsTextarea textInput"
cols="48" id="u_0_k" name="message_text" placeholder=
"Write a birthday wish on his Timeline..." role="textbox" title=
"Write a birthday wish on his Timeline..."></textarea>
</div>
My Code:
textbox = driver.find_element_by_name('message_text')
textbox.send_keys('Happy Birthday! ')
The web page I am working on is Facebook Birthdays page