Hi Mathew,

Please reply to the list so that others can also get benefit from this.

Not sure why you are getting the error, Is this selectbox or the HTML code
that you have send is inside a Frame?

- Angrez

On 3/20/07, Mathew Jacob <[EMAIL PROTECTED]> wrote:

 Hi Angrez,



          I am not able to select any of the  button. "ie.select_list(:name,
"top_read_unread").select("Mark as Read")" statement creates following
error.



         c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1928:in `assert_exists':
Unable to locate object, using name and top_read_unread
(Watir::Exception::UnknownObjectException)

            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 ./MongoFnDef.rb:114:in `markasUnread'

            from C:/Program Files/Watir/examples/MongoMain.rb:47

*Regards,*

*Mathew*


*Ya**ho**o India, EGL, Bangalore – 71, Phone:+91-80-30516346,
Mobile:+91-9945849925*
  ------------------------------

*From:* Angrez Singh [mailto:[EMAIL PROTECTED]
*Sent:* Tuesday, March 20, 2007 5:54 PM
*To:* [email protected]
*Cc:* Mathew Jacob
*Subject:* Re: [Wtr-general] 'getObject' command



Hi Mathew,

You can click on the buttons that display Delete, Spam etc using:
ie.button(:value, "Delete").

So all <input type="submit"> tags you can access using this way.

If you want to select an option like 'Mark as Read' you can use:
ie.select_list(:name, "top_read_unread").select("Mark as Read")

Let me know if this works.

Regards,
Angrez

On 3/20/07, *Mathew Jacob* <[EMAIL PROTECTED]> wrote:

Hi Angrez,



             Thanks your response. I wanted to simulate the operation to
click on Menu button. It displays button menu. Then I need to click on any
of the option in button menu.



Regards,



Mathew





* *


*Ya ho**o India, EGL, Bangalore – 71, Phone:+91-80-30516346,
Mobile:+91-9945849925*
  ------------------------------

*From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
*On Behalf Of *Angrez Singh
*Sent:* Tuesday, March 20, 2007 5:08 PM


*To:* [email protected]
*Subject:* Re: [Wtr-general] 'getObject' command



Hi Mathew,

What you want to select in the menubutton? What operation you want to do?
The HTML contains usual <select> and <input> control that you can access
using ie.select_list and ie.button respectively.

Let me know what you want to do so that I can help you further.

Regards,
Angrez

On 3/20/07, *Mathew Jacob* < [EMAIL PROTECTED]> wrote:

Hi Angrez,

               It is an object 'Menu button'. This object is an Menu
Button and contains two options on it. Attached is the HTML code of this
button.



div>

    <noscript>

    <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)">        <select
name="top_move_select" style="width:125px" class="dropdown">



*Regards,*

*Mathew*

* *

* *


*Ya ho **o India, EGL, Bangalore – 71, Phone:+91-80-30516346,
Mobile:+91-9945849925*
  ------------------------------

*From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
*On Behalf Of *Angrez Singh
*Sent:* Friday, March 16, 2007 6:23 PM
*To:* [email protected]
*Subject:* Re: [Wtr-general] 'getObject' command



Hi,

Can you be more specific like what kind of object is it? Whats the HTML of
the page? etc etc.
The information you provided is not sufficient enough for anyone to be
able to help you.

Regards,
Angrez

On 3/16/07, *Mathew Jacob* <[EMAIL PROTECTED]> wrote:

There is one object in browser page. Can I use the command
 'getObject(how, what, types, value=nil)' to recognize that object. How we
can implement this.



mjk





* *


*Ya ho **o India, EGL, Bangalore – 71, Phone:+91-80-30516346,
Mobile:+91-9945849925*




_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general







_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to