The code above first locates the parent element and hovers over it and as soon as the sub-menu renders, it locates the child element from the sub-menu, hover, and finally performs the click operation on it. Also Read: How to Drag and Drop in Selenium? The Role of Re...
To achieve this we use Actions class in Selenium WebDriver. Must Read:Actions Class in Selenium WebDriver Create object of an Actions Class by passing the WebDriver instance. With the object of the Actions class, driver moves to the main menu and then to the sub menu and click on it. Let...
The code above first locates the parent element and hovers over it and as soon as the sub-menu renders, it locates the child element from the sub-menu, hover, and finally performs the click operation on it. Also Read: How to Drag and Drop in Selenium? The Role of Real Devices in Acc...