select_value fails in Watir 3.0.rc1
-----------------------------------
Key: WTR-498
URL: http://jira.openqa.org/browse/WTR-498
Project: Watir
Issue Type: Bug
Components: Inputs
Affects Versions: Soon
Environment: Windows Server 2008 R1 64-bit, Internet Explorer 8 32-bit
Reporter: Michael M
Priority: Blocker
The following issue is occurring with Watir 3.0.rc1, while using select_value.
The option in the select list is a regular value (not a optgroup) and it is
correctly selected before this exception occurs.
NoMethodError: undefined method `optgroup' for #<Watir::Element:0x..fb3e605c2
located=true how=nil what=nil>
C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-3.0.0.rc1/lib/watir/element.rb:518:in
`method_missing'
C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-3.0.0.rc1/lib/watir/element.rb:155:in
`to_subtype'
C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-3.0.0.rc1/lib/watir/element.rb:220:in
`parent'
C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-3.0.0.rc1/lib/watir/input_elements.rb:131:in
`select_list'
C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-3.0.0.rc1/lib/watir/input_elements.rb:99:in
`block in select'
C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-3.0.0.rc1/lib/watir/element.rb:502:in
`perform_action'
C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-3.0.0.rc1/lib/watir/input_elements.rb:96:in
`select'
C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-3.0.0.rc1/lib/watir/input_elements.rb:57:in
`each'
C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-3.0.0.rc1/lib/watir/input_elements.rb:57:in
`select_value'
Code causing the exception:
hostType = browser.select_list( :name, 'HOSTTYPE' )
hostType.select_value( 'WINNT' )
Gems:
activesupport (3.1.3)
ansi (1.4.1)
builder (3.0.0)
commonwatir (3.0.0.rc1, 2.0.4)
ffi (1.0.11)
hoe (2.12.5)
minitest (2.10.1)
multi_json (1.0.4)
nokogiri (1.5.0 x86-mingw32)
rake (0.9.2.2)
rautomation (0.6.3)
rubygems-update (1.8.15)
s4t-utils (1.0.4)
sqlite3 (1.3.5 x86-mingw32)
user-choices (1.1.6.1)
uuidtools (2.1.2)
watir (3.0.0.rc1)
win32-api (1.4.8 x86-mingw32)
win32-clipboard (0.5.2)
win32-process (0.6.5)
win32console (1.3.0 x86-mingw32)
windows-api (0.4.0)
windows-pr (1.2.1)
xml-simple (1.1.1)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.openqa.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development