Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP hangs on handling error window
#1
Solved: 10 Years, 9 Months ago
My Requirement: When i click on a button in a dialog box, a window should come where as i need to click on OK button. Below is the code
**********************************
Code:
JavaWindow("My Teamcenter - Teamcenter").JavaWindow("My Teamcenter_Newdesign").JavaDialog("Remote Export Options").JavaTab("JTabbedPane").Select "Advanced"
JavaWindow("My Teamcenter - Teamcenter").JavaWindow("My Teamcenter_Newdesign").JavaDialog("Remote Export Options").Activate              
JavaWindow("My Teamcenter - Teamcenter").JavaWindow("My Teamcenter_Newdesign").JavaDialog("Remote Export Options").JavaButton("<<").click
' For loop to handle the window which occurs multiple times
Set objUnableWdw = JavaWindow("My Teamcenter - Teamcenter").JavaWindow("Shell").JavaWindow("Unable To Include Relation")
For i=0 to 10

If objUnableWdw.Exist(2) Then
    objUnableWdw.Activate
    objUnableWdw.JavaButton("OK").Click
else
    Exit For
End If

'**********************

In the above code, when I click on "<<" button, QTP gets hanged. If I handle that error window manually, the issue not happening.
Please advise how to handle this
Reply


Messages In This Thread
QTP hangs on handling error window - by dtamilarasan - 06-04-2013, 12:51 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Difference between error handling and exception handling venkatbatchu 6 25,739 12-11-2018, 05:11 PM
Last Post: smitapawar610
  Fireevent ondblclick hangs QTP until window is closed Andor 2 1,860 06-01-2015, 08:10 PM
Last Post: Andor
  UFT 12 hangs on a line (.NET forms) sara- 0 2,410 10-22-2014, 03:51 PM
Last Post: sara-
  QTP hangs Girish S 0 1,775 03-03-2014, 01:13 PM
Last Post: Girish S
  QTP hangs when application error Windows displays rj_hogan 0 2,639 11-07-2011, 04:01 PM
Last Post: rj_hogan

Forum Jump:


Users browsing this thread: 1 Guest(s)