if there is a web table of having row and colmns.a button is
placed at 2nd row's 3rd column which is worked for both edit
and delete..how to write script for the button to test both
operation on the web table using desriptive programing..
plz help me on script wheather using getroproperty
Q2)what is the command for taking valiue from a web table in qtp
Answers were Sorted based on User's Feedback
Answer / ganesh kumar
Using Descriptive Prograaming first identify the Properties
that are unique to recognize the webtable. After use
the 'ChildItem' method of webtable and create a Dynamic
object Model and then use the GetROProperty to fetch the
name of the button placed at 2nnd row and 3rd column.
Ex:
set objButton=Browser().page().frame().webtable().childitem
(2,3,"WebButton",0)
strname=objButton.getroproperty("name")
msgbox strname
The Above code Displays the name of the Button placed at
2nd row and 3rd column
| Is This Answer Correct ? | 24 Yes | 2 No |
Answer / narendra
Answer for 2nd question is
Browser().page().WebTable.GetCelldata(2,3)
| Is This Answer Correct ? | 17 Yes | 4 No |
Answer / sada
Using Descriptive Prograaming first identify the Properties
that are unique to recognize the webtable. After use
the 'ChildItem' method of webtable and create a Dynamic
object Model and then use the GetROProperty to fetch the
name of the button placed at 2nnd row and 3rd column.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / saravanaraja
The Below code is working for a Grid that contain Many rows.
Here .* indicate Page Title. Index number indicate 5 th row
Delete Link.
Browser("Title:=.*").Page(("Title:=.*").Link("html id:= ;
Index=4).Click
| Is This Answer Correct ? | 4 Yes | 3 No |
Answer / naina
Using Descriptive Prograaming first identify the Properties
that are unique to recognize the webtable. After use
the 'ChildItem' method of webtable and create a Dynamic
object Model and then use the GetROProperty to fetch the
name of the button placed at 2nnd row and 3rd column.
Ex:
set objButton=Browser().page().frame().webtable().childitem
(2,3,"WebButton",0)
strname=objButton.getroproperty("name")
msgbox strname
objButton.Set "Example" //For Webedit opertaion
objButton.Click //For Delete opertaion
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / ashish srivastava
For Ques 1
Browser().page().webtable().childitem
(2,3,"WebButton",0).Click
For Ques 2
strname=Browser().page().webtable().GetCellData(2,3)
msgbox strname
| Is This Answer Correct ? | 0 Yes | 0 No |
Hi. GetRoProperty and OUTPUT Value Both are same purpose or not? plz explain in deatil with example?
what is the latest version of QTP? Main difference between 9.2 and 10 version
what are the limitations of smart identification in qtp 9.0
Is there anyway to automatically update the Datasource name in Database Checkpoints object when we migrate tests to a new release?
What is the Maximum syncronization timeout in seconds in QTP 9.5
Hi I have exp in manual testing and planning to move in automation testing qtp(9.2).So can help me how to automate customer relationship management tool using qtp and vb script this tool already developed so how can I test it whatever maintaining by development team like documents,various options just give the whole life cycle thanks in advance
Have you worked with QC?
Hello Guys, Can anybody Explain me about Automation framework?? and how can we prepareAutomation Framework using QTP
How to recognize and read data from pdf file using Descriptive Programming in QTP?
Is it possible to call win runner script in qtp?
How to make arguments optional in a function?
i have read that "non-reusable actions can not be called in any other test".but in 'call to copy action' copies non-reusable action in other test also..can u pls help to understand this..