Forum Discussion

kikaider69's avatar
kikaider69
Occasional Contributor
14 years ago

Not all underlying objects are being picked up by testcomplete 8.7

ie8

windows 7



I can record and play to the point see you in the attached document.



All i basically want to be able to is have it recognize my drop down menu. and it fails time and time

I want to be able to select a file from the dropdown and press get report.

I can record it fine but then it failes








Sub Test9


Test9

Dim iexplore


Dim panel


Dim fieldset


Dim vselect


Dim submitButton


Set iexplore = Aliases.iexplore1


'Call iexplore.ToUrl("https://soki-dev.mechpod.com/index.php")


Set panel = iexplore.pageMechpodSystemsControl.panelBase.panelMain.panelPageWrap


Set fieldset = panel.formAccumReport.fieldsetOx


Set vselect = fieldset.selectSource


Call vselect.ClickItem("LSP1763_MEDCGT_mail_file_MMO_A5_20100420_114504.dat (240)")


Set submitButton = fieldset.submitbuttonShowReport


submitButton.Click


Call submitButton.HoverMouse(32, 9)


Call vselect.ClickItem("LSP1763_MEDCGT_mail_file_BCBSNC_Partners_A5_20100420_114504.dat (23817)")


Call vselect.ClickItem("LSP1763_MEDCGT_mail_file_MMO_A5_20100420_114504.dat (240)")


submitButton.Click


Call panel.panelIwrap.tableItemsUsage.cell1.textnodeCount.HoverMouse(0, 0)



End Sub



This is the error message I get



There are several objects in the system that match the recognition attributes of the "fieldsetOx" mapped object.


This may cause the "Object not found" error.


Objects




Sys.Process("iexplore").Page("https://soki-dev.mechpod.com/index.php").Panel("base").Panel("main").Panel(0).Form("accum_report").Fieldset(2)


Sys.Process("iexplore").Page("https://soki-dev.mechpod.com/index.php").Panel("base").Panel("main").Panel(0).Form("accum_report").Fieldset(1)


Sys.Process("iexplore").Page("https://soki-dev.mechpod.com/index.php").Panel("base").Panel("main").Panel(0).Form("accum_report").Fieldset(0)



To solve the problem, you may need to modify mapping settings for the "fieldsetOx" object or one of its parent objects.





seems fieldset(1) is the one i need

also when i check the mapping, keeps telling me that the

I checked the code and it allows me to drill down to fieldset so im stumped.

I hope somebody out there can help me. 

I have a lot of pages with this similar type of dropdown occurs



any ideas?



2 Replies

  • kikaider69's avatar
    kikaider69
    Occasional Contributor
    forgot to add, change the png back to doc to see the file in word
  • Hi,



    You need to find the difference between those Fieldset(x) objects and map the one you need by the property whose value is unique. You get the Ambiguous Recognition error because all these objects meet the same recognition criteria.



    You can map the needed object by its child objects if it is the only one which has such children (that's what is very likely to occur in your case).