Mozilla :: Mechanize :: Guitester.

Mozilla :: Mechanize :: Guitester´Â GUI Å×½ºÆ®¸¦ ÅëÇØ Mozilla :: Mechize¸¦ Çâ»ó½ÃÅ°´Â Perl ¸ðµâÀÔ´Ï´Ù.
Áö±Ý ´Ù¿î·Îµå

Mozilla :: Mechanize :: Guitester. ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • Perl Artistic License
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Boris Sukholitko
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://search.cpan.org/~bosu/HTML-Tested-ClassDBI-0.19/lib/HTML/Tested/ClassDBI.pm

Mozilla :: Mechanize :: Guitester. ű×


Mozilla :: Mechanize :: Guitester. ¼³¸í

Mozilla :: Mechanize :: Guitester´Â GUI Å×½ºÆ®¸¦ ÅëÇØ Mozilla :: Mechize¸¦ Çâ»ó½ÃÅ°´Â Perl ¸ðµâÀÔ´Ï´Ù. Mozilla :: Mechanize :: Guitester´Â Mozilla :: GUI Testing.synopsis¸¦ »ç¿ëÇÏ¿© Mozilla :: Mozilla :: Mechester ;: Guitester; # Á¤±âÀû ÀÎ ¸ðÁú¶ó :: ±â°èÈ­ ÃʱâÈ­ My $ Mech = Mozilla :: Mechanize :: Guitester-> New (% mechanize_args); $ mech-> get_url ($ URL); # GetElementByID ¹× QueryInterface ÀÌ»óÀÇ Æí¸®ÇÑ ·¡ÆÛ My $ Elem = $ mech-> get_html_element_by_id ( "some_id"); # ¿ä¼Ò À§Ä¡ + (1, 1) $ mech-> x_click ($ Elem, 1, 1)¿¡¼­ ¸¶¿ì½º¸¦ Ŭ¸¯ÇϽʽÿÀ. # ¿ä¼Ò À§Ä¡¿¡ ºñ·ÊÇÏ¿© ¸¶¿ì½º·Î Ç÷¹ÀÌ $ mech-> x_mouse_down ($ elem, 2, 2); $ mech-> x_mouse_move ($ elem, 4, 4); $ mech-> x_mouse_up ($ elem, 4, 4); # ÀÀ¿ë ÇÁ·Î±×·¥¿¡ Å° ÀÔ·ÂÀ» º¸³» $ mech-> x_send_keys ( '{del}'); # ¿ÞÂÊ Ctrl ¹öÆ°À» ´©¸£°í ³õ½À´Ï´Ù. Áß°£À» Ŭ¸¯ ÇÒ ¼ö ÀÖ½À´Ï´Ù. $ mech-> x_press_key ( 'LCT'); $ mech-> x_release_key ( 'LCT'); # ÀϺΠJavaScript Äڵ带 ½ÇÇàÇÏ°í °á°ú Àμâ $ mech-> run_js ( 'Return "JS :"+ 2')¸¦ ÀμâÇÕ´Ï´Ù. # ID¸¦ »ç¿ëÇÏ¿© ¿ä¼Ò ½ºÅ¸ÀÏ Ã£±â $ mech-> get_element_style_by_id ( 'the_elem_id', '¹è°æ»ö'); # JavaScript ¿À·ù°¡ ÀÖ½À´Ï±î? Àμ⠴ýÆÛ ($ mech-> console_messages); # HTTP ÀÀ´ä »óÅ ã±â (HTTP ÇÁ·ÎÅäÄÝ¿¡¸¸ ÀÛµ¿) $ MECH-> »óÅ Àμâ; # Å° ´©¸£±â¸¦ º¸³»´Â ÅؽºÆ® »óÀÚ º¯°æ - ¸ðµç JS À̺¥Æ®¸¦ ¹ß»çÇÏ´Â ¸ðµç JS À̺¥Æ®°¡ ³» $ input = $ mech-> get_html_element_by_id ( "tbox", "ÀÔ·Â"); $ mech-> x_change_text ($ INPUT, "HI");ÀÌ ¸ðµâÀº Mozilla :: DHTML / JavaScript ¸®Ä¡ ÆäÀÌÁöÀÇ Å×½ºÆ®¸¦ Çã¿ëÇÏ´Â ÆíÀÇ ±â´ÉÀ» »ç¿ëÇÏ¿© Mozilla :: Mechanize¸¦ Çâ»ó½Ãŵ´Ï´Ù. X11 :: Guitest¸¦ »ç¿ëÇÏ¿© ¸¶¿ì½º Ŭ¸¯, µå·¡±× ¹× À̵¿ ¹× À̵¿ DOM TRAES.IT ¶ÇÇÑ ÆäÀÌÁö ÄÁÅؽºÆ®¿¡¼­ ÀÓÀÇÀÇ JavaScript Äڵ带 ½ÇÇàÇÏ°í °á°ú¸¦ µÇµ¹¸³´Ï´Ù. ´Ù½Ã quirements : ¡¤ perl ¿ä±¸ »çÇ× : ¡¤ Perl.


Mozilla :: Mechanize :: Guitester. °ü·Ã ¼ÒÇÁÆ®¿þ¾î