I want to open Gmail and other apps from google home page using python and selenium.
I am able to open 'Google Apps' with Xpath but not able to locate google apps like Gmail, Drive, YouTube, Account and other.
I tried with the code;
menu1 = driver.find_element_by_xpath("//*[@id='gbwa']/div/a")
menu2 = driver.find_element_by_xpath("//*[@id='gb23']/span")
Here menu2 is to click 'Gmail' available in apps. It works once but then every time it gives an error
selenium.common.exceptions.ElementNotVisibleException: Message: element not interactable
I tried by
- Putting wait
- Using Xpath Contains
- Switch_to_Window, Frame and other
but facing the same issue.
Thanks in Advance.