Need Help in Identifying an Object - 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: Need Help in Identifying an Object (/Thread-Need-Help-in-Identifying-an-Object) |
Need Help in Identifying an Object - ritesh - 05-20-2010 I'm experiencing a weird thing. In my application if I select a value(Download Document) for a field, an URL text field will be displayed requesting for a path to download. If I leave this URL field blank and click on Select button an error message pop’s up saying the URL field cannot be blank. The above scenario is working fine when we do it manually. But when I automate the above scenario the value(Download Document) gets selected and the error message does not pop up. The script looks like this: Code: Browser("name:=Text Format.*").Page("title:=Text Format.*").Image("file name:=s.gif").Click I also tried by using the WScript Code: Set oObject=CreateObject("Wscript.Shell") Please help me… Thanks, Ritesh |