Elements detected but is beyond the screen.
Using Chrome Version 145.0.7632.117. We want to test with the latest version.
Using TestComplete Version: 15.76.5.7 x64
TLDR; version
browser.BrowserWindow.Maximize();Maximize() makes my test fail because it thinks an object is off screen. Logging the browser position I see negative left and top results. The object is also outside the browser window.
Anyone else has this?
Long version
I only have this issue when I maximize the browser window.
Logging: Browser window position and size L,T,W,H = -8,-8,1910,911
Then my search box was not clickable, although I could see it on my screen.
Logging error: There was an attempt to perform an action at a point, which is beyond the screen.
Logging the position and size of the search box reveled that it indeed was going of screen
Logging: Search box position and size L,T,W,H = 2600,336,186,31
Seems related to Elements detected, clicked in wrong location with Chrome | SmartBear Community but was requested to create new post.
My temp solution: setting a fixed browser window within the bounds of the window.
var browserWnd = Sys.Browser("chrome").BrowserWindow(0);
browserWnd.Restore();
browserWnd.Position(Left, Top, Width, Height);