2010-11-01から1ヶ月間の記事一覧

mechanize:Mechanize::File#uri

>> require 'mechanize' => true >> agent = Mechanize.new => #<Mechanize:0xb743b234 ... >> agent.get('http://www.google.co.jp/intl/en_com/images/srpr/logo1w.png').class => Mechanize::File >> agent.get('http://www.google.co.jp/intl/en_com/images/srpr/logo1w.png').uri =</mechanize:0xb743b234>…

mechanize:pp

inspect.rb で pp が読み込まれているや〜 >> require 'mechanize' => true >> PP => PP

mechanize:Mechanize::Form::SelectList#value, #value=

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <select name="select1"> <option>1</option> <option>2</option> </select> <select name="select2" multiple> <option>foo</option> <option>bar</option> </select> </form> </body> </html>

mechanize:Mechanize::Form::SelectList#query_value

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <select name="select1"> <option>1</option> <option>2</option> </select> <select name="select2" multiple> <option>foo</option> <option>bar</option> </select> </form> </body> </html>

mechanize:Mechanize::Form::SelectList#options_with

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <select name="select1"> <option>1</option> <option>2</option> </select> <select name="select2" multiple> <option>foo</option> <option>bar</option> </select> </form> </body> </html>

mechanize:Mechanize::Form::SelectList#option_with

MultiSelectList から継承しているようだ以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <select name="select1"> <option>1</option> <option>2</option> </select> <select name="select2" multiple> <option>foo</option> <option>bar</option> </select></form></body></html>

mechanize:Mechanize::Form::RadioButton#uncheck

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <input type="radio" name="radio1" value="foo" checked="checked" />Foo <input type="radio" name="radio1" value="bar" />Bar </form> </body> </html>>> require 'mechanize' => true …

mechanize:Mechanize::Form::RadioButton#text

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <input type="radio" name="radio1" value="foo" checked="checked" />Foo <input type="radio" name="radio1" value="bar" />Bar </form> </body> </html>>> require 'mechanize' => true …

mechanize:Mechanize::Form::RadioButton#label

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <input type="radio" name="radio1" value="foo" checked="checked" />Foo <input type="radio" name="radio1" value="bar" />Bar </form> </body> </html>>> require 'mechanize' => true …

mechanize:Mechanize::Form::RadioButton#click

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <input type="radio" name="radio1" value="foo" checked="checked" />Foo <input type="radio" name="radio1" value="bar" />Bar </form> </body> </html>>> require 'mechanize' => true …

mechanize:Mechanize::Form::RadioButton#check

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <input type="radio" name="radio1" value="foo" checked="checked" />Foo <input type="radio" name="radio1" value="bar" />Bar </form> </body> </html>>> require 'mechanize' => true …

mechanize:Mechanize::Form::RadioButton#[]

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <input type="radio" name="radio1" value="foo" checked="checked" />Foo <input type="radio" name="radio1" value="bar" />Bar </form> </body> </html>>> require 'mechanize' => true …

mechanize:Mechanize::Form::RadioButton#checked

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <input type="radio" name="radio1" value="foo" checked="checked" />Foo <input type="radio" name="radio1" value="bar" />Bar </form> </body> </html>>> require 'mechanize' => true …

mechanize:Mechanize::Form::Option#unselect, #untick

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <select name="select1"> <option>1</option> <option>2</option> </select> <select name="select2" multiple> <option>foo</option> <option>bar</option> </select> </form> </body> </html>

mechanize:Mechanize::Form::Option#select, #tick

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <select name="select1"> <option>1</option> <option>2</option> </select> <select name="select2" multiple> <option>foo</option> <option>bar</option> </select> </form> </body> </html>

mechanize:Mechanize::Form::Option#click

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <select name="select1"> <option>1</option> <option>2</option> </select> <select name="select2" multiple> <option>foo</option> <option>bar</option> </select> </form> </body> </html>

mechanize:Mechanize::Form::Option#select_list

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <select name="select1"> <option>1</option> <option>2</option> </select> <select name="select2" multiple> <option>foo</option> <option>bar</option> </select> </form> </body> </html>

mechanize:Mechanize::Form::Option#text

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <select name="select1"> <option>1</option> <option>2</option> </select> <select name="select2" multiple> <option>foo</option> <option>bar</option> </select> </form> </body> </html>

mechanize:Mechanize::Form::Option#selected

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <select name="select1"> <option>1</option> <option>2</option> </select> <select name="select2" multiple> <option>foo</option> <option>bar</option> </select> </form> </body> </html>

mechanize:Mechanize::Form::Option#value

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <select name="select1"> <option>1</option> <option>2</option> </select> <select name="select2" multiple> <option>foo</option> <option>bar</option> </select> </form> </body> </html>

mechanize:Mechanize::Form::MultiSelectList#value, #value=

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <select name="select1"> <option>1</option> <option>2</option> </select> <select name="select2" multiple> <option>foo</option> <option>bar</option> </select> </form> </body> </html>

mechanize:Mechanize::Form::MultiSelectList#selected_options

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <select name="select1"> <option>1</option> <option>2</option> </select> <select name="select2" multiple> <option>foo</option> <option>bar</option> </select> </form> </body> </html>

mechanize:Mechanize::Form::MultiSelectList#select_none

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <select name="select1"> <option>1</option> <option>2</option> </select> <select name="select2" multiple> <option>foo</option> <option>bar</option> </select> </form> </body> </html>

mechanize:Mechanize::Form::MultiSelectList#select_all

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <select name="select1"> <option>1</option> <option>2</option> </select> <select name="select2" multiple> <option>foo</option> <option>bar</option> </select> </form> </body> </html>

mechanize:Mechanize::Form::MultiSelectList#query_value

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <select name="select1"> <option>1</option> <option>2</option> </select> <select name="select2" multiple> <option>foo</option> <option>bar</option> </select> </form> </body> </html>

mechanize:Mechanize::Form::MultiSelectList#options

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <select name="select1"> <option>1</option> <option>2</option> </select> <select name="select2" multiple> <option>foo</option> <option>bar</option> </select> </form> </body> </html>

mechanize:Mechanize::Form::ImageButton#query_value

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <input type="image" src="foo1.png" name="image1" /> <input type="image" src="foo2.png" name="image2" /> </form> </body> </html>>> require 'mechanize' => true >> agent = Mechani…

mechanize:Mechanize::Form::ImageButton#x, #y

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <input type="image" src="foo1.png" name="image1" /> <input type="image" src="foo2.png" name="image2" /> </form> </body> </html>>> require 'mechanize' => true >> agent = Mechani…

mechanize:Mechanize::Form::FileUpload#mime_type

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <input type="file" name="File" /> </form> </body> </html>>> require 'mechanize' => true >> agent = Mechanize.new => #<Mechanize:0xb74d85ac ... >> page = agent.get('http://127.0…</mechanize:0xb74d85ac>

mechanize:Mechanize::Form::FileUpload#file_name

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <input type="file" name="File" /> </form> </body> </html>>> require 'mechanize' => true >> agent = Mechanize.new => #<Mechanize:0xb741d540 ... >> page = agent.get('http://127.0…</mechanize:0xb741d540>