ããã¼ã¸ãã¬ã¤ã¢ã¦ããã¦ã¿ããããã®1
ãã¼ãã«ã¬ã¤ã¢ã¦ããITpro
ãSeleniumCore0.8.0ãæ°æ©è½ï¼Cookieç³»ã³ãã³ã
Selenium Core 0.8.0ã§ã¯ãã¯ããã¼ãæ±ãã³ãã³ããæ°è¦è¿½å ããã¾ãããå 容ã¯ä»¥ä¸ã®éãã§ãã
createCookie ( nameValuePair,optionsString )
ãã¹ã対象ã®ç¾ãã¼ã¸ã¨åããã¡ã¤ã³ã¨pathã®æ°ããCookieãä½æãã¾ãã
æ示çã«pathãæå®ãããã¨ãå¯è½ã§ãã
å¼æ°èª¬æ
- nameValuePair -Cookieã®ååã¨å¤ãæ¸å¼ã¯"name=value"
- optionsString - Cookieã«å¯¾ãããªãã·ã§ã³ãç¾å¨ãµãã¼ããã¦ãããªãã·ã§ã³ã¯'path'ã¨'max_age'ãæ¸å¼ã¯"path=/path/, max_age=60"ããªãã·ã§ã³ã®è¨è¿°é çªã«é¢ä¿ãªãã'max_age'ã2çªç®ã¨ãã¦æ±ããã¾ãã
deleteCookie ( name,path )
æå®ããpathã«ããnameã¨åãCookieãåé¤ãã¾ãã
storeCookie ( variableName )
ãã¹ã対象ã¢ããªã®ç¾ãã¼ã¸ã®å ¨Cookieãåå¾ãã¾ãã
å¼æ°èª¬æ
- variableName - åå¾ããCookieãä¿æããå¤æ°å
assertCookie ( pattern )ãä»(assertNotCookieãverifyããwaitForã)
(åæç¡ã)
ç¾ãã¼ã¸ã®Cookieãæ¤è¨¼ãã¾ãã
å¼æ°èª¬æ
- pattern - ç¾ãã¼ã¸ã®Cookieæååãã¿ã¼ã³
â»(çè æ¨æ¸¬)ï¼ç¾ãã¼ã¸ã®å ¨Cookieã対象ã¨ãªãã®ã§ãè¤æ°Cookieãããå ´åã¯,åºåãã«ãããã¯ã¤ã«ãã«ã¼ãã使ç¨ããå¿ è¦ãããã¨æããã¾ãã