Hi.. So, let me put here how i made that...
I discovered that the element is one "WYSIWYG Editors" and watir-webdriver page explains how can i work with it. Sorry if i did'nt know how to explain that... and the title of this post "no make sense". I put this into my step definition: @browser.frame(:title => 'Editor de Texto, poll_questions_attributes_0_description, pressione ALT 0 para obter ajuda.').send_keys pergunta Thank you a lot... Em quinta-feira, 30 de agosto de 2012 19h10min36s UTC-3, Daniela escreveu: > > Hi guys, > > I want to put some values inside a textarea element, but it's hidden. > > Look the html please: > > <div class="question-wrapper"> > <div class="question-description-wrapper related-contents"> > <div class="fields related content"> > <input > id="poll_questions_attributes_0_related_contents_attributes_0_credit" > class="credit" type="hidden" > name="poll[questions_attributes][0][related_contents_attributes][0][credit]"> > > The element has an "id" > = poll_questions_attributes_0_related_contents_attributes_0_credit > > But, when i execute the script, passing: > > text_field(:pergunta_element, :id => > "poll_questions_attributes_0_description") > > The error that appears is: > > [remote server] > file:///tmp/webdriver-profile-iwjb1j/extensions/@.com/components/commandr.js:5908:in > > `unknown': Element is not currently visible and so may not be interacted > with (Selenium::WebDriver::Error::ElementNotVisibleError) > > > Thanks a lot if someone help me. > -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected]
