Titus and Justin,

The line of code I executed
@b.select_list(id: "salutation").select value["User Title"] //value["User 
Title"]="Mr"




Error I get

2018-12-20 15:24:44 WARN Watir [DEPRECATION] ["stale_exists"] Checking 
`#exists? == false` to determine a stale element is deprecated. Use `#stale? == 
true` instead; see explanation for this deprecation: 
http://watir.com/staleness-changes.
Traceback (most recent call last):
 9: from C:/A/Singlife_1302__$change/Latest18062018.rb:29:in `<main>'
 8: from C:/A/Singlife_1302__$change/Latest18062018.rb:29:in `each'
 7: from C:/A/Singlife_1302__$change/Latest18062018.rb:80:in `block in <main>'
 6: from 
C:/Ruby25/lib/ruby/gems/2.5.0/gems/watir-6.16.0/lib/watir/elements/select.rb:33:in
 `select'
 5: from 
C:/Ruby25/lib/ruby/gems/2.5.0/gems/watir-6.16.0/lib/watir/elements/select.rb:33:in
 `map'
 4: from 
C:/Ruby25/lib/ruby/gems/2.5.0/gems/watir-6.16.0/lib/watir/elements/select.rb:33:in
 `block in select'
 3: from 
C:/Ruby25/lib/ruby/gems/2.5.0/gems/watir-6.16.0/lib/watir/elements/select.rb:145:in
 `select_by'
 2: from 
C:/Ruby25/lib/ruby/gems/2.5.0/gems/watir-6.16.0/lib/watir/elements/select.rb:201:in
 `find_options'
 1: from 
C:/Ruby25/lib/ruby/gems/2.5.0/gems/watir-6.16.0/lib/watir/elements/select.rb:218:in
 `rescue in find_options'
C:/Ruby25/lib/ruby/gems/2.5.0/gems/watir-6.16.0/lib/watir/elements/select.rb:223:in
 `raise_no_value_found': "Mr" not found in #<Watir::Select: located: false; 
{:id=>"salutation", :tag_name=>"select"}> 
(Watir::Exception::NoValueFoundException)




The gist url for detailed log

https://gist.github.com/Rajagopalan-M/61f46359b9bdf3b76dc472a09271b13b




On Wednesday, 19 December 2018 20:20:20 UTC+5:30, Justin Ko wrote:
>
> Can you elaborate on what is not working?
>
> I get the same behaviour in 6.14 and 6.16 when running the below script - 
> ie `browser.select_list.select` does not select anything.
>
> gem 'watir', '=6.14'
> require 'watir'
>
> browser = Watir::Browser.new
> browser.goto 'test_page.html'
>
> browser.select_list.select('b')
> p browser.select_list.selected_options.map(&:text)
> #=> ["b"]
>
> browser.select_list.select
> p browser.select_list.selected_options.map(&:text)
> #=> ["b"]
>
> Thanks,
> Justin
>
>
> On Wednesday, December 19, 2018 at 5:45:43 AM UTC-5, 
> [email protected] wrote:
>>
>> hi Titus,
>>
>> b.select_list().select is not working in 6.16 but it's working 6.14. 
>>
>> So I have written 
>>
>> `b.select_list().option.select` and it's working fine. So it's a clear 
>> bug in WATIR 6.16
>>
>

-- 
-- 
Before posting, please read 
https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group.
 
In short: search before you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]
--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to