How to Count No. of Check Boxes in a web page by using Descriptive programming?

Questions by ramaraogoud   answers by ramaraogoud

Showing Answers 1 - 7 of 7 Answers

hanumanthvm

  • Jul 30th, 2007
 

Set BrowserObject = Browser("micClass:=Browser","CreationTime:=0")
  Set BrowserPage = BrowserObject.Page("micClass:=Page")
SystemUtil.Run www.abc.com
set Desc = Description.Create()
Desc("checkbox").Value = "on"  
set aa = Browser("Browser").Page("Page").ChildObjects(Desc)

Msgbox aa.



['Desc("html tag").Value = "A" ------for counting the links]

  Was this answer useful?  Yes

ManjuPillae

  • Mar 26th, 2008
 

'We can count the number of CheckBoxes that are present in the web Page, using
Descriptive programming.

Set ChkBox = Description.Create()
Lnk("micClass").Value = "CheckBox"

Set ChkBoxPres = Browser().Page().WebTable().ChildObjects(ChkBox)
ChkBoxCnt = ChkBoxPres.Count

MsgBox "Total Links Present in WebTable are" & ChkBoxCnt

  Was this answer useful?  Yes

kotike

  • Apr 14th, 2010
 

set oBrowser=Description.Create
oBrowser("micclass").value="Browser"

set oPage=Descripion.Create
oPage("micclass").value="Page"

set oCB=Description.Create
oCB("micclass").value="WebCheckBox"

set cBoxes=Browser(oBrowser).Page(oPage).childobjects(oCB)
msgbox cBoxes.count

I hope it will work

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions