Quantcast
Channel: New board topics in SmartBear Community
Viewing all articles
Browse latest Browse all 20990

WaitWindow Parameters Optional & Required

$
0
0

Hi,

we are using the WaitWindow method in our project quite alot. 

The help documentation for WaitWindow explains four paramters, two of them required and two of them optional. 

 

WndClass[in]RequiredString 
WndCaption[in]OptionalStringDefault value: *
GroupIndex[in]OptionalIntegerDefault value: -1
WaitTime[in]RequiredInteger 
ResultObject

 

Coming from dotnet this is not clear to me, since optional paramters can only be used as last parameters for a method. How exaclty does TC execute this method when it is called like this (as we do in our project):

 

["WaitWindow"] ("xyz", "abc", 1)

 

There will be no error on execution but to me this doesnt make sense.

 

You could of course argue to not use the function like this but since Im newly assigned to this project and the is method is used quite extensively Id rather not change every single usage.

 

We are using Version 10.40.2015.7


Viewing all articles
Browse latest Browse all 20990

Latest Images

Trending Articles



Latest Images