Hi,
I have to use VBScript and have to check the checkbox automatically, I mean, do smth like this:
doc.GetElementById("ResetPasswordCheckBox").Checked = True or doc.GetElementById("saveBtn").Click
etc. where doc = ie.document
But when I try to implement these sentences, nothing works:
doc.GetElementById("UserGroupsTree").Nodes(0).Checked
doc.GetElementById("UserGroupsTree").Nodes(1).Selected
doc.GetElementById("UserGroupsTree").Nodes(2).Selected
doc.GetElementById("UserGroupsTree").SelectedNodes.Count
doc.GetElementById("UserGroupsTree").Nodes(0).Text
doc.GetElementById("UserGroupsTree").Nodes(1).Text
doc.GetElementById("UserGroupsTree").Nodes(2).Text
doc.GetElementById("UserGroupsTree").Nodes(0).Value
doc.GetElementById("UserGroupsTree").Nodes(1).Value
doc.GetElementById("UserGroupsTree").Nodes(2).Value
The html code contains smth like this:
<div id="UserGroupsTree"
class="RadTreeView RadTreeView_Default"
style="overflow:auto;height:100%;width:100%;">
<ul class="rtUL rtLines">
<li class="rtLI rtFirst rtLast">
<div class="rtTop">
<span class="rtSp"></span>
<span class="rtPlus"></span>
<input type="checkbox" class="rtChk" />
<span class="rtIn">Some Text</span>
</div>
</li>
</ul>
<input id="UserGroupsTree_ClientState" name="UserGroupsTree_ClientState" type="hidden" />
</div>
And I want to set this checkbox to "true" automatically, by means of script, i.e. simulating user clicking
And my script can access user machine only, no access to server side.
I 'm limited to vbscript only (script which runs on client side, not server side)
Perhaps I'm trying to do smth wrong but any help is greatly appreciated,
Thanks in advance,
John