Open right button menu then selec one item from the menu by using Selenium+Python
Question: I try to open the right button menu from web then select one of the
option(e.g. print... )? I'm using selenium and python.Does anyone know how to
do this? Thanks a lot!


Answer: I don't know if I understood you well.

For example try this:

    
    
    from selenium import webdriver
    from selenium.webdriver.common.keys import Keys
    driver = webdriver.Firefox()
    driver.get("https://www.google.pl")
    driver.find_element_by_xpath(".//*[@id='gbwa']/div[1]/a").click()
    driver.find_element_by_xpath(".//*[@id='gb36']/span[1]").click()
    element = driver.find_element_by_xpath("//body")
    element.send_keys(Keys.CONTROL, 'p')
    print driver.current_url
    driver.close()
    

[And read about xpath](http://www.w3schools.com/xpath/)

