Hi ZeljkoFilipin,
The extra space is not the issue(that was a typo). However, the error from the 
irbconsole is :

irb(main):011:0> ie.select_list(:name,"top_read_unread").select("Mark as Read")
Watir::Exception::UnknownObjectException: Unable to locate object, using name 
and top_read_unread
        from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1928:in `assert_exists'
        from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2940:in 
`select_item_in_select_list'
        from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2925:in `select'
        from (irb):11
what else could be wrong?...
-------------------------------------------------------------------------------------------------------
"Mark" is a drop down button in a page with 2 options "Mark as Read" and "Mark 
as Unread".
I am able to click on the Mark button by $ie.button.(:name, 
"top_bpress_topmark").click, but am unable to select the options. 
$ie.select_list(:name,"top_read_unread").select("Mark as  Unread") results in 
undefined object method.. 

The relevant html of the page for your reference is#
<div id="contentbuttonbartop" class="contentbuttonbar">
    <span class="first">        <input type="submit" class="inputbutton" 
name="top_bpress_delete"
        value ="Delete" 
        title="Delete selected Message(s)">        <input type="submit" 
class="inputbutton" name="top_bpress_spam"
        value="Spam" 
        title="Mark selected Message(s) as Spam">        <select 
name="top_read_unread" class="dropdown">
        <option value="0">Mark as Unread</option>
        <option value="1">Mark as Read</option>
        </select>
        <input type="submit" class="inputbutton" name="top_bpress_topmark"
        value = "Mark"
        title="Mark selected Message(s)">


 
____________________________________________________________________________________
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.
http://videogames.yahoo.com/platform?platform=120121
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to