Contributions
Re: Textnode problem
@william_roe Hey this information related to "Name Mapping Template" was new learning for me. Thanks for that:smileyhappy: After reading thisarticle I found that the required objects should be already mapped in order to use"Name Mapping Template". Note: I know we canadd objects to the Name Mapping repository in several ways: Automatically when recording tests and creating checkpoints. Manually from the screen, from the Object Browser or from other TestComplete panels. From scripts. (using AddNamedChild) Thus I got questions: How you add objects to Name Mapping repository? (from above 3 methods or any other way) And do you map each and every object?1.5KViews0likes2CommentsRe: Textnode problem
Hi Blur, Actually I started directly with TestComplete 11 and came up with that. and its not yet updated 11.11:smileyindifferent: And if it could be fixed then it would be really helpful.:smileywink: And here is small editing in my MapObjectsForLogin function: Old Code: Edited code: Just used FindChild() Method. This will reduce complexity of script. But Parent object (e.g. here 'LoginForm' and not 'LoginPage') must not be huge. else it will again take lot of time What I mean is parent object should not contain large no. of child objects (more no. of childs more time will take to load that control)2.1KViews0likes0CommentsRe: Textnode problem
Hi, Note: This reply is done assuming you doing "scripting". I feel some times the objects which are already mapped in TestComplete requires lot of time beacuase of following reasons: Mapping of objects is not done "end to end". i.e. not all parent objects of the required object are mapped.Only few of the parent objects are mapped Example if required object is "F" and hierarchy is A - B - C - D - E - F. Then TestComplete may map A - C - F. Not all parent objects Thus while run time (i.e. at playback time) TestComplete internally tries to implement "FindChild()" to find that object on page. This will certainly take some time, if the requried object is placed way down in the hierarchy. So what I do? I don't map objects. Yes, I don't map objects. I simply do it scripting way. I do my own "end to end"mapping of those objects in my script. (mapping all parent objects). Thus no need to search object at run time and time gets saved. Sample code: //Controls var textBox_Username; var textBox_PasswordBox; var button_Login; //Mapping Function function MapObjectsForLogin() { var LoginPage = Aliases.browser.LoginPage; textBox_Username = LoginPage.Panel("LoginPanel").Panel("LoginPanelBody").Panel("LoginForm").Textbox("username"); textBox_PasswordBox = LoginPage.Panel("LoginPanel").Panel("LoginPanelBody").Panel("LoginForm").Passwordbox("password"); button_Login = LoginPage.Panel("LoginPanel").Panel("LoginPanelBody").Panel("LoginForm").Link("login"); } //Login Sample Function function Login(username, password) { MapObjectsForLogin(); textBox_Username.SetText(username); textBox_PasswordBox.SetText(password); button_Login.Click(); }2.9KViews1like23CommentsRe: Cannot find any existing or open blank page in Firefox 40, Chrome 43 using Test Complete 11
Thanks for reply Everseeker, I have done that, but it did,nt helped. Infact I have tried all possible ways to start the browser (as per belows link): https://support.smartbear.com/viewarticle/68727/) Later I checked version supportted by TestComplete 11 from: https://support.smartbear.com/viewarticle/72106/ I found my Chrome was at version 45.0.2454.93 and as per above link it supports it. But it does work!! Samecase withFirefox. My Firefox browser was at version 40.0.3,as per above link it supports it. But it does work!! Later I installed Firefox version 40.0.2and its disabled auto update. And then it worked fine. Sadly I could not find previous version of chrome.:smileysad: CurrentlyI am using: Internet explorer 8 Firefox 37 Waiting for either old version of chrome or Testcomplete to support it:smileyfrustrated:2.3KViews0likes0CommentsRe: Cannot find any existing or open blank page in Firefox 40, Chrome 43 using Test Complete 11
Hello Tapamiti, I am facing the same issue for browsers: chrome, firefox. Working fine with Internet explorer 8. The browser gets opened but it cannot navigate to any page further :( Did you got the solution?? Please reply as this is causing a great hurdel in my automation project. Thanks2.4KViews0likes2Comments