æ¦è¦ ç»é¢æä½ã¨ãã¹ãã·ããªãªãççµåã«ã§ããPageObjectãã¶ã¤ã³ãã¿ã¼ã³ã試ãããã£ãã®ã§ãæ¤ç´¢ã¯ã¼ãã«ãããããååãèªåè³¼å ¥ããAmazonã®èªåè³¼å ¥å¦çãæ¸ãã¾ããã åèãã¼ã¸ãCapybaraã«ç§»æ¤ãããã®ã«ãªãã¾ãã PageObjectãã¶ã¤ã³ãã¿ã¼ã³ã¨ã¯ å ¬å¼ã«ããã¨PageObjectãã¶ã¤ã³ãã¿ã¼ã³ã¨ã¯ã以ä¸ã ããã§ãã ã»The public methods represent the services that the page offersï¼publicã¡ã½ããã¯ããã¼ã¸ãæä¾ãããµã¼ãã¹ã表ãï¼ ã»Try not to expose the the internals of the page ï¼ãã¼ã¸ã®å é¨ãå ¬éããªããã¨ï¼ ã»Generally donât make assertions ï¼ååã¨ãã¦assertionãè¡ããªããã¨ï¼ ã»Method
ã¯ããã« ã¿ãªããããã«ã¡ã¯ï¼ ãã®è¨äºã¯ãå¿ è¦æå°éã®åªåã§æ大éå®æ¦ã§ä½¿ããç¥èãæä¾ããRSpecå ¥éè¨äºããç¥ãã¦ã使ããRSpecå ¥éãã®ç¬¬4åã§ãã ä»åã¯Capybaraã使ã£ããã£ã¼ãã£ã¹ããã¯ã«ã¤ãã¦èª¬æãã¾ãã ãã ããä»ã¾ã§ã®è¨äºã¨ã¯ç°ãªãããã£ã¼ãã£ã¹ããã¯ã®ã¤ããããããCapybaraã®ä½¿ãæ¹ãã«éç¹ãç½®ãã¾ãã ãªããªããåå人ã®çµé¨ãããã£ã¦ããã£ã¼ãã£ã¹ããã¯ã§å°ãã®ã¯ããã®ãã©ã¦ã¶ã®æä½ã£ã¦ãã©ããã£ã¦ã³ã¼ãã§è¡¨ç¾ããã®ï¼ï¼ãã¨ããã±ã¼ã¹ã大åã ããã§ãã ãã以å¤ã¯ç¬¬1åï½ç¬¬3åã®å 容ããã®ã¾ã¾å¿ç¨ã§ããã®ã§ãç¹ã«ããã£ã¼ãã£ã¹ããã¯ã ããå°ããã¨ãããã¨ã¯ãªãã¨æãã¾ãã ä»åã¯èª¬æãã主ãªé ç®ã¯ä»¥ä¸ã®éãã§ãã ãã£ã¼ãã£ã¹ããã¯ã®åºæ¬ ãã¼ã¸ã®ç§»åãç»é¢ã®ã¯ãªãã¯ããã©ã¼ã ã®æä½ãªã© ç»é¢ããã©ã¼ã ã®æ¤è¨¼ ç»é¢ã®æä½ãæ¤è¨¼ã®å¿ç¨ãã¯ãã㯠ãã®ä»
2013å¹´08æ05æ¥14:53 Ruby JavaScript Rails4 + Capybara + PhantomJS (poltergeist) ãªãã¹ãç°å¢ Rails4 ã§ã®ã¨ã³ããã¼ã¨ã³ããªãã¹ãç°å¢ãä½ã£ã¦ã¿ãã®ã§ã¡ã¢ã§ãã çµ±åãã¹ãã¨ããã° Capybara ãããªããã§ãããããã©ã«ãã 㨠JavaScript ãå®è¡ããéã«ãã©ã¤ãã¨ã㦠Selenium ã使ããã¦ãã¾ãã¾ãã Selenium ããè¯ã人ãªãã§ããããããã©ã¦ã¶ãèµ·åããã®ã§éãããããããæ¯åãã©ã¦ã¶ãèµ·åããå¿ è¦ã¯ç¡ãã®ã§ãããã¬ã¹ï¼ãã©ã¦ã¶ã®èµ·åç¡ãã« JavaScript ãå®è¡ã§ããï¼ãã©ã¤ãã«ãã¡ããã¾ãããããµã¨ãã©ã ãããã¬ã¹ãã©ã¤ãã¯ãããããããã§ãããæè¿ã¯ PhantomJS ã¨ããã©ã¤ãã©ãªãè¯ãã¿ãããªã®ã§ããã使ã£ã¦ã¿ã¾ããCapybara ãã PhantomJ
ããã³ã¾ãã¯ãRuby ã«é¢ããæè¡è¨äºã¯ãã¡ããã®ãã¨ãRubyist ã¸ã®ã¤ã³ã¿ãã¥ã¼ãã¨ãã»ã¤ããã®ä»ããå±ãããã¦ã§ãéèªã§ãã Rubyist Magazine ã«ã¤ã㦠ãRubyist Magazineããç¥ãã¦ããã³ã¾ãã¯ãRubyist ã® Rubyist ã«ãããRubyist ã¨ããã§ãªã人ã®ããã®ã¦ã§ãéèªã§ãã ææ°å· Rubyist Magazine 0064 å· ããã¯ãã³ãã¼ Rubyist Magazine 0064 å· Rubyist Magazine 0063 å· Rubyist Magazine 0062 å· Kaigi on Rails ç¹éå· RubyKaigi Takeout 2020 ç¹éå· Rubyist Magazine 0061 å· Rubyist Magazine 0060 å· RubyKaigi 2019 ç´åç¹éå· Rubyist
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}