Forum Discussion

alletestcomplet's avatar
12 years ago

"X" buttons are not working fine with testcomplete 8.7



testcomplete 8.7 is not working properly when  it try click "x" button on an overlay of the webpage.

Getting the following Error message in the Logs

object.click



There was an attempt to perform an action at point (48, 6) which is invisible or out of the window bounds.



we tried with below methods.



set  window = Aliase.IE.Page("*")

  window.NativeWebObject.Find("HREF", "*choosepath.act*","A").click

and

  set object= window.NativeWebObject.Find("HREF", "*choosepath.act*","A") 

  object.focus



recently we migrated to lot of automation to test complete8.7 , Most of the automation are impacting due to above issues.

please provide the solution with out effecting existing automation.

1 Reply

  • Hi,



    Are you sure that the correct object is found when you call NativeWebObject.Find? The condition you set there is quite general, and since you search the entire page, another object which meets the same condition can be found. In this case, if this object is hidden behind your overlay item, you will get this error.



    So, first of all, make sure that you obtain the correct object by checking its FullName. As a better solution, avoid searching the entire page. Obtain the object which corresponds to your overlay item and work with its children instead of just calling page.NativeWebObject.Find to get to your button.