Contributions
Re: Google Chrome v36
Hi, Martin, Thanks for your solution. It works for me by adding 'NativeChromeObject' in the script. ie form.submitbuttonLogin.NativeChromeObject.click(); I didn't use any FindChildByXPath method to locate the page element, as I expect that the recorded script could run successfully with slighty changes (not use different methods). However, I have found another way to fix my issue without using the NativeChromeObject. I simply use the keyboard input 'Keys([Enter])' to press Enter on the Login button. ie. form.submitbuttonLogin.Keys("[Enter]"); Maybe you can try to use keyboard input method if it works. It would be great if someone can suggest another solution to actually click the Login button on the page instead of pressing the Enter key. If it still does not work, I hope SmartBear support staff can help.2.5KViews0likes0CommentsRe: Google Chrome v36
Finally, someone is also encounting the same Chrome v36 issue I raised 18days ago. Hi Martin, I haven't resolved the problem. I am disappointed that I haven't received any reasonable advice from SmartBear support staff to resolove this simple problem when I have already provided detailed information. Can you try my test if you can reproduce the same error on your chrome. I appreciate your help. My script is really simple to launch 'TestComplete example website' and enter username and passward, and then click Login button. It works on IE 11.0 (64bit) perfectly but fails when clicking the Login button on Google Chrome 36 (all users) . See my attached chrome error document for the detailed error logs. I run this JScript test on windows 8.1. 1) test passes on IE. function IETest() { var browser; var form; var panel; var textbox; TestedApps.WebOrders_Login_IE.Run(); Browsers.Item(btIExplorer).Navigate("http://support.smartbear.com/Samples/TestComplete10/WebOrders/Login.aspx"); browser = Aliases.browser; form = browser.pageSupportSmartbearComSamplesTe.formAspnetform; textbox = form.textboxMaincontentUsername; textbox.SetText("Tester"); form.passwordboxMaincontentPassword.SetText("test"); form.submitbuttonLogin.ClickButton(); } 2) test fails on Chrome. function ChromeTest() { var browser; var page; var form; var passwordBox; TestedApps.WebOrders_Login_Chrome.Run(); Browsers.Item(btChrome).Navigate("http://support.smartbear.com/Samples/TestComplete10/WebOrders/Login.aspx"); browser = Aliases.browser; page = browser.pageSupportSmartbearComSamplesTe; form = page.formAspnetform; form.textboxMaincontentUsername.SetText("Tester"); passwordBox = form.passwordboxMaincontentPassword; passwordBox.SetText("test"); form.submitbuttonLogin.ClickButton(); <<--- failed at this line. } Another problem is that I even can't find the 'Login' button control using Object Spy on Chrome. However, I can do it on IE. Just to clarify that I have already enabled the Chrome extension. The test stopped at the following line: ...> form.submitbuttonLogin.ClickButton(); "There was an attempt to perform an action at point (41,31) which is invisible or out of the window bounds" Any help?2.5KViews0likes0Comments- 2.1KViews0likes0Comments
- 2.1KViews0likes0Comments
- 2.1KViews0likes0Comments
Re: Google Chrome v36
Thanks guys Test Complete can launch the website, and enter user name and password correctly, but the script fails and stops at the clicking login button with the following error: form.submitbuttonLogin.ClickButton(); "There was an attempt to perform an action at point (41,31) which is invisible or out of the window bounds" I can see that there is a message 'waiting until the overlapped window become visible' showing on the top right corner when running the script. I dont think it is related to the timing issue as I add the breakpoint on the clicking button line and then the script still fails. Script ===== function Test2() { var page; var form; var textbox; TestedApps.WebApp1.Run(); Browsers.Item(btChrome).Navigate("http://support.smartbear.com/Samples/TestComplete10/WebOrders/Login.aspx"); page = Aliases.browser.pageSupportSmartbearComSamplesTe; form = page.formAspnetform; textbox = form.textboxMaincontentUsername; textbox.SetText("Tester"); form.passwordboxMaincontentPassword.SetText("test"); form.submitbuttonLogin.ClickButton(); <<--- script stops here page.Wait(); page.formAspnetform.linkLogout.Click(); page.Wait(); }2.1KViews0likes0CommentsGoogle Chrome v36
Is Google Chrome v36 supported in Test Complete 10.3? My simple Jscript can't click the 'Login' button and fails with the overlapped window. ie. form.submitbuttonLogin.ClickButton(); I've also enabled the 'Ignore Overlapped Window' in my project and added SetFocus on the Login button. But it still fails. Any help? Browsers.Item(btChrome).Navigate("http://support.smartbear.com/Samples/TestComplete10/WebOrders/Login.aspx"); browser = Aliases.browser; page = browser.pageSupportSmartbearComSamplesTe; form = page.formAspnetform; form.textboxMaincontentUsername.SetText("tester"); passwordBox = form.passwordboxMaincontentPassword; passwordBox.SetText("test"); form.submitbuttonLogin.ClickButton(); page.Wait(); page.formAspnetform.linkLogout.Click(); page.Wait(); browser.BrowserWindow.Close(); }5KViews0likes20Comments