Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to script this
#6
Solved: 11 Years, 4 Months ago
Hi, thank you for the reply. please see the attachment, not sure if attachment work.

‘IF A found from xls then set the check box to on
Code:
If DataTable("A", dtGlobalSheet) = "ON" then
   ChkName = "dcmtptyFlag$2"  
    Browser("JUSTICEMAX_2").Page("JUSTICEMAX").WebCheckBox("dcmtptyFlag").SetTOProperty "name",  ChkName
    Browser("JUSTICEMAX_2").Page("JUSTICEMAX").WebCheckBox("dcmtptyFlag").Set "ON"
End If

however this is hard coded, i want to have a more flexible here, does not matter where A exists, then get the relevant checkbox, so name could be "dcmtptyFlag$2" or could be "dcmtptyFlag$30"


Attached Files
.doc   checkbox_help.doc (Size: 92 KB / Downloads: 107)
Reply


Messages In This Thread
how to script this - by Jenny - 10-19-2010, 05:44 AM
RE: how to script this - by Jenny - 10-19-2010, 09:31 AM
RE: how to script this - by KavitaPriyaCR - 10-19-2010, 11:27 AM
RE: how to script this - by Jenny - 10-20-2010, 03:26 AM
RE: how to script this - by KavitaPriyaCR - 10-20-2010, 10:12 AM
RE: how to script this - by Jenny - 10-21-2010, 05:12 AM
RE: how to script this - by KavitaPriyaCR - 10-21-2010, 10:48 AM
RE: how to script this - by Jenny - 10-21-2010, 10:58 AM
RE: how to script this - by KavitaPriyaCR - 10-21-2010, 11:19 AM
RE: how to script this - by Jenny - 10-21-2010, 11:24 AM
RE: how to script this - by Jenny - 10-22-2010, 03:18 AM
RE: how to script this - by KavitaPriyaCR - 10-22-2010, 10:30 AM
RE: how to script this - by sreekanth chilam - 10-22-2010, 11:48 PM
RE: how to script this - by Jenny - 10-26-2010, 03:18 AM
RE: how to script this - by manishbhalshankar - 12-14-2010, 12:29 PM

Forum Jump:


Users browsing this thread: 4 Guest(s)