Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Element not found - VbWindow
#1
Not Solved Wink 
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
MsgBox "I can see the Child Window and FieldOne"
End if

May someone let me know what I am doing wrong?

Thanks
Reply
#2
Not Solved
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.
Reply
#3
Not Solved
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
Reply
#4
Not Solved
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.
Reply
#5
Not Solved
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Object not found during the 2nd iteration of an Action call in a For loop BGunay 0 849 04-23-2020, 07:08 PM
Last Post: BGunay
  Page element keep changing chong67 4 4,271 11-08-2016, 09:17 PM
Last Post: Paul Rammone
  Choosing element from array marvson 1 1,786 06-29-2016, 02:55 PM
Last Post: Ankesh
  Web Element: Not able to select value from drop down in Web Element. Rajeev 4 4,994 08-04-2015, 06:03 PM
Last Post: kbhargava505
  How to capture tool tip within a web element frebuffi 3 3,525 11-10-2014, 10:06 AM
Last Post: learning_UFT

Forum Jump:


Users browsing this thread: 1 Guest(s)