æ¬æ¸ã¯Selenium WebDriverã使ã£ããã¹ãã®æ§ç¯æ¹æ³ããã¶ã¤ã³ãã¿ã¼ã³ãã¡ã³ããã³ã¹æ§ã«ç¦ç¹ãå½ã¦ãæ¸ç±ã§ããSeleniumã使ã£ã人ãªãããããã¹ãæã®åãå ¥ããã¹ãäºæãé¿ããã¹ãäºæããã¿ã¼ã³åãã¦ãããããã解説ãã¦ãã¾ãããã¹ãããªãã¡ã¯ã¿ãªã³ã°ããæ¹æ³ãèªåãã¹ãããã¸ã§ã¯ãã«ãããSpaghettiãã¿ã¼ã³ããã¹ããã¼ã¿ã«ã¤ãã¦ããã¹ããå®å®ãããã³ããããã«ãã¹ãã¹ã¤ã¼ããæé·ããããã³ããªã©ããã¹ãèªååè¨è¨ã«ããããã¤ã³ããå¹ åºãç´¹ä»ãã¾ãããã¹ããã©ã¯ãã£ã¹ã ãã§ãªããã¢ã³ããã¿ã¼ã³ãç´¹ä»ãã¦ããããã失æã®åå ãç¥ããé©åãªè¨è¨ãã¿ã¼ã³ãé©ç¨ãããã¨ãã§ããããã«ãªãã¾ãã ç®æ¬¡ ã¾ããã ç£è¨³è ã¾ããã ã¯ããã« 1ç« ãæåã®ãã¹ããæ¸ã 1.1ãSelenium ãé¸æãã 1.1.1ãé©æé©æ 1.1.2ãä¾¡æ ¼ 1.1.3ããªã¼ãã³ã½ã¼ã¹ 1.
æ¬æ¸ã¯ãSeleniumã®å°å ¥ã¨æ§æã®ä»æ¹ããã¹ãã®æ¸ãæ¹ã«ã¤ãã¦ãå æ¬çã«è§£èª¬ããæ¸ç±ã§ããIEãFirefoxãChromeãSafariãªã©ã®ãã©ã¦ã¶ã«å¯¾å¿ããWebDriverã®æ©è½ãããiOSã¨Androidã¢ããªã±ã¼ã·ã§ã³ã®ãã¹ããããã«UIãã¹ããã¼ã«ã®PageObjectãã¿ã¼ã³ã¾ã§ããµã³ãã«ã³ã¼ãã使ã£ã¦å ·ä½çã«èª¬æãã¾ããæ¥æ¬èªçã§ã¯çå·ç´åæ°ã«ãããCIï¼ç¶ç¶çã¤ã³ãã°ã¬ã¼ã·ã§ã³ï¼ãã¼ã«ã®æ´»ç¨ããä»é²ã¨ãã¦è¿½å ãWebã¢ããªã±ã¼ã·ã§ã³ã®UIãã¹ããèªååãããæè¡è å¿ æºã®ä¸åã§ãã 訳è ã¾ããã ã¯ããã« 1ç« WebDriverã¨WebElementã®ç´¹ä» 1.1 Seleniumã®æ´å² 1.1.1 Selenium 1ãå¥åSelenium Remote Controlãå¥å Selenium RC 1.1.2 Selenium 2ãå¥åSelenium WebD
Gebã§ãããã¬ã¹ãªWebDriverã¨ããã¨HtmlUnitãæãããã¾ãããJavaScriptã®ãµãã¼ããé常ã«å¼±ãã£ãããä½è¨ãªãã°ãåºãã¾ãã£ããã¨æ£ç´ããªãæ®å¿µãªæãã§ãã FirefoxãChromeã使ãã°ããã®ã§ãããPhantomJSãWebDriverã¨ãã¦ä½¿ããããã«ããGhost Driverãè¦ã¤ããã®ã§Gebãã使ã£ã¦ã¿ããã¨æãã¾ãã PhantomJSã®ã¤ã³ã¹ãã¼ã« ã¾ãPhantomJSæ¬ä½ãå¿ è¦ãªã®ã§ãHomeBrewçããã¤ã³ã¹ãã¼ã«ãã¦ããã¾ãããã 1 $ brew install phantomjs 1 2 $ phantomjs --version 1.9.1 å¿ è¦ãªä¾åã©ã¤ãã©ãªã«ã¤ã㦠ä»åã¯Groovyã¹ã¯ãªããããGebã使ãã¾ããGrapeã§ä¾åã©ã¤ãã©ãªãæå®ãã¾ãããã å¿ è¦ãªã®ã¯Gebæ¬ä½(geb-core)ã¨PhantomJ
Webã®ãã¹ããã¼ã« selenium IDEã®ä½¿ãæ¹ãä¸çä¸ãããããã説æãã¾ãã ãããããããããã説æãä½ã£ã人ã¯ä¸çä¸ã®ååãè²ãã®ã§æãã¦ãã ããwww ééãçããã¾ããããã³ã¡ã³ãæ¬ã«ã©ããã ããã®ãµã¤ãããã¤ã³ã¹ãã¼ã«ã§ãã¾ãã https://addons.mozilla.org/ja/firefox/addon/2079 ã¡ããä¸ã«ã¹ã¯ãã¼ã«ããã¨ã ãFirefoxã¸è¿½å ããã¿ã³ãããã®ã§ã¯ãªãã¯ãã¾ãã ã¤ã³ã¹ãã¼ã«ç¢ºèªãã¤ã¢ãã°ãåºã¦ããã®ã§ããä»ããã¤ã³ã¹ãã¼ã«ããã¯ãªãã¯ãã¾ãã ã¤ã³ã¹ãã¼ã«ä¸ã ãFirefox ãåèµ·åããã¿ã³ã§Firefoxãåèµ·åãããã°ã¤ã³ã¹ãã¼ã«ã¯å®äºã§ãã ã¾ãgoogleã§ãéãã¾ãããã Selenium IDE ãèµ·åããã¨ãã®ãã¼ã¸ããã£ãã©ã«ãã®ãã¼ã¹ãã£ã¬ã¯ããª(åºæºä½ç½®)ã«ãªãã®ã§ãã¹ãããããã¼ã¸ãæåã«é
ããªã¨ã¼ã·ã§ã³ãã¹ãã®ãã¹ãã±ã¼ã¹ãçæãã¾ã Selenium IDEã§ä½æããã·ããªãªãç¹°ãè¿ããããªã¨ã¼ã·ã§ã³ãã¹ãã®ãã¹ãã±ã¼ã¹ãçæãã¾ãã ã·ããªãªãä½ã Selenium IDEã§ä½æããã·ããªãªãè²¼ãä»ãã¦ãã ããã
Selenium Inspector binaries Source code Selenium server with Java client Selenium Inspector documentation Easy Integration with Component Libraries Selenium Inspector API allows to create testing solutions for wide variety of HTML rendering frameworks like JSF component libraries, Spring MVC, Struts, etc. Globally, you can create Java APIs for any library or abstraction. The Java API for inspectin
Selenium ProcessorWebã¢ããªã±ã¼ã·ã§ã³ã®ãã¹ãã£ã³ã°ãã¬ã¼ã ã¯ã¼ã¯seleniumã®TestCase/TestSuiteã¨ãªãHTMLãç°¡åã«çæããããã®ããã»ããµã§ã ç¹å¾´ seleniumã¯é常ã«åªããWebã¢ããªã±ã¼ã·ã§ã³ã®ãã¹ãã£ã³ã°ãã¬ã¼ã ã¯ã¼ã¯ã§ãã Selenium Selenium ver.0.5 åæã«ã¾ã¨ããµã¤ã ãã æ®å¿µãªãã¨ã«ãTestCase/TestSuiteãHTMLã®<table>ã¿ã°ã使ã£ã¦è¨è¿°ããã®ãå°ã é¢åã§ãã Selenium Processorã使ãã°ã ã¨ç°¡åãªã¿ãåºåãã®ããã¹ããç¨æããã ãã§å¿ è¦ãªTestCase/TestSuiteãèªåçæã§ãã¾ãã Selenium Processorã¯Perlã§æ¸ãããç°¡åãªã¹ã¯ãªããã§ããPerlãåä½ããç°å¢ã§ããã°ãå©ç¨ã§ãã¾ãã ãã¦ã³ãã¼ã ãã¦ã³ãã¼ãããã³ã¤ã³ã¹ã
æ¦è¦ ã³ãã³ãã¯Seleniumã«å¯¾ãã¦ã©ãåããæ示ãããã®ã§ããã³ãã³ãã«ã¯Actionã¨AccessorãAssertionã®ä¸ç¨®é¡ãããã¾ãã åã³ãã³ãã®å¼ã³åºãã¯ããã¹ãã±ã¼ã¹ã®tableã«ããã以ä¸ã®ãããªï¼ã¤ã®è¡ã§è¡¨ãã¾ãã Actionã³ãã³ãã¯ãã¢ããªã±ã¼ã·ã§ã³ã®ç¶æ ãä¸è¬ã«æä½ãããã®ã§ããActionã³ãã³ãã¯ããã®ãªã³ã¯ãã¯ãªãã¯ãããã¨ãããã®ãªãã·ã§ã³ãé¸æãããã¨ãã£ãåä½ãè¡ãã¾ããåä½ã«å¤±æããããã¨ã©ã¼ãçºçããå ´åã¯ãç¾å¨å®è¡ä¸ã®ãã¹ãã¯ä¸æ¢ããã¾ãã å¤ãã®Actionã³ãã³ãã¯"AndWait"ãµãã£ãã¯ã¹ãä»ãããã¨ãã§ãã¾ã(ä¾ãã°"clickAndWait")ããã®ãµãã£ãã¯ã¹ã¯Seleniumã«å¯¾ãã¦ãã³ãã³ããå®è¡ãã¦ãµã¼ãã¸ã®éä¿¡ãè¡ãããå¾ã«æ°ãããã¼ã¸ããã¼ããããã®ãå¾ ã¤ããã«æ示ãããã®ã§ãã Accessorã³ãã³ãã¯ã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}