{"id":772,"date":"2007-08-13T03:00:00","date_gmt":"2007-08-12T18:00:00","guid":{"rendered":"https:\/\/ecoop.net\/memo\/2007-08-13-3.html"},"modified":"2007-08-13T03:00:00","modified_gmt":"2007-08-12T18:00:00","slug":"2007-08-13-3","status":"publish","type":"post","link":"https:\/\/www.ecoop.net\/memo\/archives\/2007-08-13-3.html","title":{"rendered":"symfony &#8211; sfBrowser \u30e1\u30e2"},"content":{"rendered":"<p>\n\u4e00\u90e8\u3067\u3059\u304c\u3001sfBrowser \u3067\u4f7f\u3048\u308b\u30e1\u30bd\u30c3\u30c9\u3092\u30e1\u30e2\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n&nbsp;<br \/>\nsfBrowser click(string $name [, array $arguments])<br \/>\n&nbsp;$name \u3067\u6307\u5b9a\u3057\u305f\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3002\n<\/p>\n<blockquote><p>&lt;input type=&#8221;submit&#8221; value=&#8221;$name&#8221;>\n<\/p><\/blockquote>\n<p>&nbsp;\u306e\u3088\u3046\u306b\u3001value \u304c $name \u3067\u6307\u5b9a\u3057\u305f\u5024\u3068\u4e00\u81f4\u3059\u308b\u30dc\u30bf\u30f3\u3092\u30d6\u30e9\u30a6\u30b6\u3067\u30af\u30ea\u30c3\u30af\u3057\u305f\u3068\u304d\u306e\u52d5\u4f5c\u3092\u30a8\u30df\u30e5\u30ec\u30fc\u30c8\u3057\u307e\u3059\u3002setField() \u3068\u3042\u308f\u305b\u3066\u4f7f\u3044\u307e\u3059\u3002<br \/>\n&nbsp;<br \/>\nsfBrowser followRedirect()<br \/>\n&nbsp;\u30ec\u30b9\u30dd\u30f3\u30b9\u30d8\u30c3\u30c0\u306e Location \u3067\u6307\u5b9a\u3055\u308c\u305fURL\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3059\u308b<br \/>\n&nbsp;<br \/>\nsfBrowser get(string $uri [, array $parameters])<br \/>\n&nbsp;\u6307\u5b9a\u3057\u305f URL \u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u30a8\u30df\u30e5\u30ec\u30fc\u30c8\u3057\u307e\u3059\u3002<br \/>\n&nbsp;\u4f8b: \u30e2\u30b8\u30e5\u30fc\u30eb foo \u306e\u30a2\u30af\u30b7\u30e7\u30f3 index \u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002\n<\/p>\n<blockquote><p>$browser->get(&#8220;\/foo\/index&#8221;);\n<\/p><\/blockquote>\n<p>&nbsp;<br \/>\nsfWebResponse getResponse()<br \/>\n&nbsp;HTTP \u30ec\u30b9\u30dd\u30f3\u30b9\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u53d6\u5f97\u3059\u308b\u3002<br \/>\n&nbsp;> echo $browser->getResponse()->getContent();<br \/>\n&nbsp;\u3068\u3059\u308c\u3070\u3001HTML \u30bd\u30fc\u30b9\u306a\u3069\u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u672c\u4f53\u90e8\u5206\u3092\u8868\u793a\u3067\u304d\u307e\u3059\u3002<br \/>\n&nbsp;<br \/>\nsfBrowser setField($name, $value)<br \/>\n&nbsp;\u30d5\u30a9\u30fc\u30e0\u5165\u529b\u306e\u30a8\u30df\u30e5\u30ec\u30fc\u30c8\u3002\u6307\u5b9a\u3057\u305f\u540d\u524d\u306e\u5165\u529b\u6b04\u306b $value \u306e\u5024\u3092\u5165\u529b\u3057\u307e\u3059\u3002click() \u3068\u3042\u308f\u305b\u3066\u4f7f\u3044\u307e\u3059\u3002<br \/>\n&nbsp;<br \/>\n\u53c2\u8003:<br \/>\n<a href=\"http:\/\/blog.symfony.jp\/2007\/08\/22\/tagging\/#more-135\">\u30bf\u30b0\u3067\u5206\u985e\u3059\u308b\u30b7\u30b9\u30c6\u30e0\u306e\u4f5c\u308a\u65b9<\/a>(symfony\u3067\u958b\u767a\u65e5\u8a18)<br \/>\n<a href=\"http:\/\/www.symfony-project.com\/api\/symfony\/util\/sfBrowser.html\">Class sfBrowser<\/a>(symfony API)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u90e8\u3067\u3059\u304c\u3001sfBrowser \u3067\u4f7f\u3048\u308b\u30e1\u30bd\u30c3\u30c9\u3092\u30e1\u30e2\u3057\u3066\u304a\u304d\u307e\u3059\u3002 &nbsp; sfBrowser click(string $name [, array $arguments]) &nbsp;$name \u3067\u6307\u5b9a\u3057\u305f &hellip; <a href=\"https:\/\/www.ecoop.net\/memo\/archives\/2007-08-13-3.html\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">symfony &#8211; sfBrowser \u30e1\u30e2<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[32],"class_list":["post-772","post","type-post","status-publish","format-standard","hentry","tag-php"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/772","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/comments?post=772"}],"version-history":[{"count":0,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/772\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/media?parent=772"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/categories?post=772"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/tags?post=772"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}