51Testing软件测试论坛
标题:
动态属性值如何获取(附探测结果)
[打印本页]
作者:
ChanJian910
时间:
2008-8-10 13:11
标题:
动态属性值如何获取(附探测结果)
小弟遇到的问题:页面上存在一个链接,其HTMLText=待处理工单(*/*),而两个*号代表数字,是不断变化的,比如这次登陆的时候可能是(1/1),下次登陆的时候便可能是(2/0),也就是说,这是一个HTMLText值不断变化的HTMLLink,脚本的操作实现方式是,必须点击这个变化的链接才能展开一个新的页面,请问如何实现这个操作?
Ps:下附Inspector探测结果,求高人解答!
HTMLLink,HTMLText=待处理工单(6/3)
Contents
HTML Text
Filtered Contents
Properties
id =
tagName = A
title =
language =
sourceIndex = 25
lang =
offsetLeft = 48
offsetTop = 53
offsetWidth = 115
offsetHeight = 16
innerHTML = <IMG id=tree_icon_1 style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; WIDTH: 19px; BORDER-BOTTOM: 0px; HEIGHT: 16px" src="/fbrole/main/treemenu/images/menuleaf.gif" align=absBottom><FONT style="FONT-SIZE: 12px"> 待处理工单(6/3)<
innerText = 待处理工单(6/3)
outerHTML = <A style="FONT-SIZE: 12px; COLOR: #000; TEXT-DECORATION: none" href="pkgQueryFaultListen.prFaultListen.prQueryAction.do" target=rightWorkSpace><IMG id=tree_icon_1 style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; WIDTH: 19px; BORDER-BOTTOM: 0px; HEIGHT: 16px" src="/fbrole/main/treemenu/images/menuleaf.gif" align=absBottom><FONT style="FONT-SIZE: 12px"> 待处理工单(6/3)</FONT></A>
outerText = 待处理工单(6/3)
isTextEdit = False
scopeName = HTML
currentStyle = Object
Property was not expanded
tabIndex = 0
accessKey =
clientHeight = 0
clientWidth = 0
clientTop = 0
clientLeft = 0
readyState = complete
dir =
scrollHeight = 16
scrollWidth = 115
scrollTop = 0
scrollLeft = 0
canHaveChildren = True
tagUrn =
readyStateValue = 4
isMultiLine = True
canHaveHTML = True
inflateBlock = False
contentEditable = inherit
isContentEditable = False
hideFocus = False
disabled = False
isDisabled = False
glyphMode = 0
uniqueNumber = 2
uniqueID = ms__id2
nodeType = 1
nodeName = A
dataFld =
dataSrc =
dataFormatAs =
href = http://192.168.0.2:8888/fbrole/main/pkgQueryFaultListen.prFaultListen.prQueryAction.do
target = rightWorkSpace
rel =
rev =
urn =
Methods =
name =
host = 192.168.0.2:8888
hostname = 192.168.0.2:8888
pathname = fbrole/main/pkgQueryFaultListen.prFaultListen.prQueryAction.do
port = 8888
protocol = http:
search =
hash =
protocolLong = 超文本传送协议
mimeType = DO 文件
nameProp = pkgQueryFaultListen.prFaultListen.prQueryAction.do
charset =
coords =
hreflang =
shape =
type =
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2