Can't find a drop-down item
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2010
01:01 PM
01-26-2010
01:01 PM
Can't find a drop-down item
Hello,
We just use TC6 to record a script for a drop-down control. We need to click the drop-down button first, and then click one of an item in the drop-down menu. But if we play this script directly, we found we can't find the object. Its full name is '... .WPFObject("HwndSource: PopupRoot", "", 2).WPFObject("PopupRoot", "", 1)...' .Actually, if we edit it to '... . WPFObject("HwndSource: PopupRoot","").WPFObject("PopupRoot","",1)...', just edit its father's name, the object can be found. So I just want to know, is it necessary that we have to do some edit for this kind of control after recording? Or it's a bug of TC? Thank you so much for your help.
Sunny
We just use TC6 to record a script for a drop-down control. We need to click the drop-down button first, and then click one of an item in the drop-down menu. But if we play this script directly, we found we can't find the object. Its full name is '... .WPFObject("HwndSource: PopupRoot", "", 2).WPFObject("PopupRoot", "", 1)...' .Actually, if we edit it to '... . WPFObject("HwndSource: PopupRoot","").WPFObject("PopupRoot","",1)...', just edit its father's name, the object can be found. So I just want to know, is it necessary that we have to do some edit for this kind of control after recording? Or it's a bug of TC? Thank you so much for your help.
Sunny
2 REPLIES 2
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2010
07:39 PM
02-01-2010
07:39 PM
Hi,
It looks like there was another window with the same class when you recorded your script. That's why, TC used an index. This is not a problem in TC, this is related to your application's behavior when you were recording your test.
It looks like there was another window with the same class when you recorded your script. That's why, TC used an index. This is not a problem in TC, this is related to your application's behavior when you were recording your test.
------
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
02-01-2010
07:56 PM
02-01-2010
07:56 PM
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta content="Word.Document" name="ProgId" />
<meta content="Microsoft Word 12" name="Generator" />
<meta content="Microsoft Word 12" name="Originator" />
<meta content="Word.Document" name="ProgId" />
<meta content="Microsoft Word 12" name="Generator" />
<meta content="Microsoft Word 12" name="Originator" />
Hi Jared,
Thank you so much for your reminding. I just found a small
tooltip will pop up at the same time, which might be the reason why I got that unexpected object name. Many thanks for your help.
