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
Is it possible to change the values of analog recording?
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
What is the extension of qtp local repository?
How will you check a web application for broken links using qtp?
What are the advantages of qtp?
How to test results for qtp ?
What is the descriptive programming?
How can we use the "CreateObject("Shell.Application")" in QTP and what is the definition and purpose of it?
Get the count of files of similar types from a folder.
Write the code for,In the page screen we have total 10 Links,out of these I have to click 9th link
what is the diff b/w assistive and mandatary rules of object repository in QTP???
Explain the use of action split in qtp?
How do client side image and server side image work?
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
What is difference between design time and run time data table?