Contributions
Configuration of Object Browser
Hi How can i restrict my object browser to only map Browser (ex: IE) rather than any other processes I have noticed that by default it maps all the system processes and user processes but I want it to only map IE browser and nothing else to speed my test execution I know that I have a filter option in object browser but i guess that is for only view but in reality it is mapping all the open processes and system processes Is there a way I can do it Thanks in Advance Regards Anand QA Staff16KViews0likes1CommentHow to know whether a page has loaded completely
Hi I would want to know using VB script how can i actually know whether my page is loaded completely before i perform any actions similar to selenium.waitForPageToLoad(time in milliseconds) I have tried waitForWindow but the documentation tells me that it waits until the object appears in object browser but in my situation iexplore process appears but the page is still not loaded fully I would want to wait until the page is loaded Thank you in advance regards Anand19KViews0likes1CommentRe: Page access denied but not everytime
Dear Allen Even i have tried reinstalling the IE 8 but still the same problem and one another thing i have noticed is that under the object browser I have 3 instances of process("iexplore"),process("iexplore",2),process("iexplore",3) But earlier it were only 2 Any reason for this behaviour Thank you in advance Anand1.2KViews0likes0CommentsRe: Page access denied but not everytime
Dear Allen We are currently to build the automation framework prototype. In our company the main application is our CRM used by all employees across all departments Our release cycle is every week so things change on the crm everyweek so the option of recording all the regression would not work due the following limitations 1. test complete can not capture dynamic menus in recording 2. the UI objects can change which would involve maintenance re work 3. The Scripting Language we use is VB Script where we have the limitation of that objects are passed always by ref and not by value So instead we writing an identification program which would have kind of xpath notation such as if you ask for username it would return you the corresponding to address a value in table and to make checks for data we use notation such as A[B=C] where A is the column name we want to retrieve the value from and B & C are conditions we have to call this function several times in our automation and using native dom function gives us the flexibility and we use test complete to maintain the code and organise our tests I hope I was able to give you a clear scenario as why are we using the native dom functions as the test complete find functions can not find the dynamic menus and they would need us to know the object names and identifiers before hand and our html code is not organised at all as usual it was inheritance passed on to us I will try to re-intsall the IE and let you know if my problem is solved Any suggestions please do let me know Regards Anand1.2KViews0likes0CommentsRe: Page access denied but not everytime
Dear Allen Thank you for the suggestion My problem is when i try to use test complete find method i can get the frame object but what i need is the DOM document object by which I can search for objects using native dom methods So following your suggestion I am getting a dom document with the following code but this does not have any of the innerhtml code Sys.Process("iexplore", 2).Refresh Set Page = Sys.Process("iexplore",2) ' Search for the child objects of the browser Process PageObj = Page.FindAllChildren("Name",PgName,60) If UBound(PageObj) <> -1 Then If IsObject(PageObj(UBound(PageObj))) Then If InStr(LCase(PageObj(UBound(PageObj)).URL),LCase("https://crmtest.xlntelecom.co.uk/cust_acct_frame.asp")) > 0 THEN aqUtils.Delay 2000 Set frameObject = PageObj(UBound(PageObj)).find("name","frame(*)",10)(0) Set Obj = frameObject.document If (Not PageObj(UBound(PageObj)).Exists) Then Log.Error("The Page(" & pageURL & ") object was not found.") Set GetPageObject=Nothing Else Set GetPageObject=Obj End If Set Obj = frameObject.document This command give me the access to dom document object but it does not have any child nodes in it I have attached the html page source for your view and the document objects which i want to access are dynamic which get loaded in a frame but some times i get an access and most of the times it always throws an error saying access denied whereas i can see that the page is already loaded earlier I was using SYS.PROCESS(IEXPLORE).PAGEOBJECT.ZDOCUMENT.FRAME("NAME").DOCUMENT But this does not work always . Any more suggestion would be greatly appreciated Regards Anand1.2KViews0likes0CommentsPage access denied but not everytime
Hi I am using the following piece of code to access the dom page structure and it works most of the times but suddeny it throws an error stating that the access is denied really not able to understand why this happens CODE Function GetPageObject() Dim PageObj ': PageObj = Array() Dim PgName Dim pageURL : pageURL = "" Dim Page : Set Page = NothingDim Obj : Set Obj = Nothing Dim Counter : Counter = 5 ' Verify whether an arbitrary ' or specific (with the given URL) Page object is needed If (pageURL="")Then pageURL="*" Else pageURL="*" & pageURL & "*" End If PgName="Page(" & pageURL & ")" Sys.Process("iexplore", 2).Refresh Set Page = Sys.Process("iexplore",2) ' Search for the child objects of the browser Process PageObj = Page.FindAllChildren("Name",PgName,60)If UBound(PageObj) <> -1 Then If IsObject(PageObj(UBound(PageObj))) ThenIf InStr(LCase(PageObj(UBound(PageObj)).URL),LCase("http://crmtest.xln/cust_acct_frame.asp")) > 0 THENaqUtils.Delay 2000 ' Sys.Process("iexplore", 2).Refresh On Error Resume Next Counter = 5 Do If Counter = 0 Then Exit Do End If Counter = Counter - 1 Delay 500 Set Obj = PageObj(UBound(PageObj)).zDocument.frames("TOPFRAME").document Set GetPageObject = Obj If NOT Obj Is Nothing ThenEXIT FunctionEnd If Loop While Obj Is Nothing Set Obj = PageObj(UBound(PageObj)).zDocument.frames("TOPFRAME").document Set GetPageObject = Obj EXIT FunctionIf (Not PageObj(UBound(PageObj)).Exists) ThenLog.Error("The Page(" & pageURL & ") object was not found.") Set GetPageObject=NothingElseSet GetPageObject=Obj End IfElse Set obj = PageObj(UBound(PageObj)).zDocument If (Not PageObj(UBound(PageObj)).Exists) ThenLog.Error("The Page(" & pageURL & ") object was not found.") Set GetPageObject=NothingElseSet GetPageObject=Obj End IfEnd If End If ' End of if to check that PageObject is a Object Else Log.Warning(" Unable to get the Page Object ") End If ' End of if to check that PageObject Exists End Function I have under bolded and underlined the code at which it occurs but at the same time if i F12 in IE I can see the DOM strucure in the developer tools so really can not understand why Test Complete is unable to access Any help would be much appreciated Regards Anand11KViews0likes6CommentsExplanation of zDocument property
Hi I understand that the zDocument property in Test complete provides me an access to the document object but can you give me a link for more documentation regarding this property such can i embed this object into another html document object or an xml document object Thank you in advance regards Anand9.6KViews0likes1CommentRe: How to access the pop up windows as a result of click
Hi I am able to access the modal window and proceed further but i have a standard click function to which i pass the objects to perform action in an array format in some situation you might encounter a modal window or in some cases no modal windows however for each click operation is perfomed but the same line of code irrespective of the presence of modal window call Runner.CallObjectMethodAsync(arrObj(i),"Click") In in cases where there is no modal window and i just obtain a object on page to perform the click operation I am able to perform the operation but after the operation the object is emptied although still its associated properties are supported but everything is empty Any idea how to avoid this Thanks for quick reply Regards Anand2.3KViews0likes0CommentsHow to use wrap a xml document object into a html document object
Hi Task : I Have a XML document object and now to use all the native dhtml methods and properties i want to wrap this xml document object into a dhtml document object I know that in test complete when i use the property zDocument i can get the DOM object but how would i use Vb Script to perform the above task Could anyone please provide me with a sample code in Vb Script Thank you in advance Regards Anand8.6KViews0likes1Comment