51Testing软件测试论坛

标题: 元素定位 [打印本页]

作者: wenxunsheng    时间: 2015-1-9 15:40
标题: 元素定位
本帖最后由 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>






欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2