Contributions
Re: Google Chrome v36
Unfortunatelly this solution does not work for me, I keep receiving that ChromeNativeObject is not supported property so I tried something similar and the result is the same as before, instead of clicking on the LoginButton, the TC is hitting location on the left from the actual LoginButton location :/ I thought it might have been caused by the fact that my page is https so I tried to run the Chrome with disabled security option but with the same result. function Test10() { //Browsers.Item("chrome").RunOptions = "disable-web-security"; var url = "https://m-feature-client-multi-brand.spinsport.ludologic.com/mobile_betway_com/en/sports/#page=1"; Browsers.Item(btChrome).Run(url); // Press the "Login" button using the native click() method var object=Sys.Browser("chrome").Page(url).FindChildByXPath("//div[@id='LoginIcon']"); object.Click(); } Please see the attached screenshot. If you have a clue, please send me a message. I do not really rely on SmartBear support since It is been a while they send me an email and all was like "check your zoom etc."2.5KViews0likes0CommentsRe: Google Chrome v36
Hi there, I can confirm I have been facing the same behaviour as you. Do not ask me why, I assume that objects within Chrome have to be treated differently but I might have good news for you, try to execute the following test. I have been able to hit the Submit button in Chrome. Cheers function Test2() { var url = "http://support.smartbear.com/Samples/TestComplete10/WebOrders/Login.aspx"; Browsers.Item(btChrome).Run(url); var page = Sys.Browser().Page(url); page.FindChildByXPath("//input[@type='text']").SetText("Tester"); page.FindChildByXPath("//input[@type='password']").SetText("test"); // Press the "Login" button using the native click() method page.FindChildByXPath("//input[@type='submit']").NativeChromeObject.click(); }2.5KViews0likes0Comments- 2.5KViews0likes0Comments
Re: Google Chrome v36
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 theNativeWebObject 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"; var url="https://m-feature-client-multi-brand.spinsport.ludologic.com/mobile_betway_com/en/sports/#page=1"; //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") } }2.5KViews0likes0CommentsRe: Google Chrome v36
Dear Tanya, just to avoid pointless conversation. I have already tried all suggestions from this pagehttp://support.smartbear.com/viewarticle/62859/ Reinstall both TC as well as chrome, checked that the extension is enabled, verified that emulation is disabled in Chrome etc. etc. Please do you have another reasonable advice? Thank you2.5KViews0likes0CommentsRe: Can only see objects in IE, not Chrome or Firefox
Hi all, unfortunately I am facing the same issue. I do not have any problems with objects identification in IE but object identification in Chrome is not working properly. When I use object spy then I see element on places which are not corresponding with actual location. I am using TC 10.30 and Chrome 36. I have tried all suggested solution but unsuccessfully. Any ideas?2.2KViews0likes0CommentsRe: Google Chrome v36
Hi Test cl, unfortunatelly I am facing the same problem. Generally with web objects location within the page. I am trying to click on the Login icon from Jscript. When I use Iexplore for the same script everything works like a charm, but when I use Chrome, then TC is actually clicking on the wrong position on the page istead of on the login icon. - I am using native webpage method, meaning I will findweb object according to his id, store it and then trying to click on it. I have tried almost everything, reinstalled both TC as well as Chrome, the extension is allowed, run chrome in different modes, nothing is working :/ Please let me knoe if ou find the solution or cause of the problem. Thank you2.1KViews0likes0Comments- 1.3KViews0likes0Comments