In a web application , there is a table of rows and coloums
, i want to pickup the 1st row and 3rd coloums name (not
data)how can any one explain
Answers were Sorted based on User's Feedback
Answer / lakshmareddy bhavanam
By using getcelldata(rows,columns)
ex:- browser().page().webtable().getcelldata(1,3)
the above answer is not correct please send thee correct
answer
my mail id is bhavanamlakshmareddy@gmail.com
| Is This Answer Correct ? | 4 Yes | 4 No |
Answer / udham
a = browser("creationtime:=0").page("title:=.*").webtable("name:=All").ChildItem (1,3,"Link",0).getroproperty("outertext")
msgbox a
'i hav give link in childitem
if it is webedit then use that one.
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / anu
driver.findElemement (By.xpath(html/body/table/tbody/tr[1]/th[3])).getText();
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / kishan
In a WebTable, always the first Row will be "Column Names".
so when you use the statement
clmName=Browser("A").Page("B").webTable("C").getcelldata(1,3)
It will only give you ColumnName not the value under that
column.
| Is This Answer Correct ? | 0 Yes | 2 No |
Answer / guest
Hi,
Using this statement u can get Row value
value=Browser().Page().Frame().WebTable().GetCellData(row,
column)
| Is This Answer Correct ? | 1 Yes | 5 No |
Write a code check the checkbox in the web table which is in the 4th row and fifth column (Use child item concept)
How do u override the meaning of a standard object in QTP?
How to load a object repository(using VBScript) ... very urgent....
What is dynamic arrays
what is the difference between data table and spread sheet?
does QTP provides any tools for parametrisation?
in how many ways you perform batchtesting?
how to write vbscript on web applications in qtp. explian with one example?
what are the settings to be done to make the recovery scenario created for one test to be used bye all the other tests. please tell me recovery scenario process in detail.
what the difference between shared repository and per action repository?
How many types of parameters are available in quicktest professional (qtp)?
I have 5 save buttons in 5 tabs . The tabs are placed one after the other. My object repository have these added as 5 save buttons with name sav1, save 2, save 3 , save 4, save 5 .all are getting highlighted from OR but they are not getting clicked. After spying each button all the properties are same except First button Index 0 html id:=btnSaveTab1 outerhtml:=<input id=""btnSaveTab1"" class=""Button"" onclick=""document.getElementById('a1').click();"" name=""btnSaveTab1"" value=""Save"" type=""button"">", Second button "html id:=btnSave "outerhtml:=<input id=""btnSave"" class=""Button"" onclick=""document.getElementById('a2').click();"" value=""Save"" type=""button"">", Third button "html id:=", outerhtml:=<input id=""btnSaveTab1"" class=""Button"" onclick=""document.getElementById('a1').click();"" name=""btnSaveTab Fourth button "html id:=btnSave outerhtml:=<input id=""btnSave"" class=""Button"" onclick=""document.getElementById('a2').click();"" value=""Save"" type=""button"" 5th button "html id:=", "outerhtml:=<input class=""Button"" onclick=""document.getElementById('a5').click();"" value=""Save"" type=""button"">",