Tomasz D. test entrepreneur
Temat: QTP WebTable exists
Potrzebuję sprawdzić czy tabela o nazwie Address istnieje na stronie.Próbuję to zrobić poniższym kodem...
Public Function verifyTable
Set objPage = Browser("title:=btitle", "openedbytestingtool:=True").Page("title:=ptitle")
If objPage.WebTable("html tag:=TABLE", "text:=Address").Exist(1) Then
msgbox "pass"
Else
msgbox "fail"
End If
End Function
Ale nie wychodzi, bo pomimo tego, że table jest to zawsze dostaję fail.
Gdzie jest błąd?