![]() |
Element not found - VbWindow - 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: Element not found - VbWindow (/Thread-Element-not-found-VbWindow) |
Element not found - VbWindow - edj1 - 02-24-2012 I hope someone can help me with this one. The way my script is working is one window (parent) opens another window (child). Then I am trying to clear and write data into the Child Window. The coding is as follows; Code: VbWindow("Child Window ").VbEdit("FieldOne").Type micBack As soon the script hit this line I am getting the following error message “Element not found” I even tested, using the script below, if QTP sees the window/filed and it works Code: If VbWindow("Child Window").VbEdit("FieldOne").Exist(5) Then May someone let me know what I am doing wrong? Thanks RE: Element not found - VbWindow - inborntester - 02-25-2012 you may typed Backspace button while recording, remove this line and run the script. if you are done this for clearing edit field data means, it no need i think. set the new value clear the old data, so remove the mentioned code and try. RE: Element not found - VbWindow - edj1 - 02-27-2012 Hi I do not believe this is the issue. I check for that many times. The VbWindow("Child Window") and .VbEdit("FieldOne") is recognized by QTP through Object Repository Manger. However when I run this line in the script it appears that QTP does not sees the objects . Thanks RE: Element not found - VbWindow - inborntester - 02-27-2012 it may be sync issue. can you add wait(5) before that statement for a quick check?. if its because so means use WaitProperty for synchronization. RE: Element not found - VbWindow - edj1 - 02-29-2012 I tried it and it still does not work. This is strange as in the Object Repository Manager the object is identified however when I run the script I am getting and error. |