From: Suraj Kurapati Date: 2009-04-29T13:38:27+09:00 Subject: Re: I want to automate this text field. Asha Latha wrote: > ie.text_field(:name, "JMSText").set('TEST'). > > Instead of TEST i want to copy content from text file and paste it in > text filed. Use the File::read() method: file_path = "path to your file.txt" file_contents = File.read(file_path) ie.text_field(:name, "JMSText").set(file_contents) > if i change the text in notepad ..it shoudl take the new value With the above approach, you must rerun your Ruby program after changing the text in notepad. If you wish to have your Ruby program respond to changes in the text file while it is still running, then take a look at libinotify. -- Posted via http://www.ruby-forum.com/.