Unified Functional Testing (formerly QTP) News and Support Forum
Showing results for 
Search instead for 
Do you mean 

QTP Function to Check or Uncheck a Web Checkbox

Contributor

QTP Function to Check or Uncheck a Web Checkbox

[ Edited ]

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
1 REPLIES
Occasional Visitor

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.