Clicking a sub menu item

G

googlewellwisher

Hello,

Im a newbie to automation testing.Im using python scripting in
selenium to automate a website.

Now im facing a difficulty in clicking a submenu item.I have 5 buttons
in the main menu.I am able to click each of the menu button using
self.driver.find_element_by_id("MainMenuButton1").click()

But how can I click the MenuButton1_Submenu button?

For this purpose I think I have to move hover the menu button and wait
for some time, then click the submenus using their ids or whatever
property.Is this the right way to click the sub menu items? If yes can
abybody provide me the code for mouse hover a control?

If this is not the right procedure please provide me with appropriate
code to click on a sub menu item?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,739
Latest member
Clint8040

Latest Threads

Top