Contributions
Re: How to propagate script changes back to the keyword test?
rraghvani, thank you so much for all of your help. I am marking my question as solved. - My parent Ribbon object has 3 children, Window("ToolbarWindow32", "Main", 2),Window("ToolbarWindow32", "Typical", 1), andWindow("#32770", "Ribbon", 1). I am able to individually select buttons only on theWindow("#32770", "Ribbon", 1) icon bar but I can get my test to complete by running from the script. Thank You again! There is a LOT to learn!376Views1like0CommentsRe: How to propagate script changes back to the keyword test?
Thank You! I do not see Ribbon2 anywhere either. Yet when I run the keyword test is fails with Ribbon2Error. When I look at the script generated from the keyword test I get this: Aliases.draft.wndAfx.Ribbon2.Main.CheckItem(40068, true, false); I change it toAliases.draft.wndAfx.Ribbon.Main.CheckItem(40068, true, false);running the script also fails because it does not find Main which is why I insertAliases.draft.wndAfx.Ribbon.WaitVCLNETObject; Delay(5000); and save. Now the script succeeds most of the time. I guess my questions are: why is there an object that I cannot find anywhere?😕 is there a connection between the Keyword test and the script generated from it and, if so, is there a way to propagate the changes made to the script back to the Keyword test? I have found MSAA and added AfxControlBar140. Have not had a chance to play with it yet.2.5KViews0likes0CommentsRe: How to propagate script changes back to the keyword test?
Thank You! Right clicking on ...ribbon... > Go to Declaration (image:RightclickRibbonDeclaration.png) takes me here (image:RibbonDeclarationMappedObjects.png). What do I do here? I do not find "Ribbon2" to fix it.2.6KViews0likes0CommentsHow to propagate script changes back to the keyword test?
I have recorded a keyword test and generated a script from it. I had to make changes to the script due to the fact that the test did not wait for the icon bar to display. I also mistakenly accepted an intelligent fix which caused a "ribbon2" to be created/mapped? I deleted "ribbon2" from the mapping and from the script. When I run the test from the script it looks for "Ribbon". When I run it from the keyword test it looks for "Ribbon2" and consequently fails. How can I fix the keyword test to look for "Ribbon" instead of "Ribbon2"? Images attached. TiA - AstridSolved3KViews0likes10CommentsRe: While loop seems to be ignored when looking for a menu bar
Thank You,rraghvani. "Aliases.draft.wndAfx.Ribbon.WaitVCLNETObject" seems to be the only solution that will work. The test actually succeeded once without having to replace with a similar object. I will accept your first suggestion to wait for the parent as the solution to my issue. But now I have another problem that I caused and do not know how to fix. I will ask another question for it. Thank you so much for all of your help!679Views0likes0CommentsRe: While loop seems to be ignored when looking for a menu bar
Thank you much! - It seems that I can use "Aliases.draft.wndAfx.Ribbon.WaitVCLNETObject". Is this correct? - It does not work with Main. The test runs to completion waiting for theRibbon but I get a warning The "Ribbon" object was replaced with a similar object. I do not know how to fix it. Name mapping image is attached. TiA for your help! - Astrid719Views1like0CommentsWhile loop seems to be ignored when looking for a menu bar
Hello again. I am at the end of the first week of my 2 week trial and I cannot get my test to run successfully. I am trying to click an icon on a menu bar that displays after my application opens. Sometimes it takes a while for the UI to display fully and TestComplete fails before all windows and menus are visible. I tried to employ a while loop based on an example I found in the documentation. It worked the first time but failed every time when I tried to run the test thereafter. Can anyone tell what I am missing or doing wrong? Images are attached. TiA - AstridSolved772Views1like4Comments- 540Views0likes0Comments