Having trouble working this one out, below is the DOM view of my Tree view.
I need to search all 'li' elements within the whole tree for some text, then I need to click the "rtPlus" (+) element inside the the li element that contains the matched text.
div id="TreeView1" class="RadTreeView RadTreeView_Default explorertree>
<ul class="rtUL rtLines">
<li class="rtLI rtFirst">
<li class="rtLI">
<li class="rtLI">
<div class="rtMid">
<span class="rtSp"/>
<span class="rtPlus"/> **click this when test matched **
<img class="rtImg">
<span class="rtIn">
#text **This is the matching text**
<li class="rtLI">
<li class="rtLI">
<li class="rtLI">
<li class="rtLI rtLast">
I'm sure that this can be done with a single XPath query to locate the correct "rtPlus" button and would really appreciate someone suggesting the right approach to this or some sample selenium tests for this component would be good.
Thanks.| <table> |
| <tr> |
| <td align="right"> |
| <telerik:RadNumericTextBox ID="RadNumericTextBox1" Runat="server" |
| Culture="English (United States)" ShowSpinButtons="True" Skin="Web20" |
| Width="125px"> |
| </telerik:RadNumericTextBox> |
| </td> |
| </tr> |
| </table> |
Dim
checkbox1 As CheckBox = GridView1.FooterRow.FindControl("checkbox1")
If checkbox1.Checked = True Then
e.InputParameters(
"endapps0") = DateTime.Now()
End If
How can i do this in RadGrid?
Thanks
| function CancelNonInput(sender, args) |
| { |
| alert(1); |
| var e = args.get_domEvent(); |
| //IE - srcElement, Others - target |
| var targetElement = e.srcElement || e.target; |
| //is the clicked element an input checkbox? <input type="checkbox"...> |
| if(targetElement.tagName.toLowerCase() != "input" && |
| (!targetElement.type || targetElement.type.toLowerCase() != "checkbox")) |
| { |
| //cancel the event |
| args.set_cancel(true); |
| } |
| } |
| <Telerik:RadFormDecorator id="radFormDecorator" DecoratedControls="CheckBoxes" ForeColor="black" Skin="Web20" runat="server" /> |
atServiceProxy.AjaxSettings.AddAjaxSetting(EmployeeBasicControl1.DDLDossier, EmployeeContractControl1, EmployeeLoadingPanel);
where EmployeeContractControl1 is a WebUserControl, setting a usercontrol as updatecontrol will not show the loadingpanel.
What is the logic behind this??
The Sofim-team (Belgium)