underqualifiedOccasional ContributorJoined 6 years ago13 Posts2 LikesLikes received1 SolutionView All Badges
ContributionsMost RecentMost LikesSolutionsRe: Iterating through items I'm not sure yet, I'll be attempting the suggested solutions and then mark whatever ended up working as the answer! Re: Iterating through items Hello Alex, thank you for your reply. I've tried working with .FindAllChildren(), but due to the way the site is set up, this is causing major issues, detecting objects that I do not want to iterate through as children. The possible solution I've described in my OP is the only way I could see this working, but it simply doesn't work. Iterating through items Hey everybody, me again This time, my issue is that I have to iterate through a series of objects. The objects have objectID '0', '1', '2', and so on, but the amount of objects is not fixed. What I tried is creating a Project Variable, and go for while(Aliases.browser.pageCockpit.frameUserMenu.panelIterative.Exists) { Aliases.browser.pageCockpit.frameUserMenu.panelIterative.Click(15, 20); Project.Variables.panelIterativeIdentifier++; } And set the ObjectID identifier in namemapping to panelIterativeIdentifier as well. It just doesn't work, it keeps going for the object with the ObjectID of 0. What am I doing wrong? SolvedTestcomplete suddenly no longer recognizes Firefox Hello everybody, I was executing my testcase today and it would not work, getting the error message that >The object "Sys.Browser("firefox")" does not exist.< Yesterday, everything worked fine. How do I fix this? SolvedRe: Click Object based on name I'm not sure how I'd go on to do that, though - is there any guide on that specific case in the Testcomplete documentation? Click Object based on name Hey everybody! I'm currently trying to automate a test that clicks on a bunch of panels in repetition. The panels are all part of the same menu that I've already mapped, let's say "Aliases.browser.website.clickMenu", and the panels are all named "Panel(0)", "Panel(1)", "Panel(2)" and so forth, but I do not know how many panels there actually are. How would a script have to look that clicks all panels under clickMenu, in order of the number in the name? Thanks in advance! SolvedExecute a TestComplete script from an .exe with predefined variables? Hey all, I'd like to set up a .exe that automatically runs my test script, and I need the exe to supply a few variables. How would I do that? SolvedTxcMemo - Load Lines from Array? Hey everyone! I've wanted to create a userform page that displays test results, and over the course of the test all important events are logged to an array. How do I make my TxcMemo display the contents of said array? Thanks in advance! SolvedRe: UserForms - Checkbox always returning true. Everyone who gave me your helpful responses, I solved it by realizing I was very stupid and looking at JScript and not JavaScript - I adjusted the code to be function DataForm_tpAdvanced_OnChange(Sender) { if(UserForms.DataForm.tpAdvanced.Checked == True) UserForms.AdvancedForm.Show(); } and it works like a charm now! Thanks for all the advice and sorry for possibly wasting anyone's time! Re: UserForms - Checkbox always returning true. I just tested a few other alternatives, and I came to the conclusion that the "Checked"-call returns the correct case, but if used in an if-statement always defaults to true. I wrote the following little script: function AdvancedForm_apTestButton_OnClick(Sender) { if (UserForms.AdvancedForm.apAdvancedResults.Checked) ShowMessage("1") else ShowMessage("2"); Log.Message("Checked = " + aqConvert.VarToStr(UserForms.AdvancedForm.apAdvancedResults.Checked)); } No matter whether the checkbox is checked or unchecked, it always shows "1", however, the state of the checkbox is successfully and correctly logged.