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

mechanize:Mechanize::Form::Field#query_value

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <input type="text" name="text1" /> <input type="hidden" name="hidden1" /> <textarea name="textarea1" rows="4" cols="40">foo</textarea> </form> </body> </html>>> require 'mechan…

mechanize:Mechanize::Form::Field#

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <input type="text" name="text1" /> <input type="hidden" name="hidden1" /> <textarea name="textarea1" rows="4" cols="40">foo</textarea> </form> </body> </html>>> require 'mechan…

mechanize:Mechanize::Form::Field#node

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <input type="text" name="text1" /> <input type="hidden" name="hidden1" /> <textarea name="textarea1" rows="4" cols="40">foo</textarea> </form> </body> </html>>> require 'mechan…

mechanize:Mechanize::Form::Field#value

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <input type="text" name="text1" /> <input type="hidden" name="hidden1" /> <textarea name="textarea1" rows="4" cols="40">foo</textarea> </form> </body> </html>>> require 'mechan…

mechanize:Mechanize::Form::Field#name

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <input type="text" name="text1" /> <input type="hidden" name="hidden1" /> <textarea name="textarea1" rows="4" cols="40">foo</textarea> </form> </body> </html>>> require 'mechan…

mechanize:Mechanize::Form::CheckBox#query_value

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <input type="checkbox" name="checkbox1" value="foo" />Foo <input type="checkbox" name="checkbox1" value="bar" />Bar <input type="checkbox" name="checkbox1" value="baz" />Baz </form></body></html>

mechanize:Mechanize::Form#values

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <input type="text" name="text1" /> <input type="hidden" name="hidden1" /> <textarea name="textarea1" rows="4" cols="40">foo</textarea> </form> </body> </html>>> require 'mechan…

mechanize:Mechanize::Form#texts

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <input type="text" name="text1" /> <input type="hidden" name="hidden1" /> <textarea name="textarea1" rows="4" cols="40">foo</textarea> </form> </body> </html>>> require 'mechan…

mechanize:Mechanize::Form#textareas

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <input type="text" name="text1" /> <input type="hidden" name="hidden1" /> <textarea name="textarea1" rows="4" cols="40">foo</textarea> </form> </body> </html>>> require 'mechan…

mechanize:Mechanize::Form#textarea_field?

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <input type="text" name="text1" /> <input type="hidden" name="hidden1" /> <textarea name="textarea1" rows="4" cols="40">foo</textarea> </form> </body> </html>>> require 'mechan…

mechanize:Mechanize::Form#text_field?

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <input type="text" name="text1" /> <input type="hidden" name="hidden1" /> <textarea name="textarea1" rows="4" cols="40">foo</textarea> </form> </body> </html>>> require 'mechan…

mechanize:Mechanize::Form#submits

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <input type="submit" name="SUBMIT" value="Send" /> <input type="reset" name="RESET" value="Cancel" /> </form> </body> </html>>> require 'mechanize' => true >> agent = Mechanize…

mechanize:Mechanize::Form#submit_button?

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <input type="submit" name="SUBMIT" value="Send" /> <input type="reset" name="RESET" value="Cancel" /> </form> </body> </html>>> require 'mechanize' => true >> agent = Mechanize…

mechanize:Mechanize::Form#submit

これまで submit は使ったことあったと思っていたが、それは、Mechanize#submit のようだ(呼び出し関係はあるようだけど) >> require 'mechanize' => true >> agent = Mechanize.new => #<Mechanize:0xb7484538 ... >> page = agent.get('http://google.com/') => #<Mechanize::Page {url #<URI::HTTP:0xb74740fc URL:http://www.google.co.jp/>} ... >> google_form</mechanize::page></mechanize:0xb7484538>…

mechanize:Mechanize::Form#set_fields

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <input type="hidden" name="hidden1" /> <input type="text" name="text1" /> <textarea name="textarea1" rows="4" cols="40">foo</textarea> <input type="text" name="text1" /> </form></body></html>

mechanize:Mechanize::Form#resets

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <input type="submit" value="Send" /> <input type="reset" value="Cancel" /> </form> </body> </html>>> require 'mechanize' => true >> agent = Mechanize.new => #

mechanize:Mechanize::Form#reset_button?

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <input type="submit" value="Send" /> <input type="reset" value="Cancel" /> </form> </body> </html>>> require 'mechanize' => true >> agent = Mechanize.new => #

mechanize:Mechanize::Form#request_data

いくつか確認 メソッド内で build_query() を呼んでいる メソッド内で multipart とそうでない場合を分けて処理 multipart でない場合は、Mechanize::Util.build_query_string を呼んでいるが、Mechanize::Util の prefix なしに呼べるようになぜしない? me…

mechanize:Mechanize::Form#radiobuttons_with, #radiobuttons

以下のような 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_with, #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#method_missing

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <input type="text" name="text1" /> <input type="hidden" name="hidden1" /> <textarea name="textarea1" rows="4" cols="40">foo</textarea> </form> </body> </html>>> require 'mechan…

mechanize:Mechanize::Form#keys

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <input type="text" name="text1" /> <input type="hidden" name="hidden1" /> <textarea name="textarea1" rows="4" cols="40">foo</textarea> </form> </body> </html>>> require 'mechan…

mechanize:Mechanize::Form#hiddens

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <input type="text" name="text1" /> <input type="hidden" name="hidden1" /> <textarea name="textarea1" rows="4" cols="40">foo</textarea> </form> </body> </html>>> require 'mechan…

mechanize:Mechanize::Form#hidden_field?

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <input type="text" name="text1" /> <input type="hidden" name="hidden1" /> <textarea name="textarea1" rows="4" cols="40">foo</textarea> </form> </body> </html>>> require 'mechan…

mechanize:Mechanize::Form#has_value?

以下のような 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#has_field?, #has_key?

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <input type="text" name="text1" /> <input type="hidden" name="hidden1" /> <textarea name="textarea1" rows="4" cols="40">foo</textarea> </form> </body> </html>>> require 'mechan…

mechanize:Mechanize::Form#file_uploads_with, #file_uploads

以下のような 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:0xb743a604 ... >> page = agent.get('http://127.0…</mechanize:0xb743a604>

mechanize:Mechanize::Form#file_upload_with, #file_upload

以下のような 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:0xb74b3540 ... >> page = agent.get('http://127.0…</mechanize:0xb74b3540>

mechanize:Mechanize::Form#fields_with, #fields

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <input type="text" name="text1" /> <input type="hidden" name="hidden1" /> <textarea name="textarea1" rows="4" cols="40">foo</textarea> </form> </body> </html>>> require 'mechan…

mechanize:Mechanize::Form#field_with, #field

以下のような HTML で <html> <head> <title>form test</title> </head> <body> <form method="get" action="cgi/foo00.cgi" name="form1"> <input type="text" name="text1" /> <input type="hidden" name="hidden1" /> <textarea name="textarea1" rows="4" cols="40">foo</textarea> </form> </body> </html>>> require 'mechan…