Maybe something like this:

  ie = IE.start( "http://serverName/BackgroundChecker.ext"; )

  myFile = File.new( "C:\\names\wanted.txt", "r" )

  lineArray = IO.readlines( myFile.path )
  lineArray.each{ |line|

  ie.text_field( :name, "searchname" ).set( line )
  ie.button( :name, "searchbutton" ).click() # whatever you button is named

  unless ie.contains_text( "0 records found" ) # if it DOES find a record, pause
  sleep 600
  end
}

  myFile.close()

The things you would have to adjust of course would be the name of your search 
button/image, the text/page/condition that deems no records were found. Please 
respond with more details/questions :)

Hope this helps,
Nathan Christie
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6488&messageID=18425#18425
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to