I will try to give you additional information. I am trying to hit the LoginButton, sa you can see on the attached picture, but the TC si clickeng on the location found by ObjectSpy(on the left from the actual location). I am using the NativeWebObject method to find the object, so it should be unique and it works like a charm in IE. There has to be something wrong with Chrome or with TestComplete extension. Any ideas please?
function test2()
{
//Browsers.Item("chrome").RunOptions = "disable-web-security";
//Browsers.Item("chrome").RunOptions = "allow-file-access-from-files";
//Browsers.Item("chrome").RunOptions = "disable-hang-monitor";
//Browsers.Item("chrome").RunOptions = "allow-insecure-websocket-from-https-origin";
//Browsers.Item(btIExplorer).Run(url);
//Browsers.Item(btChrome).Run(url);
page = Sys.Browser("chrome").Page(url);
//page = Sys.Browser("iexplore").Page(url);
Log.Picture(page,"page");
var LoginButton = page.NativeWebObject.Find("id","LoginButton","div");
if (LoginButton.Exists)
{
Log.Picture(LoginButton,"LoginIcon");
LoginButton.Click();
}
else
{
Log.Error("not found")
}
}