Ask a Question

Cannot get a picture object from the input parameter.

SOLVED
Leahy
Contributor

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."

14 REPLIES 14

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

tristaanogre
Esteemed Contributor

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

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.....

tristaanogre
Esteemed Contributor

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

Thank you Robert !!

 

I managed to find a spot in the object browser that showed the main menu for this form. I right clicked that and mapped object (see photo).

 

Script ran fine !!!

cancel
Showing results for 
Search instead for 
Did you mean: