Validating Log In funtionality in website using Selenium webdriver with Python
Question: I am trying to click the "Log In" element present in webpage. "Log In" element
is visible , when you click on ACCOUNT element on website.

code is :

    
    
    import  unittest
    from selenium import webdriver
    
    class registernewuser(unittest.TestCase):
        @classmethod
        def setUpClass(cls):
            cls.driver = webdriver.Chrome()
            cls.driver.implicitly_wait(10)
            cls.driver.maximize_window()
            cls.driver.get("http://demo.magentocommerce.com/")
    
        def test_register_new_user(self):
        driver = self.driver
        account_click = driver.find_element_by_link_text("ACCOUNT").click()
        driver.implicitly_wait(3)
        self.driver.find_element_by_link_text('Log In').click()
    
        @classmethod
        def tearDownClass(cls):
            cls.driver.quit()
    


Answer: Added [account_click = driver.find_element_by_link_text("ACCOUNT").click()
driver.implicitly_wait(3) ] in code and it worked . If you want to click an
element which is a part of dropdown of main element , click main element-->
implicitily wait command ---> Click dropdown element.

