Use this code for now.. will check for any other solution later.
str=
Browser("Browser_2").Page("Page").WebList("select").GetROProperty("innerhtml")
arr=split(str,"</Option>",-1,1)
For i=0 to ubound(arr)
If instr(1,arr(i),"disabled")>0 Then
disabledList=disList+vbcrlf+mid(arr(i),instr(1,arr(i),">")+1,len(arr(i))-instr(1,arr(i),">"))
else
enabledList=enList++vbcrlf+mid(arr(i),instr(1,arr(i),">")+1,len(arr(i))-instr(1,arr(i),">"))
End If
Next
print "disabledList = "+disabledList
print "enabledList = "+enabledList
On Thu, Apr 25, 2013 at 9:41 PM, <[email protected]> wrote:
> Hi all ,
>
> I sought to develop a script that check whether the Elements in HTML tags
> are disabled or not !
> knowing that the value numbers are dynamic according with the element
> Here's an exemple of my html tags :
>
> <SELECT style=min-width:100px;max-height:200px; multiple=multiple
> id=selectAvailableTenants>
>
> <option value="48">aca</option>
> <option disabled="disabled" value="0">DefaultTenant</option>
> <option disabled="disabled" value="3">dps2</option>
> <option disabled="disabled" value="31">DPSVSF07</option>
> <option disabled="disabled" value="70">GDF</option>
> <option disabled="disabled" value="71">GDF_PART</option>
> <option disabled="disabled" value="7">jlf_Nom</option>
> <option value="36">MCC-Express</option>
> <option disabled="disabled" value="38">MCC-Express1</option>
> <option value="40">MCC-Express2</option>
> <option value="57">MCC-Express3</option>
> <option disabled="disabled" value="42">UMS-Vanves</option>
>
> </SELECT>
>
> Any idea
> Regards.
>
> --
> --
> You received this message because you are subscribed to the Google
> "QTP - HP Quick Test Professional - Automated Software Testing"
> group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/MercuryQTP?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "QTP - HP Quick Test Professional - Automated Software Testing" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
--
Shanker.
--
--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
---
You received this message because you are subscribed to the Google Groups "QTP
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.