class Mechanize::Form::ImageButton
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”.
Attributes
Public Class Methods
Source
# File lib/mechanize/form/image_button.rb, line 9 def initialize *args @x = nil @y = nil super end
Calls superclass method
Mechanize::Form::Field::new
Public Instance Methods
Source
# File lib/mechanize/form/image_button.rb, line 15 def query_value [["#{@name}.x", (@x || 0).to_s], ["#{@name}.y", (@y || 0).to_s]] end