QTP Function to Check or Uncheck a Web Checkbox (2874 Views)
Reply
Contributor
Nucleation
Posts: 20
Registered: ‎09-03-2012
Message 1 of 2 (2,874 Views)

QTP Function to Check or Uncheck a Web Checkbox

Function which checks or uncheck a web checkbox. This QTP function will check or uncheck the specified web checkbox based on the value given in function call.

 

Read More>>

Kannan S
Test Engineer
Ernst & Young
Please use plain text.
Occasional Visitor
spmishra2u
Posts: 1
Registered: ‎12-22-2013
Message 2 of 2 (2,427 Views)

Re: QTP Function to Check or Uncheck a Web Checkbox

'Systemutil.Run "iexplore.exe","http://www.nucleation.in/check-uncheck-checkbox-web-table/?fb_ref=recommendations-bar"
'wait(10)

row=Browser("QTP Function to Check").Page("QTP Function to Check").WebTable("SNo").GetRowWithCellText("Passenger 1",2,2)
msgbox(row)
wait(2)

Browser("QTP Function to Check").Page("QTP Function to Check").WebTable("SNo").ChildItem(row, 2, "WebCheckbox", 1).set "ON"


Error:-Object Required[At last line].

Just copy it in qtp and run it and add the web table into object repositary.If u r able to cheke the check box plz send me the code @ spmishra2u@gmail.com.

Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation