ThomasCasserly
2 years agoFrequent Contributor
ClickItem is selecting each drop-down item in latest TestComplete instead of required item
Just wondering if anyone else has encountered this in latest version of TestComplete. 15.52.2.7
I have keyword test(s), where for a drop-down control I am using ClickItem to select a specific entry. Previous versions of TestComplete just selected the specified item immediately. Now test complete is selecting each item in the drop-down until it finds the specified item. If the list is too long, it selects items until a timeout occurs even if the specified item has not yet been found.
This is a problem as some of the dropdown items trigger pop ups and add or remove controls from the screen when selected. Meaning my test is now encountering unexpected/missing controls.
See Excel Object, and it will be something similar to this
function PatientDetails() { // Get the sheet of the Excel file var excelFile = Excel.Open("C:\\Temp\\PatientDetails.xlsx"); var excelSheet = excelFile.SheetByTitle("Sheet1"); // Write the obtained data into a new row of the file var rowIndex = excelSheet.RowCount + 1; excelSheet.Cell("A", rowIndex).Value = // GetPatientID; excelSheet.Cell("B", rowIndex).Value = // GetPatientName; excelSheet.Cell("C", rowIndex).Value = // GetPatientDOB; excelFile.Save(); }