I have created this function but still it is not working and given
syntax error please help me

require 'watir'

test_site = "http://www.google.com";

ie = Watir::IE.new

ie.goto test_site

#def Method_Objectexist(:type, "INPUT" | :name, "q" | :title, "Google
Search")
str =
  $propValue = str.split('|')
  property_name=$propValue.split('|')[0].strip
  property_value=$propValure.split('|')[1].strip
  if ie.property_value==INPUT.exists?
    ie.text_field(:name, "q").set("poonam")
  end

end

Thanks in advance

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to