0

我是 QTP 中进行正则表达式的描述性编程的新手。我有一个特定的链接,比如www.google.com在应用程序的每个页面上。

在 QTP 中,我编写了代码

    Browser("title:=.*").Page("title:=A.*").Link("innertext:=Google Search").Click

这不起作用。当我在相同的代码块前面附加一些文本字符时,如下所示:

    Browser("title:=A.*").Page("title:=A.*").Link("innertext:=Google Search").Click

这适用于以 A 开头的页面,但要测试的应用程序有很多页面。
我正在使用 QTP11。
先感谢您!

4

0 回答 0