51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1903|回复: 1
打印 上一主题 下一主题

[原创] 同一页面的链接为什么会变?

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2006-12-21 18:19:31 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
If not( Browser("Login").Page("Main").Link("申请单派发").Exist(1)) then
           result=false
        end if
         msgbox cstr(result)
        If not(Browser("Login").Page("Main").Link("申请单查询").Exist(1)) then
            result=false
        end if
         msgbox cstr(result)
        If not(Browser("Login").Page("Main").Link("申请单跟踪").Exist(1))then
           result=false
        end if
         msgbox cstr(result)
        If not(Browser("Login").Page("Main").Link("无线工单派发").Exist(1)) Then
         result=false
        End If
   
         msgbox cstr(result)

         If not(Browser("Login").Page("Main").Link("废弃工单列表").Exist(1))then
          result=false
        End If
         msgbox cstr(result)
         wait(4)
        If not(Browser("Login").Page("Main").Link("常规资产列表").Exist(2)) Then
         result=false
        End If
        If not(Browser("Login").Page("Main").Link("工单占用资产列表").Exist(2)) Then
         result=false
        End If
        wait(4)
        If not(Browser("Login").Page("Main").Link("待定资产列表").Exist(2)) Then
          result=false
        End If
        If not(Browser("Login").Page("Main").Link("已删除资产列表").Exist(2)) Then
          result=false
        End If
        wait(4)
        msgbox cstr(result)
        If not(Browser("Login").Page("Main").Link("报废资产列表").Exist(2)) Then
          result=false
        End If
         msgbox cstr(result)
        If not(Browser("Login").Page("Main").Link("调出本公司资产列表").Exist(1)) Then
         result=false
        End If
有时候前面4-5个存在,有时就只有前3个存在,为什么会出现这种情况啊?
下面的是HTML
  <td class="MainTitle" nowrap="true" style="height:20px;">工单管理</td>
</tr><tr>
  <td nowrap="true" Id="TitleTextStyle"   style="height:20px;border:1px solid #F7F3F7;"><table border=0 cellpadding="0" cellspacing="0" width=100%><tr><td><a href='#'>调整工单派发</a></td><td align="right"><img src="http://192.168.1.251/Images/arrow.gif" border="0" height="7" /><td></tr></table></td>
</tr><tr>
  <td nowrap="true" Id="TitleTextStyle"   style="height:20px;border:1px solid #F7F3F7;"><table border=0 cellpadding="0" cellspacing="0" width=100%><tr><td><a href='#'>调度工单派发</a></td><td align="right"><img src="http://192.168.1.251/Images/arrow.gif" border="0" height="7" /><td></tr></table></td>
</tr><tr>
  <td nowrap="true" Id="TitleTextStyle"   style="height:20px;border:1px solid #F7F3F7;"><table border=0 cellpadding="0" cellspacing="0" width=100%><tr><td><a href='#'>调拨工单派发</a></td><td align="right"><img src="http://192.168.1.251/Images/arrow.gif" border="0" height="7" /><td></tr></table></td>
</tr><tr>
  <td nowrap="true" Id="TitleTextStyle"   style="height:20px;border:1px solid #F7F3F7;"><table border=0 cellpadding="0" cellspacing="0" width=100%><tr><td><a href='#'>报废工单派发</a></td><td align="right"><img src="http://192.168.1.251/Images/arrow.gif" border="0" height="7" /><td></tr></table></td>
</tr><tr>
  <td nowrap="true" Id="TitleTextStyle"    style="height:20px;border:1px solid #F7F3F7;"><a href='WorkBill/History/WorkBillList.aspx' target='mainFrame'>工单查询</a></td>
</tr><tr>
  <td nowrap="true" Id="TitleTextStyle"    style="height:20px;border:1px solid #F7F3F7;"><a href='WorkBill/History/DeletedWorkBillList.aspx' target='mainFrame'>废弃工单列表</a></td>
</tr><tr>
  <td nowrap="true" style="height:20px;"><hr size=1 class="MainPanelSplit"></td>
</tr><tr>
  <td class="MainTitle" nowrap="true" style="height:20px;">机房资源管理</td>
</tr><tr>
  <td nowrap="true" Id="TitleTextStyle"    style="height:20px;border:1px solid #F7F3F7;"><a href='HouseResources/Send/SendHouseResource.aspx' target='mainFrame'>申请单派发</a></td>
</tr><tr>
  <td nowrap="true" Id="TitleTextStyle"    style="height:20px;border:1px solid #F7F3F7;"><a href='HouseResources/Browse/BrowseHouseResource.aspx' target='mainFrame'>申请单查询</a></td>
</tr><tr>
  <td nowrap="true" Id="TitleTextStyle"    style="height:20px;border:1px solid #F7F3F7;"><a href='HouseResources/Follow/FollowHouseResource.aspx' target='mainFrame'>申请单跟踪</a></td>
</tr><tr>
  <td nowrap="true" style="height:20px;"><hr size=1 class="MainPanelSplit"></td>
</tr><tr>
  <td class="MainTitle" nowrap="true" style="height:20px;">资产管理</td>
</tr><tr>
  <td nowrap="true" Id="TitleTextStyle"   style="height:20px;border:1px solid #F7F3F7;"><table border=0 cellpadding="0" cellspacing="0" width=100%><tr><td><a href='#'>机房管理</a></td><td align="right"><img src="http://192.168.1.251/Images/arrow.gif" border="0" height="7" /><td></tr></table></td>
</tr><tr>
  <td nowrap="true" Id="TitleTextStyle"   style="height:20px;border:1px solid #F7F3F7;"><table border=0 cellpadding="0" cellspacing="0" width=100%><tr><td><a href='#'>网元管理</a></td><td align="right"><img src="http://192.168.1.251/Images/arrow.gif" border="0" height="7" /><td></tr></table></td>
</tr><tr>
  <td nowrap="true" Id="TitleTextStyle"   style="height:20px;border:1px solid #F7F3F7;"><table border=0 cellpadding="0" cellspacing="0" width=100%><tr><td><a href='#'>小区管理</a></td><td align="right"><img src="http://192.168.1.251/Images/arrow.gif" border="0" height="7" /><td></tr></table></td>
</tr><tr>
  <td nowrap="true" Id="TitleTextStyle"   style="height:20px;border:1px solid #F7F3F7;"><table border=0 cellpadding="0" cellspacing="0" width=100%><tr><td><a href='#'>基站管理</a></td><td align="right"><img src="http://192.168.1.251/Images/arrow.gif" border="0" height="7" /><td></tr></table></td>
</tr><tr>
  <td nowrap="true" Id="TitleTextStyle"   style="height:20px;border:1px solid #F7F3F7;"><table border=0 cellpadding="0" cellspacing="0" width=100%><tr><td><a href='#'>仓库管理</a></td><td align="right"><img src="http://192.168.1.251/Images/arrow.gif" border="0" height="7" /><td></tr></table></td>
</tr><tr>
  <td nowrap="true" Id="TitleTextStyle"   style="height:20px;border:1px solid #F7F3F7;"><table border=0 cellpadding="0" cellspacing="0" width=100%><tr><td><a href='#'>资产管理</a></td><td align="right"><img src="http://192.168.1.251/Images/arrow.gif" border="0" height="7" /><td></tr></table></td>
</tr><tr>
  <td nowrap="true" style="height:20px;"><hr size=1 class="MainPanelSplit"></td>
</tr><tr>
  <td class="MainTitle" nowrap="true" style="height:20px;">数据导入</td>
</tr><tr>
  <td nowrap="true" Id="TitleTextStyle"    style="height:20px;border:1px solid #F7F3F7;"><a href='DataImport/DataImport.aspx' target='mainFrame'>数据导入</a></td>
</tr><tr>
  <td nowrap="true" style="height:20px;"><hr size=1 class="MainPanelSplit"></td>
</tr><tr>
  <td class="MainTitle" nowrap="true" style="height:20px;">基础数据管理</td>
</tr><tr>
  <td nowrap="true" Id="TitleTextStyle"   style="height:20px;border:1px solid #F7F3F7;"><table border=0 cellpadding="0" cellspacing="0" width=100%><tr><td><a href='#'>网元类型管理</a></td><td align="right"><img src="http://192.168.1.251/Images/arrow.gif" border="0" height="7" /><td></tr></table></td>
</tr><tr>
  <td nowrap="true" Id="TitleTextStyle"   style="height:20px;border:1px solid #F7F3F7;"><table border=0 cellpadding="0" cellspacing="0" width=100%><tr><td><a href='#'>室内站类型管理</a></td><td align="right"><img src="http://192.168.1.251/Images/arrow.gif" border="0" height="7" /><td></tr></table></td>
</tr><tr>
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2006-12-21 20:04:19 | 只看该作者
个人意见:可以通过数据库的数据进行判断,返回相应的值。
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-9-21 04:12 , Processed in 0.086920 second(s), 28 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表