Forum Discussion

KB1's avatar
KB1
Champion Level 2
2 years ago
Solved

ClickItem is not a function

Hello, I've been doing scripting tests for a while now.. Now I ran up to this problem with the ClickItem(); It says that it is not a function but I configured it the same way as I always do. Wh...
  • rraghvani's avatar
    2 years ago

    I've noticed you are using FindElements(), which returns a list of objects. As opposed to FindElement(), which returns an object. Also, since the item has changed from "select" to "manage" - I think the id has changed?

     

    If you want to see whether your statement is correct in picking the correct UI object, then try highlighting it

    function test()
    {
        var roleACL = frame.FindElement(...);
        if (roleACL.Exists) {
            Sys.HighlightObject(roleACL);
        }
    }