I tried to read as below but its getting timed out :

my_element = @browser.text_field(:id => "term").when_present.set("test")
puts "my_element"

      timed out after 30 seconds, waiting for {:id=>"term", 
:tag_name=>"input or
 textarea", :type=>"(any text type)"} to become present 
(Watir::Wait::TimeoutErr
or)


On Thursday, April 25, 2013 2:34:09 PM UTC+1, watir webdriver wrote:
>
> Hi there,
>
> In my application I've to enter some text in the input field.Its throwing 
> below exception.Anybody can help me on this ?
>
>
> *Stack Trace:*
>
>       Element is not currently visible and so may not be interacted with 
> (Seleni
> um::WebDriver::Error::ElementNotVisibleError)
>       [remote server] 
> file:///C:/Users/fsultana/AppData/Local/Temp/webdriver-pro
> file20130425-2204-k7abbi/extensions/
> [email protected]/components/command_p
> rocessor.js:10402:in `DelayedCommand.prototype.checkPreconditions_'
>       [remote server] 
> file:///C:/Users/fsultana/AppData/Local/Temp/webdriver-pro
> file20130425-2204-k7abbi/extensions/
> [email protected]/components/command_p
> rocessor.js:10421:in `DelayedCommand.prototype.executeInternal_/h'
>       [remote server] 
> file:///C:/Users/fsultana/AppData/Local/Temp/webdriver-pro
> file20130425-2204-k7abbi/extensions/
> [email protected]/components/command_p
> rocessor.js:10426:in `DelayedCommand.prototype.executeInternal_'
>       [remote server] 
> file:///C:/Users/fsultana/AppData/Local/Temp/webdriver-pro
> file20130425-2204-k7abbi/extensions/
> [email protected]/components/command_p
> rocessor.js:10366:in `DelayedCommand.prototype.execute/<'
>       (eval):1:in `process_watir_call'
>       ./features/step_definitions/smartmanager_content_steps.rb:89:in `/^I 
> enter
>  "(.*?)" on the smartcontent creative page$/'
>       features\smart_manager_smartcontent_08.feature:50:in `And I enter 
> "suits"
> on the smartcontent creative page'
>
> *HTML Code :*
>
> <div class="ui-dialog ui-widget ui-widget-content ui-corner-all 
> ui-draggable ui-resizable" style="display: block; z-index: 1001; outline: 
> 0px none; position: absolute; height: auto; width: 560px; top: 438px; left: 
> 668px;" tabindex="-1" role="dialog" aria-labelledby="
> ui-dialog-title-searchCategoryDialog">
> <div class="ui-dialog-titlebar ui-widget-header ui-corner-all 
> ui-helper-clearfix">
> <div id="searchCategoryDialog" class="ui-dialog-content ui-widget-content"
>  style="width: auto; min-height: 0px; height: 456.133px;">
> <form id="searchCategoryForm" method="post">
> <input id="justOne" type="hidden" value="false" name="justOne">
> <label for="term">Please enter search term</label>
> *<input id="term" value="" name="term">*
> <div class="clear"></div>
>
> The input tag is in bold font.
>
> *Tried as below :*
> *Cucumber step :*
>
> And I enter "suits" on the creative page
>
> *Step definition:*
>
> Then(/^I enter "(.*?)" on the creative page$/) do |test|
>   1) browser.text_field(:id => "term").when_visible.set("test")
>  2) browser.text_field(:id => "term").when_present.set("test")
> 3) browser.text_field(:id => "term").set "test"
> end
>
> No luck in all the above cases.
> Thanks in-advance.
>   
>   
>
>
>
>

-- 
-- 
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]

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to