cancel
Showing results for 
Search instead for 
Did you mean: 

Set Auto-Wait Timeout for Browser Close function

Frequent Contributor

Set Auto-Wait Timeout for Browser Close function

Hello Community,

 

is there a way to increase the auto-wait timeout for the browser close function?

 

I know I can set it manually by double clicking the parameter field of the browser close teststep, but it is automatically set to 3 seconds which is not enough in a few cases and I want to increase this to 10 seconds.

 

It is a different auto wait time, than the one you can set in the project properties (auto-wait timeout, ms which is standard at 40 seconds).

2 REPLIES
Community Hero

Re: Set Auto-Wait Timeout for Browser Close function

Hi,

 

I would wait in a loop until the browser process ends or timeout (passed as a parameter) occurs.

If the browser process did not end within timeout, .the call to .Terminate() may be done.

https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/window-and-process/te... contains some possible code sample.

 

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Postings made by [Community Expert Group] members
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
Frequent Contributor

Re: Set Auto-Wait Timeout for Browser Close function

I am using the Terminate Script on Errors to prevent next tests from not starting, but I use the close browser teststep in around 300 testcases, so I am not within a script and the auto wait time for this operation is 3 seconds, which I want to increase to 10 and in case it doesnt close within this time I am ok with the test failing and Terminating the processes in the OnLogError Event

2018 NEWS
Top Kudoed Authors