Class WWW::Mechanize::ImageButton
In: lib/mechanize/form_elements.rb
Parent: Button
Mechanize\n[lib/mechanize.rb\nlib/mechanize/cookie.rb\nlib/mechanize/errors.rb\nlib/mechanize/form.rb\nlib/mechanize/form_elements.rb\nlib/mechanize/history.rb\nlib/mechanize/list.rb\nlib/mechanize/page.rb\nlib/mechanize/page_elements.rb\nlib/mechanize/pluggable_parsers.rb] lib/mechanize.rb WWW dot/m_19_0.png

This class represents an image button in a form. Use the x and y methods to set the x and y positions for where the mouse "clicked".

Methods

new   query_value  

Attributes

x  [RW] 
y  [RW] 

Public Class methods

[Source]

    # File lib/mechanize/form_elements.rb, line 54
54:     def initialize(name, value)
55:       @x = nil
56:       @y = nil
57:       super(name, value)
58:     end

Public Instance methods

[Source]

    # File lib/mechanize/form_elements.rb, line 60
60:     def query_value
61:         super <<
62:          [@name + ".x", (@x || 0).to_s] <<
63:          [@name + ".y", (@y || 0).to_s]
64:     end

[Validate]