Cannot get a picture object from the input parameter, error occurs on region checkpoint tests
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Cannot get a picture object from the input parameter, error occurs on region checkpoint tests
Hi all,
I am having an issue with Region checkpoints, getting a "Cannot get a picture object from the input parameter", error message and couldn't find anything in the TestComplete help file on this topic. One message here on the community that was related to this issue but did not answer my questions.
1) Why is this error occurring?
2) How do I stop it from occurring?
NOTE: I'm recording keyword tests, I haven't got a clue about scripting programming etc.
Thanks
Tom.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you post the log message here?
Thanks
Shankar R
LinkedIn | CG-VAK Software | Bitbucket | shankarr.75@gmail.com
“You must expect great things from you, before you can do them”- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
All that appears in the test log, on the Additional Info tab, is the message: "Cannot get a picture object from the input parameter."
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Following links might be helpful for you
https://community.smartbear.com/t5/TestComplete-Functional-Web/Image-comparsion/td-p/81124
Thanks
Shankar R
LinkedIn | CG-VAK Software | Bitbucket | shankarr.75@gmail.com
“You must expect great things from you, before you can do them”- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Shankar,
I've already reviewed those links and they don't help me with the issue, there's nothing in them that allows me to find a solution.
I have a workaround, I remap the region on which the error occurs. But this does not stop the error from re-occurring in later tests.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So, the issue here is Cannot get a picture object from the input parameter. which means TestComplete not able to get the picture from the Object which you are trying to compare.
This can be come when the object not exists in the UI.
I would say manually see whether you are able to access of that object picture using TestComplete Object Browser
Thanks
Shankar R
LinkedIn | CG-VAK Software | Bitbucket | shankarr.75@gmail.com
“You must expect great things from you, before you can do them”- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Shankar,
when TestComplete is not able to get the picture from the object, I assume this means the object on the webpage that is being tested, is that correct?
If that is the case is it possible that if the page is still loading elements, that this might prevent TestComplete from getting the picture of the object?
I have had issues with other controls not being found and errors occurring which have stopped tests. For these I had to add in "Exists" steps to allow the page to fully load before the test step was executed.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
when TestComplete is not able to get the picture from the object, I assume this means the object on the webpage that is being tested, is that correct?
If that is the case is it possible that if the page is still loading elements, that this might prevent TestComplete from getting the picture of the object?
Yes, TestComplete cannot get complete when it is loading. It is best practice to have dynamic wait until your page loads successfully
I have had issues with other controls not being found and errors occurring which have stopped tests. For these I had to add in "Exists" steps to allow the page to fully load before the test step was executed.
It is best practice to have Exists condition when you do the UI actions.
Thanks
Shankar R
LinkedIn | CG-VAK Software | Bitbucket | shankarr.75@gmail.com
“You must expect great things from you, before you can do them”- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ok,
thanks, that might be the source of the issue. Next time I get that error I will try adding "Exists" condition and see if is solves the problem and prevents it from recurring.
Thanks for the help.
