Forum Discussion
Hi,
You did not provide too much information about what is taking too much time, what is your definition of 'page load' and what do you get in a test log, but I see some potential problem in your code:
> page.Confirm.Button("OK").Click
> Log.Message("Message text: " + page.Confirm.Message)
Technically, after you close Confirm dialog via .Click(), Confirm dialog (presumably) is closed and disposed of. And on the next line you are trying to get some property (Message) of potentially non-existing object.
What will happen next depends on a lot of factors:
-- If the dialog is not disposed of you should get the value of the Message property without delay;
-- If test code executes faster that the dialog is destroyed, then also I would not expect execution delays;
-- If the dialog is already disposed of by the moment of getting the value of the Message property, TestComplete will start to search for the dialog a-new and this obviously will slow down execution speed. The results depends on the search result - if some other Confirm dialog is found, then the value of its Message property will be posted to test log. If search fails, you should get a warning/error in test log stating that the sought for object was not found.
Related Content
Recent Discussions
- 3 days agoMW_Didata