Re: [wtr-general] Re: NoSuchElementError

2018-08-27 Thread rajagopalan madasami
Beautiful, thanks. On Tue 28 Aug, 2018, 9:57 AM Lakshya Kapoor, wrote: > Yup, here is the source for Watir::Select#select: > > def select(*str_or_rx) > results = str_or_rx.flatten.map { |v| select_by v} > results.firstend > > > > On Monday, August 27, 2018 at 9:01:04 PM UTC-7, rajagopalan

Re: [wtr-general] Re: NoSuchElementError

2018-08-27 Thread Lakshya Kapoor
Yup, here is the source for Watir::Select#select: def select(*str_or_rx) results = str_or_rx.flatten.map { |v| select_by v} results.firstend On Monday, August 27, 2018 at 9:01:04 PM UTC-7, rajagopalan madasami wrote: > > Ah ! Is it returning the value? I haven't noticed it so far. Let me

Re: [wtr-general] Re: NoSuchElementError

2018-08-27 Thread rajagopalan madasami
Ah ! Is it returning the value? I haven't noticed it so far. Let me verify. On Tue 28 Aug, 2018, 9:29 AM Lakshya Kapoor, wrote: > I have experienced the same in IE. The exception is raised when > Watir::SelectList#select attempts to read the selected value and return > it while the page is

[wtr-general] Re: NoSuchElementError

2018-08-27 Thread Lakshya Kapoor
I have experienced the same in IE. The exception is raised when Watir::SelectList#select attempts to read the selected value and return it while the page is refreshing. My workaround was to use element.option(text: myvalue).select and then read the value separately through element.text. Should