GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Testing Tools  >  QTP
Go To First  |  Previous Question  |  Next Question 
 QTP  |  Question 223 of 684    Print  
What is the method used to focus on particuler field.I need the script.
I will give example.
I flights application login page by default the focus is on username field. for this i will check the focus was there or not by using getroproprty method but if focue is not there which method i need to use.

  
Total Answers and Comments: 3 Last Update: July 19, 2006     Asked by: jyothi 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: kallol raha
 
to explicitly set focus on a control use .object.focus

Above answer was rated as good by the following members:
richardpaulhall
June 07, 2006 18:30:12   #1  
Uma        

RE: What is the method used to focus on particuler fie...

If the Focus is not there then you have to set it.by using the following method

SetRoProperty


 
Is this answer useful? Yes | No
June 08, 2006 07:03:18   #2  
sreepalgummalla        

RE: What is the method used to focus on particuler fie...

hi guyss.....

What is the method used to focus on particuler fie...?

getroproperty: retrives the pericula property.

setroproperty: set the property to perticula object....

to focus to the perticulat text we can use this method:

object.GetTextLocation (TextToFind Left Top Right Bottom [MatchWholeWordOnly])

object.GetTextLocation (TextToFind Left Top Right Bottom [MatchWholeWordOnly]


 
Is this answer useful? Yes | No
July 19, 2006 07:08:04   #3  
kallol raha        

RE: What is the method used to focus on particuler fie...
to explicitly set focus on a control use .object.focus
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape