How we can change the “Browser navigation timeout” in UFT?
Solution1:-
In first solution we can change by following steps:-
Step2:-Select “Apply” and “OK”
Solution2:-
We can change it dynamically using coding at Runtime
Step1:- Copy the following script in any Editor(Notepad) and save with extension .vbs
‘Decalring the object variable for UFT
Dim objUft
‘Creating object of UFT
Set objUft= CreateObject(“QuickTest.Application”)
‘Launching the Apllication and making it visible
objUft.Launch
objUft.Visible = True
‘Setting the Browser Navigation Timeout value
objUft.Test.Settings.Web.BrowserNavigationTimeout = 80000
‘Destroing the object
set objUft= Nothing
Dim objUft
‘Creating object of UFT
Set objUft= CreateObject(“QuickTest.Application”)
‘Launching the Apllication and making it visible
objUft.Launch
objUft.Visible = True
‘Setting the Browser Navigation Timeout value
objUft.Test.Settings.Web.BrowserNavigationTimeout = 80000
‘Destroing the object
set objUft= Nothing
Step2:-Double click the saved file
Step3:-Check the “BrowserNavigationTimeout”
One reply on “Making changes to Settings of UFT”
There is also this method:
' Capture the current timeout
old_delay = Setting ("DefaultTimeOut")
' Display it for your edification
MsgBox ("The current default delay is " & old_delay)
'Set temporary value for the DefaultTimeOut testing option
Setting("DefaultTimeOut")= 1000
' Capture and display the change your edification
new_delay = Setting ("DefaultTimeOut")
MsgBox ("The new default delay is " & new_delay)
MsgBox ("Insert test code here where you want a shorter time.")
' Change the DefaultTimeOut testing option back to its original
Setting("DefaultTimeOut") = old_delay
' Capture and display it again for your edification
new_delay = Setting ("DefaultTimeOut")
MsgBox ("The default delay is now set back to " & new_delay)