Forum Discussion

kpinnisetti's avatar
kpinnisetti
Contributor
11 years ago

Selecting drop down values by keys method

Hi, Dropdowns are not recognized by test complete so i wanted to use keys method to select a particular value by its content text and by keys method. In our dropdown list we have Sales and Non Sales v...
  • paul_scroce's avatar
    11 years ago
    I would add a log message

    Log.Message Aliases.ddEmpTermValPosCategory.innerText

    to confirm that the text is actually "Sales" during the test run in case it is blank or there is something unexpected like an extra space character.



    You could also try entering the first character of the list item if that works

    clickddValue.Keys ("S") to enter sales or

    clickddValue.Keys ("N") to enter non sales