51TestingÈí¼þ²âÊÔÂÛ̳

 ÕÒ»ØÃÜÂë
 (×¢-²á)¼ÓÈë51Testing

QQ怬

Ö»ÐèÒ»²½£¬¿ìËÙ¿ªÊ¼

΢ÐŵǼ£¬¿ìÈËÒ»²½

ÊÖ»úºÅÂ룬¿ì½ÝµÇ¼

²é¿´: 5065|»Ø¸´: 21
´òÓ¡ ÉÏÒ»Ö÷Ìâ ÏÂÒ»Ö÷Ìâ

[Ô­´´] ÈçºÎ»ñÈ¡ÏÂÀ´²Ëµ¥µÄÖµ£¿

[¸´ÖÆÁ´½Ó]
  • TAµÄÿÈÕÐÄÇé
    ã¼ÀÁ
    2016-4-26 12:45
  • Ç©µ½ÌìÊý: 3 Ìì

    Á¬ÐøÇ©µ½: 2 Ìì

    [LV.2]²âÊÔÅų¤

    Ìøתµ½Ö¸¶¨Â¥²ã
    1#
    ·¢±íÓÚ 2012-12-24 11:07:33 | Ö»¿´¸Ã×÷Õß »ØÌû½±Àø |µ¹Ðòä¯ÀÀ |ÔĶÁģʽ
    ÓÐÕâô¸ö°´Å¥£¬µã»÷ÏÂÀ­°´Å¥£¬»áµ¯³öÏÂÀ­Öµ£¬Èç¹û»ñÈ¡

    Õâ¸öµÄhtmlµÄ´úÂëÈçÏÂ:

    ±¾Ìû×ÓÖаüº¬¸ü¶à×ÊÔ´

    ÄúÐèÒª µÇ¼ ²Å¿ÉÒÔÏÂÔØ»ò²é¿´£¬Ã»ÓÐÕʺţ¿(×¢-²á)¼ÓÈë51Testing

    x
    ·ÖÏíµ½:  QQºÃÓѺÍȺQQºÃÓѺÍȺ QQ¿Õ¼äQQ¿Õ¼ä ÌÚѶ΢²©ÌÚѶ΢²© ÌÚѶÅóÓÑÌÚѶÅóÓÑ
    ÊÕ²ØÊÕ²Ø

    ¸ÃÓû§´Óδǩµ½

    2#
    ·¢±íÓÚ 2012-12-24 11:34:18 | Ö»¿´¸Ã×÷Õß
    Õâ¸ö²»»á£¬ÖªµÀµÄÈË°ïæ½â´ðÏÂÁË~
  • TAµÄÿÈÕÐÄÇé
    ã¼ÀÁ
    2016-4-26 12:45
  • Ç©µ½ÌìÊý: 3 Ìì

    Á¬ÐøÇ©µ½: 2 Ìì

    [LV.2]²âÊÔÅų¤

    3#
     Â¥Ö÷| ·¢±íÓÚ 2012-12-24 11:34:29 | Ö»¿´¸Ã×÷Õß
    ÔÚÍøÉÏ¿´µ½ÓÃgetelementbyid·½·¨
    Set Olilist=Browser("ÈËÈËÍø - ÎÒµÄÁôÑÔ°å").Page("ÈËÈËÍø - ÎÒµÄÁôÑÔ°å").Object.getElementById("dropmenuHolder").ChildNodes.ChildNodes
    Ìáʾ¶ÔÏó²»Ö§³Ö£¬ChildNodes.ChildNodes·½·¨

    ¸ÃÓû§´Óδǩµ½

    4#
    ·¢±íÓÚ 2012-12-24 12:05:54 | Ö»¿´¸Ã×÷Õß
    Äã¿ÉÒÔÖ±½Ó¿´µã»÷ºóµ¯³öµÄÏÂÀ­²Ëµ¥Äܲ»Äܱ»SPYʶ±ðµ½¡£ÄÜʶ±ðµ½µÄ»°¾Í¿ÉÒÔÖ±½Óµ÷Óã¬Èç¹ûÒ³ÃæÖеÄÏàͬµÄÔªËؾͶ༸¸öÆ¥ÅäÖµÀ´Ê¶±ð¡£¿´¿´ÕâÑùÐв»£¿¡£¡£
  • TAµÄÿÈÕÐÄÇé
    ÎÞÁÄ
    2018-9-27 10:05
  • Ç©µ½ÌìÊý: 36 Ìì

    Á¬ÐøÇ©µ½: 1 Ìì

    [LV.5]²âÊÔÍų¤

    5#
    ·¢±íÓÚ 2012-12-24 15:44:53 | Ö»¿´¸Ã×÷Õß
    »Ø¸´ 3# СѾͷamy


        ÕâÊÇÈËÈËÍøÉϵģ¿ ¹«Ë¾¿ª²»ÁË£¬ÎÒ»ØÈ¥ÔÙ¿´ÏÂ
  • TAµÄÿÈÕÐÄÇé
    ã¼ÀÁ
    2016-4-26 12:45
  • Ç©µ½ÌìÊý: 3 Ìì

    Á¬ÐøÇ©µ½: 2 Ìì

    [LV.2]²âÊÔÅų¤

    6#
     Â¥Ö÷| ·¢±íÓÚ 2012-12-24 15:50:59 | Ö»¿´¸Ã×÷Õß
    »Ø¸´ 4# geek


        spyʶ±ð²»µ½
  • TAµÄÿÈÕÐÄÇé
    ã¼ÀÁ
    2016-4-26 12:45
  • Ç©µ½ÌìÊý: 3 Ìì

    Á¬ÐøÇ©µ½: 2 Ìì

    [LV.2]²âÊÔÅų¤

    7#
     Â¥Ö÷| ·¢±íÓÚ 2012-12-24 15:51:20 | Ö»¿´¸Ã×÷Õß
    »Ø¸´ 5# ºÚÓð¼À


        Êǵģ¬ÈËÈËÍøÉϵÄÁôÑÔ°æ

    ¸ÃÓû§´Óδǩµ½

    8#
    ·¢±íÓÚ 2012-12-24 18:01:44 | Ö»¿´¸Ã×÷Õß
    1£¬spyʶ±ð²»ÁË¡£ÊÇ˵ʶ±ð²»³É±ê×¼µÄweb¿Ø¼þ£¬»¹ÊÇ˵Äãspyµã²»ÉÏÈ¥¡£Èç¹ûÊǺóÕߣ¬ÔÚspyµÄʱºò°´×¡ctrl¿ÉÒÔ²Ù×÷Ò³Ã棬ȻºóËÉ¿ªÒ³Ãæspy²é¿´¡£
    2£¬ChildNodes.ChildNodes Ã÷ÏÔÊÇ´íµÄ£¨ÎÒûÕâôÊÔ¹ý£©£¬childNodesÊǸö¶ÔÏ󼯺ϣ¬ºó¸úchildNodes·½·¨£¬Ã»ÓÐÒÀ¾Ý¡£
    3£¬µ±Ê¹ÓÃa.b.c.d.function(e)·¢Éú´íÎó£¬ÌáÎÊʱӦ·¢³öa  b c d ¸÷¼¶¶ÔÏóµÄexistÊ**¬ÖÁÉÙÓ¦¸ø³ö×îºóÒ»²ã¶ÔÏóµÄ¸ÃÊ*¸ø³ö×îºóÒ»²ã¶ÔÏóµÄspy¡¾ºÍ¡¿QTP watchÐÅÏ¢£¬×îºÃ¸ø³ö¶ÔÏódocumentElementµÄÐÅÏ¢

    ¸ÃÓû§´Óδǩµ½

    9#
    ·¢±íÓÚ 2012-12-24 22:20:43 | Ö»¿´¸Ã×÷Õß

    ½«2¸öchildnodes·Ö¿ªÐ´¾ÍºÃÁË¡£

    ±¾Ìû×ÓÖаüº¬¸ü¶à×ÊÔ´

    ÄúÐèÒª µÇ¼ ²Å¿ÉÒÔÏÂÔØ»ò²é¿´£¬Ã»ÓÐÕʺţ¿(×¢-²á)¼ÓÈë51Testing

    x
  • TAµÄÿÈÕÐÄÇé
    ã¼ÀÁ
    2016-4-26 12:45
  • Ç©µ½ÌìÊý: 3 Ìì

    Á¬ÐøÇ©µ½: 2 Ìì

    [LV.2]²âÊÔÅų¤

    10#
     Â¥Ö÷| ·¢±íÓÚ 2012-12-25 13:53:12 | Ö»¿´¸Ã×÷Õß
    »Ø¸´ 9# Ì©È»


        µ«ÊǹؼüÊÇÕâ¸ödivûÓÐidºÅ
        Õâ¸öÔ´´úÂëÈçÏÂ

    ±¾Ìû×ÓÖаüº¬¸ü¶à×ÊÔ´

    ÄúÐèÒª µÇ¼ ²Å¿ÉÒÔÏÂÔØ»ò²é¿´£¬Ã»ÓÐÕʺţ¿(×¢-²á)¼ÓÈë51Testing

    x

    ¸ÃÓû§´Óδǩµ½

    11#
    ·¢±íÓÚ 2012-12-25 14:22:06 | Ö»¿´¸Ã×÷Õß
    ±¾²ãÔªËØûÓÐid£¬¿ÉÒÔʹÓÃÍâ²ãÔªËصÄid,±ÈÈç dropmenuHolder£¬Ô­ÀíÊÇÒ»ÑùµÄ
  • TAµÄÿÈÕÐÄÇé
    ã¼ÀÁ
    2016-4-26 12:45
  • Ç©µ½ÌìÊý: 3 Ìì

    Á¬ÐøÇ©µ½: 2 Ìì

    [LV.2]²âÊÔÅų¤

    12#
     Â¥Ö÷| ·¢±íÓÚ 2012-12-25 15:05:17 | Ö»¿´¸Ã×÷Õß
    »Ø¸´ 11# xjwldlover


       Ã÷°×ÁË£¬Ð»Ð»¡£
  • TAµÄÿÈÕÐÄÇé
    ã¼ÀÁ
    2016-4-26 12:45
  • Ç©µ½ÌìÊý: 3 Ìì

    Á¬ÐøÇ©µ½: 2 Ìì

    [LV.2]²âÊÔÅų¤

    13#
     Â¥Ö÷| ·¢±íÓÚ 2012-12-25 15:08:32 | Ö»¿´¸Ã×÷Õß
    µ«ÊÇ£¬ÎªÊ²Ã´ÔËÐеÄʱºò£¬»á±¨Õâ¸ö´íÎóÄØ£¿ÊÇÎÒµçÄÔµÄÅäÖÃÓйØϵÂð£¿

    ×îÖÕµÄдµÄ´úÂëÈçÏÂ:
    Set list=Browser("ÈËÈËÍø - ÎÒµÄÁôÑÔ°å").Page("ÈËÈËÍø - ÎÒµÄÁôÑÔ°å").Object.getElementById("dropmenuHolder").ChildNodes
    print list.item(0).Nodename
    Set list1=list.item(1).ChildNodes
    print list1.item(0).Nodename
    For i=0 to list1.length-1
      print list1.item(i).innertext
    Next
    Set list1=nothing
    Set list=nothing

    ±¾Ìû×ÓÖаüº¬¸ü¶à×ÊÔ´

    ÄúÐèÒª µÇ¼ ²Å¿ÉÒÔÏÂÔØ»ò²é¿´£¬Ã»ÓÐÕʺţ¿(×¢-²á)¼ÓÈë51Testing

    x

    ¸ÃÓû§´Óδǩµ½

    14#
    ·¢±íÓÚ 2012-12-25 16:29:48 | Ö»¿´¸Ã×÷Õß
    °²×°²¹¶¡°ü QTP_00604.EXE Ó¦¸Ã¿ÉÒÔ½â¾ö

    ¸ÃÓû§´Óδǩµ½

    15#
    ·¢±íÓÚ 2012-12-25 17:18:41 | Ö»¿´¸Ã×÷Õß
    ±¾Ìû×îºóÓÉ wuyunyue ÓÚ 2012-12-25 17:30 ±à¼­

    ÎҼǵÃÓÐÒ»¸ö·½·¨ÊÇÖ±½Ó»ñÈ¡hrefµÄ.¶ÔÓÚhrefµÄ²»ÍƼöÄãÕâôµÄÖ±½ÓץȡԪËØ.Ö±½Ó»ñÈ¡ÔªËØÁ¬½Ó¸üÖ±½Ó.select¿òÌåÊÇ¿ÉÒÔÖ±½ÓÓÃÖµÀ´Ä£Ä⶯×÷µÄ.ÎÒÒ»»áÕÒÕÒÎÒÒÔǰдµÄ½Å±¾.ת·¢¸øÄã.Ñ°ÕÒurlÀàËÆÕâÖÖ.
    String activityId =  lancer.get().getAttribute(link_xpath + "/@href")ÏÂÀ­¿òÌåµÄ¿ÉÒÔÓÃÀàËÆ:select 'generalRating',strGeneralRating.
    ¶àÕÒÕÒÄãµÄ·½·¨¡£
  • TAµÄÿÈÕÐÄÇé
    ã¼ÀÁ
    2016-4-26 12:45
  • Ç©µ½ÌìÊý: 3 Ìì

    Á¬ÐøÇ©µ½: 2 Ìì

    [LV.2]²âÊÔÅų¤

    16#
     Â¥Ö÷| ·¢±íÓÚ 2012-12-26 09:59:38 | Ö»¿´¸Ã×÷Õß
    »Ø¸´ 14# xjwldlover


       ÎÒÕâ¸öÊÇ9.2°æ±¾µÄ
  • TAµÄÿÈÕÐÄÇé
    ã¼ÀÁ
    2016-4-26 12:45
  • Ç©µ½ÌìÊý: 3 Ìì

    Á¬ÐøÇ©µ½: 2 Ìì

    [LV.2]²âÊÔÅų¤

    17#
     Â¥Ö÷| ·¢±íÓÚ 2012-12-27 14:41:09 | Ö»¿´¸Ã×÷Õß
    »Ø¸´ 14# xjwldlover


        ÎÒµÄÊÇqtp 9.2°æ±¾µÄ£¬Õâ¸ö²¹¶¡Ó¦¸ÃÊÇ10.0°æ±¾µÄ°É
  • TAµÄÿÈÕÐÄÇé
    ÎÞÁÄ
    2018-9-27 10:05
  • Ç©µ½ÌìÊý: 36 Ìì

    Á¬ÐøÇ©µ½: 1 Ìì

    [LV.5]²âÊÔÍų¤

    18#
    ·¢±íÓÚ 2012-12-27 15:19:56 | Ö»¿´¸Ã×÷Õß
    »Ø¸´ 17# СѾͷamy


        ¸Ã»»10ÁË£¬±ðÈ˶¼ÓÃÉÏ11.5ÁË¡£

    ¸ÃÓû§´Óδǩµ½

    19#
    ·¢±íÓÚ 2012-12-27 16:29:04 | Ö»¿´¸Ã×÷Õß
    ¿´¿´ÄãÊDz»ÊÇÏëÎÊÕâ¸öÎÊÌ⣺
    ÏÖÔÚÎÞ·¨ÆË×½µ½ÏÂÀ­¿òµÈ¿Ø¼þ
    ÎÒ¼òµ¥µÄдÁËһϣ¬²»¶®µÃ»°£¬¿ÉÒÔÁôÑÔºÃ
    http://bbs.51testing.com/thread-883402-1-1.html

    ¸ÃÓû§´Óδǩµ½

    20#
    ·¢±íÓÚ 2012-12-28 14:47:32 | Ö»¿´¸Ã×÷Õß
    Èç¹ûQTPʶ±ð³ö¶ÔÏóÊÇWebList£¬ÄǾͿÉÒÔÓÃÒÔϵİ취À´ÊµÏÖ£º
    Àý×Ó£º
    fromPortCount = Browser("Browser").Page("Find a Flight: Mercury").WebList("fromPort").GetROProperty("items count")
    toPortCount = Browser("Browser").Page("Find a Flight: Mercury").WebList("toPort").GetROProperty("items count")

    DataTable.AddSheet("FromPort")
    Set Sheet = DataTable.GetSheet("FromPort")
    For i=1 to fromPortCount
               fromPortName = Browser("Browser").Page("Find a Flight: Mercury").WebList("fromPort").GetItem(i)
               'Sheet.SetCurrentRow i
           Sheet.AddParameter "fromPort",fromPortName
               'DataTable.Value(i-1,"FromPort") = fromPortName
    Next

    DataTable.AddSheet("ToPort")
    Set Sheet = DataTable.GetSheet("ToPort")
    For i=1 to toPortCount
               toPortName = Browser("Browser").Page("Find a Flight: Mercury").WebList("toPort").GetItem(i)
           Sheet.AddParameter "toPort",toPortName
              'DataTable.Value(i,"ToPort") = toPortName
    Next
    ÄúÐèÒªµÇ¼ºó²Å¿ÉÒÔ»ØÌû µÇ¼ | (×¢-²á)¼ÓÈë51Testing

    ±¾°æ»ý·Ö¹æÔò

    ¹Ø±Õ

    Õ¾³¤ÍƼöÉÏÒ»Ìõ /1 ÏÂÒ»Ìõ

    СºÚÎÝ|ÊÖ»ú°æ|Archiver|51TestingÈí¼þ²âÊÔÍø ( »¦ICP±¸05003035ºÅ ¹ØÓÚÎÒÃÇ

    GMT+8, 2024-11-8 05:47 , Processed in 0.083165 second(s), 28 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

    ¿ìËٻظ´ ·µ»Ø¶¥²¿ ·µ»ØÁбí