Forum Discussion

daniel_wky's avatar
daniel_wky
New Contributor
12 years ago
Solved

unable to click on a menu tree item that requires to scroll further

anyone have encountered problem in selecting an option in menu tree link after scrolling to the bottom. I encountered issue when the tool scrolls down and it unable to select the option i wanted. Below are my codes



//function is working ok. Able to expand the tree

ExpandAllTree()



//able to scroll down to the lowest item in the menu tree


Aliases.PIMGridPage.menutreepage.MouseWheel(-6, skNoShift)



//this is where the issue happens. its not selecting the item that i wanted. it just clicks on the item where the cursor is.

Aliases
.PIMGridPage.RBDTDGView.Click()



Appretiate anyone have encountered this before??
  • Hi Daniel,



    Please try the following:



    Aliases.PIMGridPage.RBDTDGView.ClickItem(<ITEM_NAME>)



    Where item name is the text it shows. If this doesn't work, try this instead:



    Aliases.PIMGridPage.menutreepage.ClickItem(<ITEM_NAME>)



    If both things fail, remember that you can record your actions as a script. It's a good way to get clues!



    Hope it helped

2 Replies

  • Hi Daniel,



    Please try the following:



    Aliases.PIMGridPage.RBDTDGView.ClickItem(<ITEM_NAME>)



    Where item name is the text it shows. If this doesn't work, try this instead:



    Aliases.PIMGridPage.menutreepage.ClickItem(<ITEM_NAME>)



    If both things fail, remember that you can record your actions as a script. It's a good way to get clues!



    Hope it helped
  • daniel_wky's avatar
    daniel_wky
    New Contributor


    Hi Javier,



    Its working now thanks. Initially still having issue but as per your suggestion, using the record action as script gives the hint. Thanks a lot