Disable error log
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2010
04:32 PM
03-03-2010
04:32 PM
Disable error log
I have a situation where i need to disable error log temporarily. I have to check if a window exists or not if it does not exist i do not want any error message in the log file. can i disable temporarily and enable again. WaitWindow and WaitProcess does not work either.
7 REPLIES 7
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2010
09:09 PM
03-03-2010
09:09 PM
Hi,
What do you mean by "WaitWindow and WaitProcess does not work"? How do you use them?
What is the exact name of the object you need to obtain?
What do you mean by "WaitWindow and WaitProcess does not work"? How do you use them?
What is the exact name of the object you need to obtain?
------
Yuri
TestComplete Customer Care Engineer
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Yuri
TestComplete Customer Care Engineer
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2010
07:36 AM
03-04-2010
07:36 AM
I need to wait for a window to open, and it takes invariably from 10-15 secs. Even if I use waitwindow or waitprocess, by the time the window opens i get error logged.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2010
06:20 PM
03-04-2010
06:20 PM
Hi,
Use the appropriate timeout. If your window opens within 15 seconds, the timeout should be no less than this time.
Again, exactly how do you use WaitWindow and what is the exact name of the object you need to obtain?
Use the appropriate timeout. If your window opens within 15 seconds, the timeout should be no less than this time.
Again, exactly how do you use WaitWindow and what is the exact name of the object you need to obtain?
------
Yuri
TestComplete Customer Care Engineer
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Yuri
TestComplete Customer Care Engineer
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2010
08:35 AM
03-08-2010
08:35 AM
Jared:
While Sys.Process("something").WPFObject("HwndSource: SingleEngagementView").WPFObject("SingleEngagementView").WPFObject("LayoutRoot").WPFObject("Grid", "", 1).WPFObject("Border", "", 1).exists = False
BuiltIn.delay(1000)
Wend
I get a error in the log until the window appears - how to avoid the error log.
While Sys.Process("something").WPFObject("HwndSource: SingleEngagementView").WPFObject("SingleEngagementView").WPFObject("LayoutRoot").WPFObject("Grid", "", 1).WPFObject("Border", "", 1).exists = False
BuiltIn.delay(1000)
Wend
I get a error in the log until the window appears - how to avoid the error log.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2010
09:15 PM
03-08-2010
09:15 PM
Hi,
You need to use the WaitWPFObject method here and check all objects that may not exist, not only the last one in the hierarchy.
You need to use the WaitWPFObject method here and check all objects that may not exist, not only the last one in the hierarchy.
------
Yuri
TestComplete Customer Care Engineer
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Yuri
TestComplete Customer Care Engineer
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2010
03:58 AM
03-09-2010
03:58 AM
Do you mean to say my statement should look like
Sys.waitProcess("something").waitWPFObject("HwndSource: SingleEngagementView").waitWPFObject("SingleEngagementView").waitWPFObject("LayoutRoot").waitWPFObject("Grid", "", 1).waitWPFObject("Border", "", 1).method...
Sys.waitProcess("something").waitWPFObject("HwndSource: SingleEngagementView").waitWPFObject("SingleEngagementView").waitWPFObject("LayoutRoot").waitWPFObject("Grid", "", 1).waitWPFObject("Border", "", 1).method...
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2010
07:00 PM
03-09-2010
07:00 PM
Hi,
No. Start with the following code:
If this doesn't help, check the target object's parents in the same way.
No. Start with the following code:
Set parentObj = Sys.Process("something").WPFObject("HwndSource: SingleEngagementView").WPFObject("SingleEngagementView").WPFObject("LayoutRoot").WPFObject("Grid", "", 1)
Set obj = parentObj.WaitWPFObject("Border", "", 1, 5000)
If obj.Exists Then ' object found
If this doesn't help, check the target object's parents in the same way.
------
Yuri
TestComplete Customer Care Engineer
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Yuri
TestComplete Customer Care Engineer
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
