Forum Discussion

MehwishDaud's avatar
MehwishDaud
New Contributor
2 years ago

Testcomplete Dropdown Selection

My code is able to select any index value from the dropdown except for the first value that contains empty

 

obj.ClickItem( text )

Here I am passing "" as text for the selection of empty value of dropdown down which is on 0 index of dropdown

I even tried passing the index 0 directly to ClickItem

For all the other element of dropdown the clickItem is working Fine with index or string

  • Hi, 

     

    Have you tried with the latest version of TC (15.55)? 

     

    I'm curious if they fixed it or not because, in the change logs, it doesn't seem like they did something about it. 

    'In versions 15.53 and 15.54, we fixed an issue concerning the ClickItem() method to ensure it functions as expected.'

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    If you use your browsers development tool, you can look at the HTML coding, and view the coding that makes up the dropdown list. That particular item may not be an empty string.

  • CristianE's avatar
    CristianE
    Occasional Contributor

    Hi, 

     

    Have you tried with the latest version of TC (15.55)? 

     

    I'm curious if they fixed it or not because, in the change logs, it doesn't seem like they did something about it. 

    'In versions 15.53 and 15.54, we fixed an issue concerning the ClickItem() method to ensure it functions as expected.'