Yes I tried the code from your script and it didn't work. 

This is my code. 
require 'rubygems'
require 'watir-webdriver'

browser = Watir::Browser.new :ie

begin
  browser.goto "mysite"
  
#Login to the Application 

#Click the Sign In button
browser.button(:id, "btn_sign_in").click
browser.image(:id, "tabAccounts").click
browser.link(:id, "ctl00_Content_LinkButtonBlackList").click 
browser.div(:id, "ctl00_Content_PanelBlacklist").button(:id, 
"Button2").click
  field = browser.div(:id, "popup_black_list").text_field(:id, 
"TextBoxFilterAccountItemID")
  field.set("foo\nbar\nbaz") #It set it as foobarbaz
  field.send_keys :arrow_up, :arrow_up, :arrow_up, :delete, :delete
  p field.value #=> "o\nbar\nbaz" #the value it printed was"foobarbaz"
ensure
  browser.quit
end

I'm testing a proprietary web application, that really isn't open to the 
public so i can't really give out the url/login information, is the code 
sample above enough? If not i'll have to think of something else. 

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

Reply via email to