KellyWiegandOccasional ContributorJoined 2 years ago17 Posts3 LikesLikes received1 SolutionView All Badges
ContributionsMost RecentMost LikesSolutionsThe unexpected window setting doesn't work Hi, I've set the unexpectedWindow Event control in both Playback and script, but it keep pressing ESC instead of ENTER. Did anyone meet this issue before? How to execute steps or script when test steps fails? Hi, I want to do some steps like "click [Enter]" to the web page / browser when the test item is failed. Then keep run the rest test items Is this workable? Thank you! SolvedRe: How to verify an empty dropdown? Solved it Re: How to verify an empty dropdown? I try to use "size" property, but it returns 0. How to verify an empty dropdown? Hi, So there are some dropdown in our website, how can I know which one is empty? empty: has value: Below is my code. I already get the select object, and choose the first item. But I don't know it's empty or not. What method should I use? The code doesn't have error even if a dropdown is empty. Thank you! SolvedRe: How to get custom properties? It's awesome, thank you! Re: How to get custom properties? I think I should get the attributes list, then verify if the specific one exist in the list or not. But how to get the list in script? Re: How to get custom properties? Now I have a new issue, not all of the elements have these attributes. I want to do it like: If element has the specific attribute: element.SetText() How should I write the if-statement? It has error when I simply write: if(ele.attribute == true): It also has error if I use the attribute no matter it exist or not. Log.Message(VarToStr(ele.mask)) Re: How to get custom properties? Oh, I found the solution myself. https://support.smartbear.com/testcomplete/docs/working-with/managing-projects/properties/open-apps/web-testing/custom-attributes.html?sbsearch=get%20attribute How to get custom properties? Hi, The elements in our website have some custom properties that cannot be found in TC, how can I get them in script? I want to fill a field but I don't know which type it is. So I want to write a if-else statement to check the properties of every element. For example, this field has the property "mask", and I have to fill it as "123-45-6789". But I can't do this if I don't get this custom property. Is this possible to work? Thank you! Solved