![]() |
|
Need help in doing SET on WebEdit inside WebTable - 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: Need help in doing SET on WebEdit inside WebTable (/Thread-Need-help-in-doing-SET-on-WebEdit-inside-WebTable) |
Need help in doing SET on WebEdit inside WebTable - chong67 - 09-26-2012 I am trying to do DP on a SET on WebEdit that is inside a WebTable. =================== This is what recording capture: Code: Browser("Delta - Book a flight").Page("Delta - Book a flight").WebEdit("paxFFNumber[0]").Set “12345678”=================== This is what I write using DP and it didn’t work: Code: Browser(“name:=Delta - Book a flight”).Page("title:=Delta - Book a flight").WedEdit("html id:=paxFFNumber\[0\]", "name:=paxFFNumber\[0\]").Set "12345678"=================== Object Spy properties: Code: "Class Name:=WebEdit",RE: Need help in doing SET on WebEdit inside WebTable - Sathiya - 09-27-2012 Check whether the following lines working fine or not Code: Browser(“name:=Delta - Book a flight”).HighlightRE: Need help in doing SET on WebEdit inside WebTable - Jyobtech - 09-28-2012 Hi Use this logic: Code: Browser("title:=Delta - Book a flight.*").Page("title:=Delta - Book a flight.*").WedEdit("html id:=paxFFNumber\[0\]", "name:=paxFFNumber\[0\]").TrueCode: Browser("title:=" & gWebAppTitle).Page("title:=.*").SAPEdit("name:=" & NewName & ".*","INDEX:=" & FieldIndex, propType, "visible:=True")RE: Need help in doing SET on WebEdit inside WebTable - Ankesh - 09-28-2012 @chong67, You code is worng. Look at the screenshot one more time. It says 'Object does not support the property or method Broswer(..).Page(..).WedEdit Please note there is nothing called WEDEDIT in QTP/Web. It has to be WebEdit. Replace the code and check if it works. Regards, Ankesh |