Textarea is not receiving keys from send_keys

24 views
Skip to first unread message

Jordan Prince

unread,
Mar 13, 2013, 9:17:30 PM3/13/13
to seleni...@googlegroups.com
Hey guys, I am trying to make a textarea's send_keys method work using the ruby webdriver. If you goto jsfiddle.net and do <textarea></textarea>, navigate to it with
your driver, and then do driver.find_elements(:tag_name, 'textarea').first.send_keys("x"), x won't appear in the textbox. I have no idea why. Do you?

Thanks,
Jordan

Vishal Mishra

unread,
Mar 14, 2013, 1:21:48 AM3/14/13
to seleni...@googlegroups.com
If you tell me the exact testcase you want to do i might help you


--
--
You received this message because you are subscribed to the Google Groups "selenium-ruby" group.
To post to this group, send email to seleni...@googlegroups.com
To unsubscribe from this group, send email to selenium-rub...@googlegroups.com
For Selenium-Ruby project, visit http://seleniumhq.org/projects/ruby/
For Selenium related questions like Core, Server, and RC client in other language, please go to http://clearspace.openqa.org/community/selenium
---
You received this message because you are subscribed to the Google Groups "selenium-ruby" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-rub...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

bgoad

unread,
Mar 14, 2013, 12:36:04 PM3/14/13
to seleni...@googlegroups.com
Most likely the reason is you are pulling the first textbox found (which is not necessarily the one that you added to jsfiddle ... see http://i.imm.io/Zks7.jpeg for a screenie of the first textarea element that appears for me).
I would recommend trying again using more specific selectors (xpath, or my favorite, css) to find the specific textarea element you are looking for.

Brian
Reply all
Reply to author
Forward
0 new messages