Hi,
I am trying to automate a web page using VB script.
<label>
Login Method</label></div>
<div class="cmb_fld" >
<select name="loginMeth od" onchange="OnLog inMethodChanged ();">
<option>
Select Login Method</option>
<option value="SCR">
Challenge RESP</option>
<option value="SOP">
Safeword</option>
</select>
</div>
Function
function OnLoginMethodCh anged() {
if (document.forms[0].loginMethod.se lectedIndex == 4) {
var userLang = document.forms["Login"].elements["language"].value;
When I try to use the below command to select the value for the combo box, it is not working and getting a error message.
IE.document.for ms[0].("loginMethod" ).Value = "SP"
Please help me on this.
Thanks in advance.
I am trying to automate a web page using VB script.
<label>
Login Method</label></div>
<div class="cmb_fld" >
<select name="loginMeth od" onchange="OnLog inMethodChanged ();">
<option>
Select Login Method</option>
<option value="SCR">
Challenge RESP</option>
<option value="SOP">
Safeword</option>
</select>
</div>
Function
function OnLoginMethodCh anged() {
if (document.forms[0].loginMethod.se lectedIndex == 4) {
var userLang = document.forms["Login"].elements["language"].value;
When I try to use the below command to select the value for the combo box, it is not working and getting a error message.
IE.document.for ms[0].("loginMethod" ).Value = "SP"
Please help me on this.
Thanks in advance.
Comment