Contributions
Re: UI objects not recognized
Hi Jared, Thank you for the prompt response. As you suggested Iremoved the UIA and MSAA from and none of the objects are being exposed to TC. So I have to access them via native properties. But how to go about achieving that? Would appreciate any pointers or examples. Thank you Kanth661Views0likes0CommentsUI objects not recognized
Hi, I am currently working on using TC8 to create automation scripts for our inhouse windows applications. Our windows applications for the majority part use custom controls(can just say a bunch of pixels used to create them). We have written functionality behind them. Is there any way to expose these controls for TComplete to view them to generate scripts for testing? I have added WindowsForms*, UI*, UIHwnd * to the MSAA and UI Autoamtion in the properties menu. But all the custom controls are not visible in the object browser. Would appreciate some suggestions to take my scripts forward. I am attaching a screenshot of the app as viewed in the object browser. Thanks Kanth13KViews0likes3Commentsdelete excel row
I am using excel sheet for data driven testing. The input values are being extracted from excel and used for web testing in my scripts. But once the values are read from excel and placed on the webpage, I would like to delete that row from excel sheet to prevent any future use of the current data. I am not sure if TC8 would support this delete row operation in excel. Could you please point me to a direction to implement this in my script? Thanks, dvox18KViews0likes6CommentsRe: Click on dynamic link with static name
This is what i tried to use. Did I miss any thing. I am trying to click on a link "Delete Folder". function Test122() { var p = Sys.Process("iexplore"); var page = p.Page("https://testingmysite.com/You/MyActivities?FolderID=60576"); var PropArray = new Array("href", "#"); var ValuesArray = new Array("a", "Delete Folder"); var ConvertedPropArray = ConvertJScriptArray(PropArray); var ConvertedValuesArray = ConvertJScriptArray(ValuesArray); var MyLink = page.Find(ConvertedPropArray, ConvertedValuesArray, 5); if (MyLink.Exists) Log.Message("Object found", MyLink.FullName); else Log.Error("The object is not found"); } function ConvertJScriptArray(AArray) { // Uses the Dictionary object to convert a JScript array var objDict = Sys.OleObject("Scripting.Dictionary"); objDict.RemoveAll(); for (var j in AArray) objDict.Add(j, AArray ); return objDict.Items(); } The source for this link is as follows. <li> <a href="#" onclick='DeleteFolder();return false;'><img src="/App_Themes/Main2_0/images/ico-delete.png" style="margin-right:5px;" />Delete Folder</a> </li>714Views0likes0CommentsClick on dynamic link with static name
I am using tree model for my scripts. I have a link which has a static text as "Delete Folder". But recording the same gives a different name everytime since the ID associated to the folder is unique for every transaction. To do this, I used the following to code to confirm that the object actually exists. But I am not sure, how to click on this object. Would appreciate any help. I am also putting down the html code of the link. Hope that might help you in guiding me. if(aqString.Find(iexplore.pagemyprojectshare2.formAspnetform.innerHTML, "Delete Folder")!= -1) { Log.Message("Object found"); } HTML <li> <a href="#" onclick='DeleteFolder();return false;'><img src="/App_Themes/Main2_0/images/ico-delete.png" style="margin-right:5px;" />Delete Folder</a> </li>15KViews0likes3CommentsRe: Does Test Complete Support reading Captcha image?
we are using the hybrid model. on the page source,<input type="hidden" id="ctl00_ContentPlaceHolder1_TestScriptBypassCode" name="ctl00$ContentPlaceHolder1$TestScriptBypassCode"> on the source code for this condition, it is written as follows. if (!TestScriptBypassCode.Value.Equals("$AUTO_SCRIPT$")) the pageobject is iexplore.pageCreateAnAccountBoardmakerSha.formAspnetform.panelWrapper.panelMain.panelMainHolder.panelMainFrame.panelContent.panelContentBoxesWrapper.panelContentBoxTitle.panelFormSettingsDefault.panelForm.panelFormBlockFormBlock3.panelCtl00Contentplaceholder1Cap.textboxCtl00Contentplaceholder1C i used, function CaptchaValidation() { var iexplore; var page; iexplore = Aliases.iexplore; page = iexplore.pageCreateAnAccountBoardmakerSha; var obj = page.NativeWebObject.Find("value", "$AUTO_SCRIPT$", "INPUT"); if (obj.Exists) { Log.Message("Bypassed"); } }2.4KViews0likes0Comments- 6.3KViews0likes0Comments
Re: Does Test Complete Support reading Captcha image?
I have the same issue and requested the developers to add a hidden code for me to bypass the captcha code. But my problem is how do I send this information in the automation process. the html code is from that captha block. <div> <input type="hidden" name="ctl00_RadScriptManager1_TSM" id="ctl00_RadScriptManager1_TSM" value="" /> <input type="hidden" name="LBD_VCT_register_ctl00_contentplaceholder1_captcha1" id="LBD_VCT_register_ctl00_contentplaceholder1_captcha1" value="44cd6a446f6f4132903028e6467dec51" /> <input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" /> <input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" /> <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="SecretCode" /> </div> any suggestion would be very encouraging.2.4KViews0likes0Comments