Handling menu & Sub-Menu’s in Selenium Using Actions Class
In this Topic I am going to
explain how we can navigate to Menus’ and SubMenus and perform actions using
the Action Class.
Let us suppose, we want to click T-Shirts
under the Mens Section on Flipkart.com, for that I have to do below steps:
- Open Flipkart.com
- Move the mouse to Men’s on Toolbar (Make note that we don’t click here, the submenu opens on hover automatically)
- Click on T-Shirt