Re: [wtr-general] Selection list options with leading white spaces not able to select.

2012-10-30 Thread Željko Filipin
On Tue, Oct 30, 2012 at 5:34 PM, Joe Fleck wrote: > "Included Patients (5659)" > " Adherent (5118)" > " Non-Adherent (541)" > "Excluded Patients (48)" So there are three leading spaces for the second and the third option. Any of these should work: browser.option(:text => " Adherent (5118)

Re: [wtr-general] Selection list options with leading white spaces not able to select.

2012-10-30 Thread Joe Fleck
Okay, Here it is: @browser.select_list(:index,1).options.each{|t| p t.text} "Included Patients (5659)" " Adherent (5118)" " Non-Adherent (541)" "Excluded Patients (48)" On Tue, Oct 30, 2012 at 12:30 PM, Željko Filipin wrote: > On Tue, Oct 30, 2012 at 5:28 PM, Joe Fleck wrote: >> >> @browse

Re: [wtr-general] Selection list options with leading white spaces not able to select.

2012-10-30 Thread Željko Filipin
On Tue, Oct 30, 2012 at 5:28 PM, Joe Fleck wrote: > >> @browser.select_list(:index,1).options.each{|t| puts t.text} > Included Patients (5659) >Adherent (5118) >Non-Adherent (541) > Excluded Patients (48) I forgot #options now returns objects instead of strings. Try this (replace #puts w

Re: [wtr-general] Selection list options with leading white spaces not able to select.

2012-10-30 Thread Joe Fleck
Hi Željko, I get the following: >> @browser.select_list(:index,1).options => #"select", :index=>1}>, @selector={:tag_name=>"option"}> and if I change it up a little: >> @browser.select_list(:index,1).options.each{|t| puts t.text} Included Patients (5659) Adherent (5118) Non-Adherent (541)

Re: [wtr-general] Selection list options with leading white spaces not able to select.

2012-10-30 Thread Željko Filipin
What do you get from this? p @browser.select_list(:index,1).options Željko -- filipin.eu -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@goo

[wtr-general] Selection list options with leading white spaces not able to select.

2012-10-30 Thread Joe Fl
Hi Everyone., I am having problems selecting options from select list. HTML: Included Patients (3806) Adherent (93) Non-Adherent (3713) Excluded Patients (68) Some of the options have leading white spaces and when I try to select those I get the error stating not able to locate. I hav

Re: [wtr-general] Re: Watir Attach and Find Methods

2012-10-30 Thread Chengwei Lin
Hi, I encounter exactly the same issue discussed here. May I know if any solution has been found? Thanks, Chengwei dholcombe於 2010年5月5日星期三UTC+8上午4時26分03秒寫道: > > The script is being run as admin as noted. To be specific By running > "Start Command Promt with Ruby" as administrator the script fai

[wtr-general] Re: ie.attach Windows 7 - administrator

2012-10-30 Thread Chengwei Lin
Hi, I have exactly the same issue as you described here. May I know if you have found the solution? Thanks, Chengwei JackieH於 2010年10月2日星期六UTC+8上午2時18分11秒寫道: > > I am running a script that clicks a link and brings up another window > that has a PDF in itThe code does an Watir::IE.attach(:ti