From: Df Gh Date: 2009-09-01T21:57:54+09:00 Subject: Re: Activate radio button (win32ole) David Mullet wrote: > A group of radio buttons will probably share the same control name, so > you can't reference an individual button by name. > > But you can iterate over the input controls and check the one with the > desired value: > > ie.Document.All.Tags('input').each do |control| > if control.value == 'reference' > control.checked = true > end > end > > Let me know if that works for you. > > David > > http://rubyonwindows.blogspot.com Thanks David, it works. I found out you can do it like this too: ie.Document.All.Type(3).Click Writing Type capitalized does the trick. And (3) stands for the 4th radio button element. Now I have another minor problem. When the form is filled, I submit it via > ie.Document.Forms(0).Submit But before I can get the resulting links > links = ie.Document.All.Tags('a') I have to do > sleep(1) > ie.Refresh after the submit, or else I get the old page. Any other way to get the updated results? -- Posted via http://www.ruby-forum.com/.