Unable to find object
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2010
03:39 AM
01-08-2010
03:39 AM
Unable to find object
TestComplete Version
7.50
7.50
IE Version
8
8
OS Windows
7
Test language VB Script
7
Test language VB Script
When I try to click
or verify objects in a dialog window my test fails with an Unable to find
object Item(" .......
or verify objects in a dialog window my test fails with an Unable to find
object Item(" .......
I have confirmed
with object explorer that the correct labels are being used, objects in the
window that invokes the dialog verify OK. The refresh routine is called after the dialog appears just in case the connection has been lost.
I even tried recording that section of the test, on playback it fails with the same message.
with object explorer that the correct labels are being used, objects in the
window that invokes the dialog verify OK. The refresh routine is called after the dialog appears just in case the connection has been lost.
I even tried recording that section of the test, on playback it fails with the same message.
Does anybody have
any suggestions?
any suggestions?
Thanks,
Damian
13 REPLIES 13
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2010
05:25 AM
01-08-2010
05:25 AM
I've had similar issues with some of our custom controls. I've had luck specifying the full reference (system.app.frame etc). I've also seen instances where objects that are generated on the fly at runtime can get the same name which confuses things. I tinkered with manually adjusting the mapped names. That, however, is just a work around for the custom controls I deal with. It's hard to say if that would work for you, but it's a place to start playing.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2010
11:22 PM
01-08-2010
11:22 PM
Hi Damian,
The problem you've described is quite general. Please reproduce it, pack the entire project suite folder and send us the archive via the Contact Support form (http://www.automatedqa.com/support/message/). We will look into this case.
--
Dmitry Nikolaev
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Dmitry Nikolaev
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
01-11-2010
10:37 PM
01-11-2010
10:37 PM
OS: Win XP
Browser: Firefox
Script Language: JScript
I am having (or I think so) a similar issue. A grid item from a login dialog (which is already on the screen) is not found, I get a "waiting for grid" item at the top right corner of TC. The dialog is on the screen, and when after test failure, I go to the NameMapping screen and ask it to highlight the grid item on the screen, it does so without any problems.
Can you provide guidance? The strangest thing of all, is that this exact same test worked FINE yesterday.
Browser: Firefox
Script Language: JScript
I am having (or I think so) a similar issue. A grid item from a login dialog (which is already on the screen) is not found, I get a "waiting for grid" item at the top right corner of TC. The dialog is on the screen, and when after test failure, I go to the NameMapping screen and ask it to highlight the grid item on the screen, it does so without any problems.
Can you provide guidance? The strangest thing of all, is that this exact same test worked FINE yesterday.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2010
01:36 AM
01-12-2010
01:36 AM
Hi Leo,
Try refreshing the object tree and the mapping information before the problematic line. For example:
[JScript]
var gridObj = ...
gridObj.Refresh();
gridObj.RefreshMappingInfo();
Let me know whether this helps.
--
Dmitry Nikolaev
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Dmitry Nikolaev
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
01-12-2010
01:49 AM
01-12-2010
01:49 AM
I was able to fix it using your steps however a new issue has presented itself:
Prereqs: I clear the cache as part of the automated test in case it matters.
There is a PageFooter panel which contains some information on the page I am testing. The page loads fine(and the panel is obviously there). However, the Object Browser does not see this PageFooter panel when I refresh the object browser(after the test fails because it couldn't find the footer). If I refresh the webpage, object browser now sees the page footer.
Might be best to split this off so I don't steal Damian's post(sorry)
Prereqs: I clear the cache as part of the automated test in case it matters.
There is a PageFooter panel which contains some information on the page I am testing. The page loads fine(and the panel is obviously there). However, the Object Browser does not see this PageFooter panel when I refresh the object browser(after the test fails because it couldn't find the footer). If I refresh the webpage, object browser now sees the page footer.
Might be best to split this off so I don't steal Damian's post(sorry)
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2010
02:15 AM
01-12-2010
02:15 AM
I cut down my test and managed to get it working by adding a refresh. However if I 'uncomment' the code that invokes the current page the test fails - here is the code I uncommented - the page appears as expected but causes subsequent code to fail.
'Call Eval (strParent & "btnInserSalesOrder"").Click")
' Wait for Insert Sales Orders to Appear
' Delay(10000)
' w2.Refresh
Leo: No problems - for continuity you can continue using this thread, I am sure we can multi-task!
'Call Eval (strParent & "btnInserSalesOrder"").Click")
' Wait for Insert Sales Orders to Appear
' Delay(10000)
' w2.Refresh
Leo: No problems - for continuity you can continue using this thread, I am sure we can multi-task!
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2010
03:21 AM
01-12-2010
03:21 AM
Hi Leo,
I am not aware of this behavior. Can you provide me with a link to the tested page so I can check it here? You can send it to me directly via the Contact Support form (http://www.automatedqa.com/support/message/).
>>
Might be best to split this off so I don't steal Damian's post
<<
Just create a new thread if you wish.
--
Dmitry Nikolaev
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Dmitry Nikolaev
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
01-12-2010
03:21 AM
01-12-2010
03:21 AM
Hi Damian,
I am not sure that I understand which code works and which code does not work. Could you please clarify this? As in the previous case, I would appreciate it if you reproduced the problem and sent me the archive containing the entire project suite folder so I can look at the whole test and the log of the failed execution.
--
Dmitry Nikolaev
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Dmitry Nikolaev
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
01-12-2010
03:59 AM
01-12-2010
03:59 AM
David it is an internal website. Perhaps a webex or some other option?
