About GetToProperty - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: About GetToProperty (/Thread-About-GetToProperty) |
About GetToProperty - bfakruddin - 01-27-2009 Hello friends... Here I provided code to get the roproperty and toproperty for links in yahoo page, while running script I am getting small issue here is Run Error Showing "The "Are you protected? " Link object was not found in the Object Repository. Check the Object Repository to confirm that the object exists or to find the correct name for the object." with Stop, Retry, Skip, Debug and Details buttons. If I press Skip it moves to next Link again I got a pop up "The "Create your sign-in seal. " Link object was not found in the Object Repository. Check the Object Repository to confirm that the object exists or to find the correct name for the object." then I press skip, it identify links and provided results If I change the Property it is working but not with outertext and text why? Please explain why it is behaving like this and how to solve this? 'I added objects to OR here Code: 'systemutil.run "www.yahoomail.com" RE: About GetToProperty - hari_krishna - 01-27-2009 Hi Try the below function.... the concept is same as urs..... Code: Function clickonlink(slinkname) *** calling the Function*** Code: clickonlink("Signup") *** Let me know if u face any problem with this.... RE: About GetToProperty - bfakruddin - 01-27-2009 'Make correction and one more thing this is not I asked, please give me correct answer for my question. Code: Function clickonlink(slinkname) '*** calling the Function*** Code: clickonlink("Learn more") RE: About GetToProperty - sreekanth chilam - 01-28-2009 HI , Just use the "trim" function as shown below & now check it out. Code: roval=trim(li(i).getROproperty("outertext")) I can assure that it would work. RE: About GetToProperty - bfakruddin - 01-28-2009 Thank You Sreekanth, But My Exact Question is about GetToProperty... While Executing the Script QTP fail to get the value of Test Object Property. error is :"The "Are you protected? " Link object was not found in the Object Repository. Actually This is Available in OR, then why QTP is fail to get the value of outertext property for this link and one more in my question. Please explain clearly thanks & regards Baba Fakruddin.D RE: About GetToProperty - sreekanth chilam - 01-28-2009 Hi , The below code is working for me.......I am not getting any errors as u said....... Infact the length of roval(len(roval)) is not equal to the length of toval(len(toval)) .....(it seems roval is taking extra blank space , hence i have used "trim" while retrieving roval....So its fine now .....as below code ) Code : Code: 'systemutil.run "www.yahoomail.com" |