there was an attempt to perform an action at a point which is beyond the screen
Hello All
I was wondering how many have experienced this error message with regards to the fact the TestComplete does not know how to recognize an object that exists on a web page, however not visible on the screen (meaning that you have to scroll to view it).
How did you resolve it?
Shouldn't this be at the core of what an automation tool is?
Here is what I found on Smarbear support site:
Needless to say that the "Possible Causes of Problem" sections is missing the simple fact that testcomplete can't scroll and identify an object.
The answer I received from tech-support is to use the method scrollIntoView(). This is not smartbear method.
https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView
I implemented the method but as it stands, during PLAYBACK, TC will behave inconsistently, scrolling at times, while other times it will fail
I look forward to a community member to help me solve one of the challenges I am having using TestComplete.
Thank you
function test(url, str) { var btn_PropArray, btn_ValuesArray, page, btn; var box_PropArray, box_ValueArray, box; // Creates arrays of property names and values btn_PropArray = new Array("ObjectType", "contentText"); btn_ValuesArray = new Array("Button", "Send To Employee"); // Searches for the button page = Sys.Browser("chrome").Page(url); btn = page.FindChild(btn_PropArray, btn_ValuesArray, 2000); if (btn.Exists) { Log.Message(btn.FullName); btn.scrollIntoView(); btn.Click(); } else Log.Error("The object was not found."); // Creates arrays of property names and values box_PropArray = new Array("ObjectType", "textContent"); box_ValuesArray = new Array("Label", str); // Searches for the check box box = page.FindChild(box_PropArray, box_ValuesArray, 2000); if (box.Exists) { Log.Message(box.FullName); box.scrollIntoView(); box.Click(); } else Log.Error("The object was not found."); }