Selecting an item from List box based on the name using
Hello, I am fairly new to Test Complete and just learning, can someone show me using my example I provided here on selecting the specific item (see screenshot) from the web List box that I show highlighted in the Element screen ? What is the best method to use to search and select (click) the item as the current item in the menu? I would also like once I get the basic to search the item in the list box that I have stored in the patient variable where I would get from another screen (another script test/keyword test) so I can look for it. Here are two methods I found;page.NativeWebObject.FindandaqObject.CheckProperty but not sure which is best to use in this case.If you know something better and please if you can provide it with this example. I would also like once I get the basic to search the item in the list box, I would like to reuse the patient variable where I would get from another screen (another script test/keyword test) and apply it to the search item on the list. Can someone show me how to apply it in JavaScript using the sample I provided? ELEMENT SCREEN: SPY TOOL:Solved608Views2likes2CommentsTest Fails When Running with Tag: Double Parameter Default Issue
Hey, fellow community, I'm facing an intriguing issue with one of my tests, and I was hoping to get some insights from you all. Here's the problem: I have a test that includes an optional double parameter, and its default value is set to 10000. When I manually run the test, everything works perfectly, and the default value of 10000 is used as expected. However, the trouble starts when I try to run the test using the tag. I use the right-click option on the project and run the test with the tag '@tag'. Surprisingly, the test fails, and upon further investigation, I noticed that the value used for the double parameter is 0 instead of my intended default value of 10000. I've already double-checked the tag setup and made sure everything looks correct. It's puzzling why the default value is being ignored when using the tag, leading to the failure. Has anyone encountered a similar issue before or have any ideas about what might be causing this discrepancy? I'd greatly appreciate any suggestions, tips, or experiences you can share to help me troubleshoot this problem and get my test running successfully with the tag. Thank you all in advance for your support and insights!Solved6.8KViews1like17CommentsTo find element is present or not
Hi I want to verify the element is not available in the page. If I use findelement it throws error and if I use waitelement it will return the object. Using find element == page. Findelement ("xpath") It throws error as unable to find the object Using wait element it returns true but for my verification the element is not there so it need to fail. Here what i need is I don't get any error in log file what method I can use here Any other methods to use1KViews1like8CommentsPython code that will interrogate Chrome Dev Tools Console Elements for label value
Hello. I have seen somewhere someone here trying to connect TestComplete via Python to Chrome Dev Tools and the answer seemed inconclusive. There has to be a way beyond using MSAA which seems very hard to connect TestComplete to the Chrome browser Dev Tool Console Elements? There is a label value inside the console that I want to get at with TestComplete. I want to obtain that value, store it in a temporary variable inside TestComplete. I want to call that temporary variable inside a keyword test script. That variable will reset when the script reruns. Any suggestions you can provide would be greatly appreciated. I know Marsha R posted about this but it just seemed hard to implement. Is there a GIT project out there somewhere that accomplishes this goal?471Views1like3CommentsPython Arrays
In TestComplete, I am using JavaClasses to access some of the java methods from a generic library for our tests. Parameters for one of the java method is to pass a string array. May I know how could I declare a string array in python? I see we can achieve it by numPy but may I know the process of how to install numpy, and the version that supports python smartbear.Please find the code below: a = ["one', "two", "three", "four"] Log.Message(str(a)) When I pass this Str(a) to the JavaClasses as a string array, It is throwing an error "COMException: Type mismatch" Is there any other way to declare a string array in python test complete version 14.90 and pass it to java classes?735Views1like6CommentsCreates the Excel file but cannot rerun code again if Excel sheet has been created already.
Hello, can someone correct my mistake in the following code. It creates the Excel file and adds the sheet name then enters the data, but I cannot rerun the code again. It fails because it cannot find read property 'Count' of undefined. See screenshot. . function ExcelExample_1() { //Get the data that will be added into Excel file var curTime = aqDateTime.Now(); var cpu = Sys.CPUUsage; var fileName = "C:\\temp\\DataStorageExcel.xlsx"; var excelFile; var excelSheet; if (aqFile.Exists(fileName)) { //open the existing file excelFile = Excel.Open(fileName); var sheetExist = false; for (var i = 0; i < excelFile.Sheets.Count; i++) { if (excelFile.Sheets.Item(i).Name == "CPU Report") { excelSheet = excelFile.Sheets.Item(i); sheetExist = true; break; } } if(!sheetExist){ excelSheet = excelFile.AddSheet("CPU Report"); } } else { //Create new excel file excelFile = Excel.Create(fileName); excelSheet = excelFile.AddSheet("CPU Report"); } var rowIndex = excelSheet.RowCount + 1; excelSheet.Cell("A", rowIndex).Value = curTime; excelSheet.Cell("B", rowIndex).Value = cpu; excelFile.Save(); }Solved610Views1like4CommentsError
Hi, While am trying to execute a bulk of scripts in execution plan these errors am getting and element is also high-lighted. How to handle these things >>There was an attempt to perform an action at point (23,86), which is out of the window bounds Which means the element is not rendered properly or what the exact issue here? >>Unable to find the object "...object..."see the details for information here the element is visible but is shows these error?405Views1like3Comments