Cannot get a picture object from the input parameter.
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Cannot get a picture object from the input parameter.
Hello,
I am having trouble I don't understand...I am using the "add a checkpoint via wizard" and choose "Image" and "Select window region"..
My code:
Success = Regions.Added_Columns2.Check(Regions.CreateRegionInfo(Aliases.hastus.Form.WIN_FORMTOOLSTRIPCONTAINER.WIN_FORMTOOLSTRIPCONTENTPANEL.Panel.dcsc03GlobalSplitter.Container.MainPanel.Panel.MainPanel_LayoutPanel.dcsc03Splitter.Container.GraphicPanel.Panel.GraphicPanel_LayoutPanel.ViewerCtrl.ViewerCtrl_impl.ViewerCtrl_impl_3.Container, 1, 1, 800, 27, false), false, false, 1440, 17);
The PNG is in regions, ( I re-did this again this morning...), but I still get this error...
"Cannot get a picture object from the input parameter."
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Robert,
1. Object_Spy_adanced.jpg
2. error1.jpg, error2.jpg, not a lot of info here....
3. Name_Mapping.jpg, Object Browser.jpg, addtoMap.jpg
4. I am adding a waitwindow statement now and will run it......
Leahy
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OK, there's a couple of things that you haven't given me.
1) Please unfilter your NameMapping. There is an Aliases.hastus.form object that I'm not seeing in your screenshots. That's the object that it cannot find. So that's what we need to investigate. We need to see how that is mapped.
2) We need to see ALL the properties available for that object in the Object Browser. You're only showing the top portions. We need to see everything.
Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.
Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Here is the unfiltered name mapping (unfiltered map.jpg), I do not see the "abs10" form we are looking for.
I have taken screen shots of all the properties for that object. (Object Browser 1...7.jpg)
Something tells me the probem is with the "addtoMap.jpg".
If there is anything else that might help.....
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So, here's the deal. That object does not exist in your listing. However the error was pointing out that it was looking at Aliases.hastus.Form as where the problem is.... and your addtomap error is indicating that you already have the form you're looking for mapped to that item. So, there's your problem. It appears that your automation is looking for one name but you have it named something else entirely in your mapping. Not exactly sure how that happened but that seems to be the case. The status drop down that you're looking for is part of a chain of objects off of that Aliases.hastus.Form. So, it looks like you're going to need to edit those steps in your script to point to the proper object in your Aliases tree.
Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.
Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- « Previous
-
- 1
- 2
- Next »
- « Previous
-
- 1
- 2
- Next »