Clicking a sub menu item

Discussion in 'Python' started by googlewellwisher, May 11, 2012.

  1. 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?
    googlewellwisher, May 11, 2012
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Vilmar
    Replies:
    0
    Views:
    447
    Vilmar
    May 27, 2004
  2. itzikkl
    Replies:
    0
    Views:
    5,744
    itzikkl
    Mar 27, 2005
  3. David Hubbard

    clicking menu item opens new browser instance

    David Hubbard, Jan 24, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    331
    David Hubbard
    Jan 24, 2006
  4. Ben
    Replies:
    2
    Views:
    853
  5. Lawrence D'Oliveiro

    Death To Sub-Sub-Sub-Directories!

    Lawrence D'Oliveiro, May 5, 2011, in forum: Java
    Replies:
    92
    Views:
    1,935
    Lawrence D'Oliveiro
    May 20, 2011
Loading...

Share This Page