In our web portal application, we have navigation bar and on mouse hover of menu it will display sub menus. On mouse hover of sub menu it will display child sub menus. I need to automate the child sub menu link click, so that it can open the corresponding page. When move the mouse pointer out of the child sub menus, that section will disappear.
Please suggest solution on the below issues:
I'm able to capture the navigation bar menu item. Then i used the Focus method so that it can display sub menus. But sub menus are not displayed? How do i achieve this?
How do i capture the sub menu item on mouse hover of navigation bar menu?
How do i capture the child sub menu on mouse hover of sub menu from the above step(This child sub menu area, disappears if i mouse pointer is moved out of it)?
Attached the Nav bar screenshot for your reference.
For these types of menus, you need to look on the web controls tab to locate the actual links that are in the menus. They are likely present in the html even without them being visible, and can thus be clicked. You won't interrogate them directly; you will simply be adding the controls from the web controls tab.