lionhua0809 发表于 2015-10-27 18:43:07

求助:QTP描述性编程执行结果不正确

SystemUtil.Run "C:\Program Files\Internet Explorer\iexplore.exe", "http://www.baidu.com"
Print Browser("micClass := Browser").Exist

已经打开了百度首页,为什么最后结果是“False”?请各位大侠指点下,QTP版本是10.0,谢谢!

data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANQAAADKCAYAAADdAm7zAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABjgSURBVHhe7Z0LlBTVmce/7plheAsoyE4kKopwAI+OYRUSDRJXNsrDoAxg1F3PelaJ6wq+WXUEHeOiiAECCiZ7ZI8g4SHkGI1nXSKCrmPQyCHiORtR8Kx72EHeAg4wM917v1t1u29X3+qqrq7ume7+/+A/VXXr9u2q6u/f363bVd2RWCwWJ0E8Hicxn1Brayu1tbXJaUtLS2JZref6AJQykUiEKioqEqqsrJTSl6PRaEJcXxpKN5NuolOnTtGJEyfo5MmTUrqpdEPxPDcGQCmhjFNVVSXVuXNnOe3UqZM0E8+rOglTsaF0M7GR2DxsJqapqYm+/vpr2rBhtVzOB2YzlpJB07M5MnxxcPnlP6KhQ4fK16u6ulqqR48ecsqGUlkrYShhImkozj4sNlJzc7PMTB9//DFt3Ph70WyEbrrpZrriisutZ5EgINLJ5k0gSmvWrKEpU+rs5fzT2NhIo0Z9X8zl/7WznmuUvVRcrFmzVrwuU+jdd7fQypUrRElc7MtoGjJkCHXp0oV69uwppyZTRYSJ4no3j83E+uijj+jVV39Dd975T/TDH/KBidmysN5gw35hSiUrib60cVf041UlXrjVtqHarKK8EhVB/oFtqFarKG8U8rnCpsI21FQxz69LlLZsaaTnn19CP/7xBGmqXr16UdeuXWUXUDeV7Prp509sKs5Me/bskZkpaSY+KEkzMVbA5GoAfryuUse5r+Wwz8UMx3yr9AB7obFxMx0+fJi+/fZb2ZNzDtaxl6L8MJ7Rz58OHjxIx4+f0MxkJtg4hDOonOjri1fxuL6cC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wnFxdRek+qlEZawjR47IYXT+ZHnLlo3WswBQRtTWXiavS2V/KOPwKZFuJpaVrSro/wFL5UTAtujP5gAAAABJRU5ErkJggg==



jingzizx 发表于 2015-10-28 12:12:47

http://www.cnblogs.com/sirrah/articles/2349123.html
参考一下,是不是先记录成对象吧

lionhua0809 发表于 2015-10-28 22:07:18

使用description对象,问题搞定,多谢2楼
页: [1]
查看完整版本: 求助:QTP描述性编程执行结果不正确