ããã«ã¡ã¯ãTypePadã®QAãæ å½ãã¦ããå±±å£ã§ããä»åã¯Watirã使ã£ããã¹ãã®èªååã®è©±ã®ç¬¬äºå¼¾ã¨ãã¦ãwatirã®ã¤ã³ã¹ãã¼ã«ã«ã¤ãã¦è©±ããããã¨æãã¾ãã ã¯ããã« ç§ã¯watir以å¤ã§ã¯rubyã使ãã¾ããããã®ããç§ã®rubyã®ç¥èã¯ãwatirã使ãããã«å¿ è¦ãªæå°éã®ç¥èãã¨ãããã¨ãåæã«èªãã§ããã ããã°ã¨æãã¾ããããã§æ¸ãããæ¹æ³ãããè¯ãæ¹æ³ãããã¨æãã¾ããããããããã§ã¯ããã追æ±ãã¾ãããéè¦ãªã®ã¯ãæ·±ãæ´ç·´ãããrubyã®ç¥èã§ã¯ãªãããã¹ããèªååããããã«å¿ è¦ååãªç¥èã§ããããã§ãï¼ã¨ã¯ãããããè¯ãæ¹æ³ãããã°ãã²ã³ã¡ã³ãããã ããï¼ï¼ï¼ã Rubyã®ã¤ã³ã¹ãã¼ã« Rubyãã¤ã³ã¹ãã¼ã«ããã¦ããªãå ´åã¯ãã¾ãRubyãã¤ã³ã¹ãã¼ã«ãã¾ããWindowsã«Rubyãã¤ã³ã¹ãã¼ã«ããã«ã¯ãOne-Click Ruby Installer for
Watirã¨ãããã¼ã«ãç¥ãã¾ãããWindowsä¸ã§IEã®æä½ãèªååããããã®ã¿ããã§ãã ã¯ã¦ãªã¸ãã°ã¤ã³ãã¦æ¥è¨ç·¨éã®ç»é¢ã¾ã§ããã¹ã¯ãªãããæ¸ãã¦ã¿ã¾ãããã©ããã®ã¾ãã¾ã§ãããé常ã«ç°¡åã ãã®ã¹ã¯ãªããã§ã¯ãã°ã¤ã³ããå¾ã®ç»é¢ã®åãæ¿ããã«æéãããã£ãã®ã§sleepãå ¥ãã¾ãããã©ãã£ã¨ã¡ããã¨ããæ¹æ³ãããããã§ããã ã¨ããããåãæ¿ãå¾ã®ãã¼ã¸ã¿ã¤ãã«ãåå¾ã§ãããã¨IE.waitãå®æ½ããã¨åãã¾ãããIE.waitã ãã§ãåãããã§ãã次ã®åä½ã®ãªã³ã¯å ããªãã¨ããã¨ã©ã¼ã«ãªã£ã¦ãã¾ãã¾ããã Tutorial(http://wiki.openqa.org/display/WTR/Tutorial) Watir API Reference(http://wtr.rubyforge.org/rdoc/) require 'rubygems' require 'wat
Last-modified: Sun, 22 Jun 2008 11:55:39 JST (101d) IEã®windowã表ã«åºã $ie.bring_to_front tableã®è§£é http://wiki.openqa.org/display/WTR/Cheat+Sheet ãã td = $browser.table(:name, 'recent_records')[2][1] ã¡ãã£ã¨å¿ç¨ãã¦ãYahooJapanã®è¿·æã¡ã¼ã«(2008/02/24)ã® ä¸è¦§ãè¦ããã«ã¯ã ..ç¥ $ie.table(:id, 'datatable').rows.each { |r| checkBox = r[1] from = r[2] subj = r[3] date = r[4] print "from=#{from}, subj=#{subj}, date=#{date}\n" } ã¨ã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}