JamesB
14 years agoOccasional Contributor
Difference between directly accessing object and mapping
I am running into an interesting problem, where if I try and get a property for an object directly, it can't find it, but if I map to it, it works fine. The problem being I want to do this dynamically, so mapping doesn't work as an overall solution. For example, this fails:
panel.panelUnclassifiedbrokersdisplay.panelUnclassifiedbrokerslistWrap.tableUnclassifiedbrokerslist.Cell(1,2).RadioButton(brokerName).Click();
But if I do the same thing to a mapped object, which is mapped to the above.
panel.panelUnclassifiedbrokersdisplay.panelUnclassifiedbrokerslistWrap.tableUnclassifiedbrokerslist.cell1.radiobuttonAle.Click();
It works perfectly fine.
panel.panelUnclassifiedbrokersdisplay.panelUnclassifiedbrokerslistWrap.tableUnclassifiedbrokerslist.Cell(1,2).RadioButton(brokerName).Click();
But if I do the same thing to a mapped object, which is mapped to the above.
panel.panelUnclassifiedbrokersdisplay.panelUnclassifiedbrokerslistWrap.tableUnclassifiedbrokerslist.cell1.radiobuttonAle.Click();
It works perfectly fine.