In my scenario, I need to click the submenu that's only visible when its parent menu is in 'mouse over' status:
MainMenu (button)
SubMenu of MainMenu (span)
SubMenu of SubMenu of MainMenu (span)
SubMEnu of SubMenu of SubMenu of MainMenu (span)
I need to click the 4th submenu, but it can only be visible when 1st menu is clicked on and mouse over the 2nd, and then mouse over the 3rd submenu.
I've tried with the ActionChains
(python binding) api (move_to_element
, click
, perform
, even click_and_hold
) in Selenium WebDriver, but had no luck. Can anyone please help me with this?