51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1505|回复: 0
打印 上一主题 下一主题

元素定位

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2015-1-9 15:40:11 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 wenxunsheng 于 2015-1-9 15:54 编辑

请问懒加载的树节点怎么定位识别?

额上传不了截图,文本描述下类似于:
+XXXXX
   +xxxxxx
      +xxxxxx
      +xxxxxx


代码如下:
<DIV style="WIDTH: 210px; HEIGHT: 737px" id=ext-gen18 class="x-panel-body x-border-layout-ct">
<DIV style="WIDTH: 208px; TOP: 0px; LEFT: 0px" id=ext-comp-1101 class=" x-panel x-tree x-border-panel">
<DIV id=ext-gen35 class=x-panel-bwrap>
<DIV style="WIDTH: 208px; HEIGHT: 736px; OVERFLOW: auto" id=ext-gen36 class="x-panel-body x-panel-body-noheader">
<UL id=ext-gen37 class="x-tree-root-ct x-tree-lines">
<LI class=x-tree-node>
<DIV class="x-tree-node-el x-unselectable x-tree-node-expanded" unselectable="on" ext:tree-node-id="0"><SPAN class=x-tree-node-indent></SPAN><IMG class="x-tree-ec-icon x-tree-elbow-end-minus" alt="" src="http://avms.st.sf-express.com/avms/ext-3.4.0/resources/images/default/s.gif"><IMG class=x-tree-node-icon alt="" src="http://avms.st.sf-express.com/avms/ext-3.4.0/resources/images/default/s.gif" unselectable="on"><A hideFocus class=x-tree-node-anchor tabIndex=1 href="http://avms.st.sf-express.com/avms/vmsbase/driverImp.action#"><SPAN unselectable="on">顺丰集团</SPAN></A></DIV>
<UL style="Z-INDEX: 0; POSITION: static; DISPLAY: block; VISIBILITY: visible; TOP: auto; LEFT: auto" id=ext-gen117 class=x-tree-node-ct>
<LI class=x-tree-node>
<DIV class="x-tree-node-el x-unselectable x-tree-node-expanded x-tree-selected" unselectable="on" ext:tree-node-id="1"><SPAN class=x-tree-node-indent><IMG class=x-tree-icon alt="" src="http://avms.st.sf-express.com/avms/ext-3.4.0/resources/images/default/s.gif"></SPAN><IMG class="x-tree-ec-icon x-tree-elbow-minus" alt="" src="http://avms.st.sf-express.com/avms/ext-3.4.0/resources/images/default/s.gif"><IMG class=x-tree-node-icon alt="" src="http://avms.st.sf-express.com/avms/ext-3.4.0/resources/images/default/s.gif" unselectable="on"><A hideFocus class=x-tree-node-anchor tabIndex=1 href="http://avms.st.sf-express.com/avms/vmsbase/driverImp.action#"><SPAN unselectable="on">001/总部</SPAN></A></DIV>
<UL style="Z-INDEX: 0; POSITION: static; DISPLAY: block; VISIBILITY: visible; TOP: auto; LEFT: auto" id=ext-gen123 class=x-tree-node-ct>
<LI class=x-tree-node>
<DIV class="x-tree-node-el x-tree-node-leaf x-unselectable" unselectable="on" ext:tree-node-id="10003747006254"><SPAN class=x-tree-node-indent><IMG class=x-tree-icon alt="" src="http://avms.st.sf-express.com/avms/ext-3.4.0/resources/images/default/s.gif"><IMG class=x-tree-elbow-line alt="" src="http://avms.st.sf-express.com/avms/ext-3.4.0/resources/images/default/s.gif"></SPAN><IMG class="x-tree-ec-icon x-tree-elbow" alt="" src="http://avms.st.sf-express.com/avms/ext-3.4.0/resources/images/default/s.gif"><IMG class=x-tree-node-icon alt="" src="http://avms.st.sf-express.com/avms/ext-3.4.0/resources/images/default/s.gif" unselectable="on"><A hideFocus class=x-tree-node-anchor tabIndex=1 href="http://avms.st.sf-express.com/avms/vmsbase/driverImp.action#"><SPAN unselectable="on">000/全网</SPAN></A></DIV>
<UL style="DISPLAY: none" class=x-tree-node-ct></UL></LI>
<LI class=x-tree-node>
<DIV class="x-tree-node-el x-tree-node-leaf x-unselectable" unselectable="on" ext:tree-node-id="10014598143485"><SPAN class=x-tree-node-indent><IMG class=x-tree-icon alt="" src="http://avms.st.sf-express.com/avms/ext-3.4.0/resources/images/default/s.gif"><IMG class=x-tree-elbow-line alt="" src="http://avms.st.sf-express.com/avms/ext-3.4.0/resources/images/default/s.gif"></SPAN><IMG class="x-tree-ec-icon x-tree-elbow" alt="" src="http://avms.st.sf-express.com/avms/ext-3.4.0/resources/images/default/s.gif"><IMG class=x-tree-node-icon alt="" src="http://avms.st.sf-express.com/avms/ext-3.4.0/resources/images/default/s.gif" unselectable="on"><A hideFocus class=x-tree-node-anchor tabIndex=1 href="http://avms.st.sf-express.com/avms/vmsbase/driverImp.action#"><SPAN unselectable="on">8315/总部监控部</SPAN></A></DIV>
<UL style="DISPLAY: none" class=x-tree-node-ct></UL></LI>
<LI class=x-tree-node>

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

本版积分规则

关闭

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

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

GMT+8, 2024-11-8 13:53 , Processed in 0.063307 second(s), 23 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

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