How will you send values to a cell in a webtable using QTP?
Answers were Sorted based on User's Feedback
For WebTable object, you can retreive the cell data but
can't set any value directly.
To retreive data.
val = Browser().Page().WebTable().GetCellData(row,column)
To set the value.
If you want to set any value on cell, you can do it on its
child objects.
So make sure what is the child object of that cell i.e.
either WebEdit or WebCheckBox or WebRadioButton etc...
Using the method, you can set the value to that child objet.
Using ChildItem method, you can fetch the child object of
the cell.
Browser().Page().WebTable().ChildItem
(row,col,ChildObjClassname,index of the child
object).Set "abcd"
or
Set ChildObj = Browser().Page().WebTable().ChildItem
(row,col,ChildObjClassname,index of the child object)
ChildObj.Set "abcd"
E.g.
Set ChildObj = Browser("ab").Page("cd").WebTable
("de").ChildItem(row,col,WebEdit,0)
ChildObj.Set "abcd"
If the cell has more than multiple similar child objects,
then you need to take care of the object index.
Is This Answer Correct ? | 38 Yes | 6 No |
Explain synchronization types in QTP
what is meant by automation tool?
How can we disable popup blocker? (I think it means when we get a pop up messge(its error) how we wil disable that one with out interrupting normal process)
Is it possible to run QTP scripts created in IE 6.0 in IE 7.0?
Can we install QTP on remote server and access it as a web application on other system (client place)? If so please let me know. Thanks in advance, Ravi
What are the benefits of qtp?
how we can take data in the username field text box into variable in web application explain with example and give all functions to get data into variables
HOW TO COUNT NUMBER OF ITEMS PRESENT IN WEB LIST
What is the differnce between action & script
several browsers opened. write QTP script to close all browsers except gmail.
How can we upload pdf files in qtp?
How to use actions in qtp ?