Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WebElement disappears on change of focus
#1
Not Solved
I am using Win7 64 bit, UFT 12.01, and ALM 11.52. This problem also was encountered in QTP 10 and 11.0.

I am writing a test for an application that starts with a search for records for editing. It can accept one of several different parameters or sets of parameters. After clicking search, a check for validity of parameters or proper credentials to edit the specified record exists. If any of these returns with an error, that is reported in a web element. I need to be able to read the inner text of this web element to report why the test failed, or to compare against a list of specified strings to indicate that the expected error was indeed returned. My problem is that when focus changes, the web element disappears. This focus change seems to occur whenever UFT attempts to read the object. I may be misidentifying the exact sequence of events that occurs behind the scene, but the net effect is the same. When I try to read the runtime property of the web element, it disappears. Can anyone direct me to where I can learn how to read this web element without triggering the event that destroys the web element?

Thank you!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to change the column name of datatable runtime in UFT sagar.raythatha 0 2,552 01-16-2017, 05:54 PM
Last Post: sagar.raythatha
  SendKeys changing focus to IE url when executed from framework psova 0 2,121 06-09-2015, 07:19 PM
Last Post: psova
  Reason for change in object properties Sathiya 5 3,246 07-22-2013, 12:03 PM
Last Post: basanth27
  Not able to do any operation on upper applet when focus is on lower applet. sonqtp 0 1,845 06-18-2012, 02:23 PM
Last Post: sonqtp
Question Output an object that currently has "focus" on the form D2010 1 3,346 08-04-2010, 03:25 PM
Last Post: D2010

Forum Jump:


Users browsing this thread: 1 Guest(s)