You're selecting the first element in a drop down box? If not, can you please provide a little bit more info on exactly what you're interacting with?
ie.select_list(:id, /Request_Salutation_I/).set "<First Value Name>" Thanks, Adam On Apr 5, 6:40 pm, Rats <crapats...@yahoo.com.au> wrote: > On Apr 6, 8:42 am, Rats <crapats...@yahoo.com.au> wrote: > > > I'm having some issues with setting focus to fields on different > > computers. > > > I scripted some stuff over the weekend on my home computer where I set > > focus to a field and then did some "send_keys" on the field. This > > worked perfectly however on my work computer the same .focus command > > sets focus to the browser URL field instead of the desired component. > > > I'm using the following command: > > > ie.text_field(:id, "Request_Salutation_I").focus > > ie.send_keys("{DOWN}") > > > Basically this just sets the salutation field on a request form to the > > first value. > > Sorry forgot to mention if I run the two individual commands via > command line then they work fine. It's only when run as part of a > script that they are failing. Really weird. :-( -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe, reply using "remove me" as the subject.