qtp如何获取按钮上的文本内容

发布时间:2019-08-10 01:24:26

qtp 如何获取按钮上的文本内容

推荐回答

一个是用QTP自带的out值Window("Windows Internet Explorer").WinObject("Internet Explorer_Server").Output CheckPoint("Internet Explorer_Server")然后调用:XXX.Set DataTable("Internet Explorer_Server", dtGlobalSheet)另外也可以用GetROProperty,把对象text的属性取出来。ButtonName=Browser("QA Home Page").Page("QA Home Page").WebButton("Submit").GetTOProperty("Name")例如获取文本Web文本框的运行时的值:XXX.GetTOProperty("Value")
以上问题属网友观点,不代表本站立场,仅供参考!