Re: [Wtr-general] Selecting an 'accented character' from a list

2007-03-19 Thread sathees
put them to an array and use it. myarray = [] myarray = $ie.select_list(:whatever, 'whatever').getAllContents now you can see which one is your text by doing myarray.length.times do |x| puts index + #{x} + + #{myarray[x]} end ___ Wtr-general mailing

Re: [Wtr-general] Selecting an 'accented character' from a list

2007-03-03 Thread Ċ½eljko Filipin
I recently had a similar problem. I wanted to enter accented character to text field. Paul suggested that I put text with accented character to Excel file, then in Ruby script get that text from Excel file and put it in variable and use it in my script. And it worked. I do not have Excel at this

Re: [Wtr-general] Selecting an 'accented character' from a list

2007-03-03 Thread John Lolis
Thank you both for the information. I can enter the data fine (just need to use an editor that can handle special characters). The issue remains that in the html the value is servi # 2 3 1 ; o (note i included spaces so you could see all the characters), watir stores the value as Nome do

Re: [Wtr-general] Selecting an 'accented character' from a list

2007-03-03 Thread John Lolis
well heres some more code i found, which does the conversion. Now i just need to go the other way string = Nome do servi\347o puts string.gsub(/.$/u, '') regex = Regexp.new(//u) - Posted via Jive Forums

Re: [Wtr-general] Selecting an 'accented character' from a list

2007-03-02 Thread Paul Carvalho
Hi John, this may or may not be useful but when I work with accented items like these, I treat them like a black box. That is, I don't look into the box to see how Ruby translates them .. which may or may not be how Ruby really sees them. In your select_list, can you refer to that service name