Forum Discussion

baxatob's avatar
baxatob
Community Hero
9 years ago

TC11 do not recognize a combobox

I have a web page with the combobox.
TestComplete can't recognize it as an element. It only can see the parent object: Cell(0, 1)
In Object Browser this element is presented this way:
Cell(0, 1)
|_Textbox("Name")
|_TextNode(0)
|_TextNode(1)
|_TextNode(2)

All combobox options are presented in above mentioned TextNodes.
These nodes have a Click method, but it does not work. If I use this Click, I receive a positive log (action was performed successfully), but nothing changed on the screen.

Do you have any ideas how to solve this?

Thank you!

3 Replies

    • baxatob's avatar
      baxatob
      Community Hero
      No, it's not a PrimeFaces.

      As I can see - click on the combobox or on the elements inside it should run javascript.
      • PanB's avatar
        PanB
        Occasional Contributor

        So it looks silmitar to my problem with PrimeFaces. Here also after you click combobox itemlist is displayed with js.

         

        I wrote some code to work with this kind of controls, mayby it will help you.

         

         

        function PrimeFaces_Dropdown(DropDownToClick,ListValueToSelect)
        {

            PropArray = new Array("tagName", "innerText");
            ValuesArray = new Array("LI", ListValueToSelect);

          DropDownToClick.Click();
          NameMapping.Sys.browser.Find(PropArray,ValuesArray,5,true ).Click()
        }

         

         

        ---------------------------------------------------------

         

        DropDownToClick - mapped // clickable part of control

        ListValueToSelect - text to chose from list

         

        NameMapping.Sys.browser.Find(PropArray,ValuesArray, 5 <- how deep TC will looking for list  ,true ).Click()