|
本人在录制web程序时,当到一个日历控件时,发现日历打开了,但是在日历(如图)上的click操作确无效,奇怪的是,运行后也不报错,就想实现个简单的功能,选择2010的日期。就现在的脚本回放始终都是2009年,请大家帮忙~~~~
脚本文件*.t:
[ ] Demo.SetActive( )
[ ] Demo.EnterDate1.Click ()
[ ] print(Demo.Select.HtmlColumn3.HtmlText1.GetText())
[ ] sleep(5)
[+] Demo.Select.HtmlColumn3.HtmlText1.VerifyProperties ({...})
[ ] ""
[-] {...}
[ ] {"Text", "»"}
[ ] Demo.Select.HtmlColumn3.HtmlText1.Click ()
[ ] Demo.Select.HtmlColumn3.N6.Click()
[ ] Demo.Select.HtmlColumn3.Click ()
对象定义文件*.inc:
[-] HtmlTable Select
[ ] tag "Select"
[+] HtmlColumn N1
[ ] tag "?[1]"
[+] HtmlText HtmlText2
[ ] tag "«"
[-] HtmlText Wk
[ ] tag "wk"
[+] HtmlText N22
[ ] tag "22"
[+] HtmlText N23
[ ] tag "23"
[+] HtmlText N24
[ ] tag "24"
[+] HtmlText N25
[ ] tag "25"
[+] HtmlText N26
[ ] tag "26"
[+] HtmlText N27
[ ] tag "27"
[+] HtmlText MonJun22
[ ] tag "Mon, Jun 22"
[+] HtmlColumn HtmlColumn3
[ ] tag "×"
[+] HtmlText HtmlText1
[ ] tag "»"
[+] HtmlText Sat
[ ] tag "Sat"
[+] HtmlText N6
[ ] tag "6"
[+] HtmlText N13
[ ] tag "13"
[+] HtmlText N20
[ ] tag "20"
[+] HtmlText N27
[ ] tag "27"
代码中的验证点也正确,gettext()函数返回的也是">>"
[ 本帖最后由 testlike 于 2009-6-15 20:03 编辑 ] |
|