ContributionsMost RecentMost LikesSolutionsRe: IE Exists Function Hi Dhanalaxmi, 'Run the Internet Explorer s = BuiltIn.GetCOMServerPath("InternetExplorer.Application") Call Win32API.WinExec(s, SW_NORMAL) Set iexplore = Aliases.IEXPLORE If iexplore.exists Then LoginURL = "www.google.com" Call iexplore.ToURL(LoginURL) End If If u want more details send me a detailed problem and screen shot, I'll Explain You... Feel free to contact me, if u have any doubts Regards, -Prakash prakashkonduru@hotmail.co.uk Re: How to automate Popup window objects Hello Narender, I am following Descriptive Programming, and Am also faced like same problem. Example: When I Launch IE - 8 Browser, dlgSetUpWindowsInternetExplorer8(pop-up) appearing, So I mapped these Pop-Up in Name Mapping and exit popups. Here are the example: Set iexplore = Aliases.IEXPLORE Set Page = iexplore.dlgSetUpWindowsInternetExplorer8 If Page.Exists = True Then Page.Close End If Hope It'll useful for u.... Regards, -Prakash prakashkonduru@hotmail.co.uk Re: Working with same edit boxes in a table of tree lis control Hi Swathi, In this situation try with record and playback method and find the different property values for each editbox. Even if you find the similar properties for all edit boxes then may be your dev team will help on this. Thanks prakashkonduru@hotmail.co.uk Re: Can we do descriptive programmingHi, Yes, we can do descriptive programming in Test Complete Tool. Here are the example for Gmail Login Page: 1st Step: Click on Map Object icon -> Drag the Target Point to the Object -> Save a whole Page Object in Name Mapping. Ex: Map Name: pageGmailLogin After Saving the Page Object then Name Mapping shows Tree Model. like--> sys-IEXPLORE-pageGmailLogin Sub GmailLogin() Set iexplore = Aliases.IEXPLORE Set Page = iexplore.pageGmailLogin Page.Wait ' Enter User Name NameProperty = Array("ObjectType", "ObjectIdentifier") ValueProperty = Array("Textbox", "Email") UserName = Page.FindAllChildren(NameProperty, ValueProperty, 7) UserName (0).SetText ("prakash") End Sub 'For Finding Objects, we need to click on object spy, and pass the Unique Name Properties and Value Properties '7 = Depth of the User Name Hope this will needful for you. Thanks, Prakash prakashraju06@gmail.com Re: Web test doesn't find mapped objects if URL changesI am using TestComplete 8 and Internet Explorer 8. I created some functional tests for a web application developed in dotnet, mapping the names of many, but not all, objects. Now I am trying to run those tests on a web side that is identical to the first one, except for the main URL, which is an https site. (Of course, I changed the "iexplore.ToUrl" to the new URL.) The tests find the objects that weren't mapped, but not the ones that were mapped. Is there a way to solve this problem without going back and remapping all the hundreds of objects? Thanks. Hi, Hope it will work, follow given steps: Go to Name Mapping Try to modify the URL (Replace '*' instead of dynamically changing the query strings) Example: Old URL = "https://www.hi.google.com/prakash.aspx" New URL = "http://www.hello.google.com/ramesh.aspx" Here update the URL like "*//www.*google.com/*" Thanks Prakash How to Run the Descriptive scripts in Firefox or ...Hi, I am following the scripts in descriptive manner using vbscript. Currently running the scripts in IE browser. I have a doubt here, how to run the scripts in firefox? I tried but i can't. Please help me on this. Thanks, -PrakashRe: Handling Dynamic ObjectsHi Anil, Here, using the object spy you can find the row count Ex: Dim AppArray() PropArray = Array("ObjectType","ObjectIdentifier", "innerText") ValuesArray = Array("Table", "0", "*Installment*") ScheduleTable = Page.FindAllChildren(PropArray, ValuesArray, 11) ScheduleRowCount= ScheduleTable (0).RowCount J = 0 ColumnStart = 0 Flag = 1 Size = 0 If ScheduleRowCount>1 Then Do Until Flag = 0 Redim Preserve AppArray(Size) 'Get the Data from Cell PropArray = Array("ObjectType","ObjectIdentifier", "ColumnIndex") ValuesArray = Array("Cell", J, ColumnStart) TableData = ScheduleTable(0). FindAllChildren(PropArray, ValuesArray, 11) If Ubound(TableData) < 0 Then Flag = 0 Exit Do End If AppArray(Size) = TableData (0).innerText Size = Size+1 J = J + 1 ColumnStart = ColumnStart+1 Loop End If 'Print the Data For K = 0 to Ubound(AppArray) - 1 log.message AppArray(K) Next I hope it is definitely work. Regards, -Prakash Re: Handling Dynamic ObjectsHi Anil, I understand some what in your question. 1. Here ObjectType is Unique, so no need to worry about this. 2. Don't take the ObjectIdentifier property. bcz it'll always dynamic (Anil or prakash like that right?) 3. In Your Case RowIndex is different - so no need to worry about this. I Hope above script is working, but if you know any of the page like google or etc. send the details, i'll do and let you know the solution Regards, -Prakash prakashraju06@gmail.comRe: Need help selecting item from drop-down buttonHi sumedha arya, 'Using Map Object from Screen, 1. First Map the Page (Drag the target to point to object) Set iexplore = Aliases.IEXPLORE Set Page = iexplore.pageLogin Page.Wait ' Select Value from Catalog Drop Down PropArray = Array ("ObjectType", "ObjectIdentifier") ValuesArray = Array ("Select", "Catalog") Catalog = Page.FindAllChildren(PropArray, ValuesArray,11) Catalog (0).ClickItem("Cat2") (or) ContractVeh(0).ClickItem(2) (or) ' If u pass from Excel If drv.Value("CatalogVal")<>"" Then Catalog (0).ClickItem(drv.Value("CatalogVal")) End If ' Click on Check Box PropArray = Array ("ObjectType", "ObjectIdentifier") ValuesArray = Array ("Checkbox", "Remember") RememberCheckbox = Page.FindAllChildren(PropArray, ValuesArray,11) RememberCheckbox (0).ClickChecked(True) If u want more details send me a detailed problem and screen shot, I'll Explain You... Feel free to contact me, if u have any doubts Regards, -Prakash Re: Handling Dynamic ObjectsHi Anil, Sub: How to handle Dynamic Objects in App Example: Item001, Item002.... Take Object Type / Object Identifier, ColumnIndex / Row Index in Array ' Object Type / Objecct Identifier should be Unique 'RowIndex / ColumnIndex should be vary Ex: Dim PropArray Dim ValuesArray Dim AppArray() Flag = 1 RowSize = 1 arraySize = 0 Set iexplore = Aliases.IEXPLORE Set Page = iexplore.PageRegistration Page.Wait Do Until Flag = 0 Redim Preserve AppArray(arraySize) PropArray = Array("ObjectType", "RowIndex") ValuesArray = Array("TextNode", RowSize) apData = Page.FindAllChildren(PropArray, ValuesArray, 12) If Ubound(apData ) < 0 Then Flag = 0 Exit Do End If AppArray(arraySize) = apData(0).innerText RowSize = RowSize +1 arraySize = arraySize + 1 Loop For I = 0 to ubound(AppArray) - 1 log.message AppArray(I) Next 'This script for getting data from app If u want more details send me a detailed problem and screen shot, I'll Explain You... Feel free to contact me, if u have any doubts Regards, -Prakash prakashraju06@gmail.com