how i can get the value of label box , please any body tell
me script of that code

Answer Posted / firoz basha shaik

add the object in the repository.

for ex, the object name is lblSelection

Selection = Browser("Browser").Page("Page").VBLabel
("lblSelection").GetROProperty("text")
msgbox Selection

You will come to know what value it consists of

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it possible to change the values of analog recording?

563


i am trying to automate yatra.com,in that site, when i go to automate the Leaving from field showing as a WEBEDIT, but when i enter 1 or 2 char, it displaying dropdownlist, i try to use keyboard automation to select the item from that list but it is not possible, can anybody help he. Thans for posting the Answer

3487


What is the extension of qtp local repository?

566


How will you check a web application for broken links using qtp?

542


What are the advantages of qtp?

574






How to test results for qtp ?

780


What is the descriptive programming?

1505


How can we use the "CreateObject("Shell.Application")" in QTP and what is the definition and purpose of it?

3046


Get the count of files of similar types from a folder.

967


Write the code for,In the page screen we have total 10 Links,out of these I have to click 9th link

861


what is the diff b/w assistive and mandatary rules of object repository in QTP???

1596


Explain the use of action split in qtp?

553


How do client side image and server side image work?

1378


when I try to run below script in QTP "totalPages" value is 2. But i am getting error message (Type mismatch: 'totalPages' Line (): "For i=1 to totalPages".) totalPages=Browser("Name:=User").Page("Title:=User").WebElem ent("innertext:=of.*").GetROProperty("InnerText") msgbox totalPages For i=1 to totalPages rnum=Browser("Name:=User").Page("Title:=User").WebTa ble("column names:=User Name;ID;Last Name;First Name").GetRowWithCellText("store4") If rnum>0 Then r=rnum Exit for End If Browser("Name:=User").Page("Title:=User").WebElement ("html tag:=A","x:=471").Click MsgBox "Exit" Next

3260


What is difference between design time and run time data table?

578