51Testing软件测试论坛

标题: popuplist控件如何选择含空格的item [打印本页]

作者: 天翔    时间: 2009-3-13 17:05
标题: popuplist控件如何选择含空格的item
popuplist控件如何选择含空格的item,哪位能帮小弟支个招么?谢谢先。
作者: kettleyang    时间: 2009-3-13 18:25
first Get Contents from popuplist
  LIST OF STRING ls=popupList.GetContents()
then you can find space is used to be represent something like # whatever
do
          PopupList.select(sValue) // sVaure : the value represent space , you can get from ls=popupList.GetContents()
except
  for do except
   select  method will popup an error like control is not responding . Use do except clause to handle this error
  Hopefully ,this will solve your question




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