I just started to apply testing sequences for rad controls.
All works fine, but I have a question:
I'm loading UserControls dynamically in a panelbar/multipage environment.
How do I access these dynamic objects?
Regards,
Peter
2 Answers, 1 is accepted
0
Missing User
answered on 26 Oct 2009, 03:13 PM
Hello Peter,
If the controls are added to the dynamically page, then you can do an ActiveBrowser.RefreshDomTree(); that will get the latest DOM. If they are added to a control that already exists, you can try a Refresh(); on the control.
You can then either try doing a Find on the ActiveBrowser or on the Control using ByContent, ById, or ByAttributes. You can also use partial strings in the Find, using "p:ByContent" or "class=~MyClass" for Atrributes or Ids.