Contributions
Re: Unable to use a text box
Helena, I looked at Tools > Current Project Properties > Open Applications > General and NativeFirefoxObject was already above NativeUIAObject and NativeMSAAObject. Not sure how else do i make Testcomplete to use Web identification instead of UI Automation and MSAA identification. I had the latest Firefox support patches installed, but that made Testcomplete crash very often. I had submitted all the data to the support team for that issue, it was stopping me from running my tests so I had to uninstall the latest firefox support patches and latest versions of Firefox (10) using FF8 right now.1.7KViews0likes0CommentsRe: Unable to use a text box
I am using TC 8.7 with FF7. I wonder if this is a bug in testComplete, the object browser for this object shows a different name, than what the source code has. I have had this problem earlier, TC is naming the object Edit(0), and is unable to use any of the properties from the source code. I hope someone has an answer for this.1.7KViews0likes0CommentsUnable to use a text box
I am trying to enter some text in a text box, these are the scripts I have tried to use to get to that object, but nothing seems to work set page= sys.process("firefox").waitpage("*LeadRoutingRule*", 5000) page.Wait set all=page.document.all 'enter test rule as the rule name 1.set object= page.nativewebobject.find("class", "TC_TitleInputBox") 2.set object= all.item("Title") 3.call a2 object.SetText("TestAutomation") ------------------------------------------------------------------------ function a2 Set page = Sys.Process("firefox").Page("*") page.wait set all=page.document.all ' Call the function obj = page.EvaluateXPath("(//DIV[@class='formsection hilite-region']//INPUT[@id='Title'])[1]") ' Check the result If VarType(obj) <> varNull Then ' If the element was found, click it obj(0).Click ' Note we refer to the array item Else ' If the element was not found, post a message to the log Log.Message "The element was not found" End If end function 1,2,3 those are the 3 different ways i could get to the object, and none of them worked.18KViews0likes5CommentsRe: Object browser giving different results for the same object
'click on the finish button set fbutton= all.item("TC_FinishAction") fbutton.click 'clickon the actions button Set page = Sys.Process("firefox").Page("*") page.wait set all=page.document.all delayfunction(1500) set obj=page.nativewebobject.find("class","button TC_ActionButton") obj.click I have a script that clicks on the finish button and then tries to click the actions button shown in the picture. No matter what i try to use(class, id....) Testcomplete does not find the object. The source code shows the class, id of the actions button but the object browser shows something different. i have the default, current project property set to DOM model. I dont understand whats happening here but TC errors out and cannot click on the Actions button. I really need some help here.1.2KViews0likes0CommentsObject browser giving different results for the same object
I write my script on the local and when I used the object browser it displays the name of the object as name: Item("actionLink") I run this script on a VM, and when I use the object browser for the same object this is what it shows name:Button("ACTIONS") and I cannot access this object on the VM, even though its the same object, I tried to use the class, name, id, inenrtext: gives me an unspecified error. this is the fullname of the object in the object browser Sys.Process("firefox").UIAObject("Automated_Processes_Mozilla_Firefox").Application("Automated Processes - Mozilla Firefox").PropertyPage(0).Grouping(0).PropertyPage(0).Panel(0).Document("Automated Processes").Panel(0).Panel(1).Panel(1).Button("ACTIONS") Is there a reason for this inconsistency ? I am using 8.7 with FF 817KViews0likes4CommentsRe: Propoert checkpoint fails even though the innertext is same as expected
Helen, Thanks for the explanation. If i was able to use the entire expression as the expected value i would not have tried to alter it. But the expression is huge and Testcomplete crashes if I try to use it that way. I will use the other script you suggested Thanks for your help!1.2KViews0likes0CommentsRe: Propoert checkpoint fails even though the innertext is same as expected
Robert, There are some extra spaces in the inner text but I got rid of them, id I do not do so then testcomplete freezes or goes very slow. This is what the actual property checkpoint looks like Call aqObject.CheckProperty(sys.process("firefox").page("*").document.all.Item("criteria"), "innerText", cmpContains, Chr(10)&" Remove"&Chr(10)&" "&Chr(10)&" "&Chr(10)&" Used,"&Chr(10)&" Remove"&Chr(10)&" "&Chr(10)&" 2009-2011"&Chr(10)&" Remove"&Chr(10)&" "&Chr(10)&" Jaguar"&Chr(10)&" Remove"&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" "&Chr(10)&" ") But I got rid of those extra spaces in the hidden text . Call aqObject.CheckProperty(sys.process("firefox").page("*").document.all.Item("criteria"), "innerText", cmpContains, " Remove Used, Remove 2009-2011 Remove Remove ")1.2KViews0likes0Comments