ContributionsMost RecentMost LikesSolutionsHow can I use * in find?Hi Guys, I have a Table with cells that get generated dynamically. In ide the cell, it has a TextBox that gets generated when user click o add button. I have idStr = UIC_properties_gw_lname_1, ObjectType=textbox. The Trouble is that if I hard code: propnames = array(name1,name2) propvalues = array(value1,value2) object.FindChild(propnames, propvalues, level, refresh), then I will only be able to use it once... I tried to user " UIC_properties_gw_.*" but it doesnt like it. Is there anyway I can get this working? Cheers Ian Re: Firefox 11 supportJust looked at the Object Browser and it seems like it does not support FF11 yet.Firefox 11 supportHi All, I have a running script that works in FF 8 but I does not like FF11 now. Here's my Launch_Firefox: URL="www.google.com" Sub Launch_Firefox(URL) Call Log.AppendFolder("Launching FireFox") Call TestedApps.firefox.Run() firefox_load = false While Not(firefox_load) Call Sys.Refresh firefox_load = Sys.Process("firefox").WaitWindow("MozillaUIWindowClass", "*", 1, 1000).Exists OR Sys.Process("firefox").WaitWindow("MozillaWindowClass", "*", 1, 1000).Exists Wend Set firefox = Aliases.firefox Call Log.PopLogFolder() If (Not firefox.WaitPage("*", 20000).Exists) Then Call Sys.Keys("[Esc]") End If Call firefox.WaitPage("*", 1000).ToURL(URL) ---------------> Failed here and it said object not found! Set page = Aliases.firefox End Sub Any thought? Cheers, IanHow do you log the function/routine name you called?Hi Guys, If I called Sub Login(username,password), and I want to have this logged with the function/routine name that I have executed/called, e.g. Login passed. I have to write log.event([what shall I put here?] & "passed") Thanks in advanced. Regards Lee How to use waitHi Guys, I am having trouble with an click action which I can only perform when the first page after login is fully loaded (it has a few jscript charts and take a while to render). I am using the script approach where I find the object first, then I perform the action (in this case Click). The trouble it that I found my object and can be click it (its a Panel) but it would not do anything until the charts are fully loaded. What is the best way I can do it? I have tried using: set page = Aliases.iexplore set obj = page.WaitPanel("troubleshoot", 2000) If obj.Exists then obj.Click() End if Result: the panel was clicked but because the charts are not fully rendered before obj.Click get called, it does not take us to the troubleshoot page. Any clue? TIA Regards Ian Re: Having trouble with Firefoxmanage to get it working dynamically using: propnames = "idStr" propvalues = "report" Set btn = topnav.FindChild(propnames, propvalues, 5, true) btn.Click() Having trouble with FirefoxHi Guy, I'm doing some automation script that can be use to run on both IE & FF but only manage to get both login, then IE is happy to carry on the automation. FF complain the object does not exists. I have map objects on both browsers using the identical name, technically it should work. While I debug the issue with FF, namemapping for FF object are created and looks OK, However, when I could not highlight the object, it said it could not find it. It complain the object is already there when I try to remapped it. If the object has been mapped why is that it could not be found? Please help. Regards IanRe: how to use variable in an object?Found a sample about this but it does not work: Sub Findme Set MappedObj = page.Top.Section.Buttons MappedObj.Troubleshoot.Click() ----------------------------> did this to make sure the object is found and click work. Count = MappedObj.NamedChildCount -------> failed on this line: unable to find the object NamedChildCount. For i = 0 To Count - 1 Set Item = MappedObj.NamedChild(i) If Item.Exists Then msgbox (Item.MappedName) Else msgbox("The item with the " + aqConvert.IntToStr(i) + " index does not exist") End If Next End Sub Is there anything I have done wrong here? Cheers, Ianhow to use variable in an object?Hi Guy, Is there a way I can use a variable in object action? Say if I do: Sub Main () call browse_to("Reports") call browse_to("Database") End Sub Sub browse_to(section) Dim topnav topnav = page.Top.Section.Buttons.Menu ' in namemapping, it is suppose to be topnav.Reports, so topnav.Reports.Click() will work ' in namemapping, it is suppose to be topnav.Databse, so topnav.Database.Click() will work ' how can I use variable in this context? topnav.top_section.Click() End Sub Any clue guys? TIA, Regards Ian Re: How to set the state for button to become visibleHi Guys, I got a work around :-) , i.e. insert key "[Tab]" after entering username or password. That manage to trick the web browser to think the state changed and have the button enabled now. Regards, Ian