getting text from text area

11 views
Skip to first unread message

KIRAN Trimukhe

unread,
Jun 2, 2016, 11:26:37 AM6/2/16
to rubyonra...@googlegroups.com
<textarea id="selectedRowsId" style="width: 60rem;min-height:8rem;
margin: 1rem 0 1rem 4rem;">Kiran Trimukhe</textarea>


I want to get text here it is "Kiran Trimukhe"

I want to automate this using watir webdrivver

--
Posted via http://www.ruby-forum.com/.

Greg Navis

unread,
Jun 3, 2016, 3:54:15 AM6/3/16
to rubyonra...@googlegroups.com
Looking at the cheat sheet (https://github.com/watir/watir/wiki/Cheat-Sheet) I'd recommend you try:

browser = Watir::Browser.start('http://your-url.com')
browser.textarea(:id, 'selectedRowsId').text
browser.close
--
Greg Navis
I help tech companies to scale Heroku-hosted Rails apps.

Reply all
Reply to author
Forward
0 new messages