Solved
Forum Discussion
SriniG
12 years agoContributor
Hi Tanya,
I'm working on a Web application. One page is having Radio buttons and Buttons.
After selecting the 'Radio button' from the page then "Next Room" button will enable otherwise it will be in disable mode.
See the attached screenshot .
Now problem is, While running the script "Next Room" button is in disable mode eventhough "Radio button" was selected.
Script used:-
Function getWidget(strTagName,strType,strProperty)
set page = sys.Browser("iexplore").Page("*").contentDocument
select case split(strProperty,":=")(0)
case "id"
set wgt = page.getElementById(split(strProperty,":=")(1))
end select
set getwidget = wgt
End Function
Function Clickbutton1(strTagName,strType,strProperty,strValue)
set wgt = getWidget(strTagName,strType,strProperty)
if not wgt is nothing then
wgt.click
strFlag = True
else
strFlag = False
end if
set wgt = nothing
Clickbutton1= strFlag
End Function
Note:- "Next Room" button will enable if we click 'Radio button" manually.
Could you please let me know the solution for the above case.
Thank you,
Srini.
I'm working on a Web application. One page is having Radio buttons and Buttons.
After selecting the 'Radio button' from the page then "Next Room" button will enable otherwise it will be in disable mode.
See the attached screenshot .
Now problem is, While running the script "Next Room" button is in disable mode eventhough "Radio button" was selected.
Script used:-
Function getWidget(strTagName,strType,strProperty)
set page = sys.Browser("iexplore").Page("*").contentDocument
select case split(strProperty,":=")(0)
case "id"
set wgt = page.getElementById(split(strProperty,":=")(1))
end select
set getwidget = wgt
End Function
Function Clickbutton1(strTagName,strType,strProperty,strValue)
set wgt = getWidget(strTagName,strType,strProperty)
if not wgt is nothing then
wgt.click
strFlag = True
else
strFlag = False
end if
set wgt = nothing
Clickbutton1= strFlag
End Function
Note:- "Next Room" button will enable if we click 'Radio button" manually.
Could you please let me know the solution for the above case.
Thank you,
Srini.