Contributions
- 2.9KViews0likes0Comments
Re: Problems with the EXISTS method in TestComplete V9
Hello. In fact, I thought the same concerning the EXISTS method whilst my trying with several code alternatives. I also used the WaitAliasChild. But I might be working almost correct. Thus I wil try your proposed solution. Thank you for your hint.2.9KViews0likes0CommentsProblems with the EXISTS method in TestComplete V9
I had some issues with the EXISTS method in terms of dealing with modal lists of an application (test object). Somehow the EXISTS method may not deliver the correct information, whether the object is available or not. In terms of misleading information the test process may run into an error. I found a solution based on AliasObjects and direct accessing of the list. --------------------------------------------------------------------------------------------------------------------------- Sub selectList (Caption, Action) Dim Selection ' Define object ' If it is available, Selection contains the object otherwise an empty object ' WNCode is just a variable to cover several versions of the test object without ' the need of code adaptation Set Selection = Sys.Process("za").WaitWindow("FNWNS"+WNCode,Caption,-1,1000) ' a mixture of AliasObjects |-> Aliases.za.wndSelect...| and ' direct coding |-> Sys.Process("za").WaitWindow("FNWNS"+WNCode...| ' of the GUI objects avoids / bypasses ' the weakness of the EXISTS method in the TestComplete V9 ' the following lines work: it deals with no, one or multiple list(s), which ' may occur whilst user interaction While (Aliases.za.wndSelect.Exists) ' Exists works solely fine with the AliasObjects! Aliases.za.wndSelect.SetFocus Aliases.za.wndSelect.Keys(Action) Set selection = Sys.Process("za").WaitWindow("FNWNS"+WNCode,Caption,-1,1000) Wend End Sub --------------------------------------------------------------------------------------------------------------------Solved3KViews0likes4CommentsTestComplete 12.50 | Test run throws permission denied error of properties parentnode & firstchild
Hi. I established a keyword test of the Kibana login window (web application; HTML webpage; TestComplete captured my user activity). Whilst automated test run, the application throws two errors (permission denied see above). How can I solve this problem? Any hints? Thank you in advance. Best regards TorstenSolved1.1KViews0likes2Comments