Contributions
Re: Cannot active the <item> in a Listbox - ClickItem("xyz") function suddenly stopped working?
Hi Robert, The object identifiers haven't changed as far as I can see. It is able to find the object from the list below: I'm using property idStr and trying to click the second item in the list - AutoRole. I have used the Find method first, providing a Full Name of the object. Then assigned it to a variable, verified the find was successful and Perform Click action. It is able to see AutoRole, butwhen executing the script, gets the error'Cannot activate the 'AutoRole' item'. What would be the other things to be checked? or is there a way to perform click by wList(index) property? Best Regards, Shiva1.2KViews0likes0CommentsRe: Testcomplete to handle username and password when the password change is required
I think store the Username & Password in an external file (excel, open office etc). Lets say they have columns Username, Password, New Password. You have your generic function in the project to login. Login(Username, Password){ // Read from external file // Enter Username, Password & Submit // If your password has expired message{ Change_Password (Password, New Password) } // your normal code.. to home page. } // function to change password Change_Password (Current Password, New Password){ // } This way you will only change your external file's Password & New Password fields every 6 months and don't have modify anyTestComplete variables for those many Project suites.4.3KViews4likes3CommentsCannot active the <item> in a Listbox - ClickItem("xyz") function suddenly stopped working?
Hi, I have a piece of line that has been working for years and it has suddenly stopped working with no changes made to the script/application in that area. Using Jscript for Web application: Page.NativeWebObject.Find("ObjectIdentifier", "ContentPlaceHolder1_Listbox_Roles").ClickItem("xyz"); This is giving me error message 'cannot activate the 'xyz' item.' during runtime. The object spy cannot go inside the listbox (contentPlaceHolder1_Listbox_Roles), so that is last point of reference, I tried using other functions like SelectItem(xyz) or using full name or using different identifier or using test recorder etc.withno luck. I cannot use index (instead of name) as the item passed is a variable and will have different indexon a different instance. I think it is able to see the item, just cannot active it. Update: It is due to running the scripts in IE 11, previously it used to be ran on IE8/9. Is there any workaround for this to work in IE 11? Many Thanks, Shiva1.3KViews0likes3Commentshow to check if sheet in excel driver exist or not
Hi, I want to check if Sheet1 exists or not.Sometimes 'Sheet1' is named as Error in our application, and hence is an actual error in export. Even though file is exported correctly. Attempt: var excelDDT= DDT.ExcelDriver(ProjectSuite.Variables.PlanExportDirectory, "Sheet1", true); if(excelDDT.){ Log.Message("excel DDT exists"); } else{ Log.Error("Exported file contains error"); } while(!DDT.CurrentDriver.EOF()){ //Test Log.message(DDT.CurrentDriver.Value(0)); } // Close driver DDT.CloseDriver(DDT.CurrentDriver.Name); It throws Jscript error on first line because Sheet1 doesn't exist. Thanks in advance, ShivaSolved2.8KViews0likes3Comments- 2KViews0likes0Comments
Using Wildcard in property checkpoint
Hi, I want to verify if a panel contains string. "*" instead of "Workhistory Notes". So, if the application is in different language, I wouldn't have to parameterise all those checkpoints values. All I need to check if the grid contains something. Thanks in advance, ShivaSolved2.1KViews0likes3Comments