title: Python/Selenium - Struggling to click on a button in a Navbar
body: <p>I'm fairly new to Selenium and trying to automate login to this site (<a href="https://eudravigilance-human.ema.europa.eu/#/" rel="nofollow noreferrer">https://eudravigilance-human.ema.europa.eu/#/</a>), but for the life of me cannot figure out how to click on the drop down button on the navbar.</p>
  
  <p>Here is my current code </p>
  
  <pre><code>from selenium import webdriver;
  from selenium.webdriver.support.ui import WebDriverWait
  from selenium.webdriver.common.by import By
  from selenium.webdriver.support import expected_conditions as EC
  
  driver = webdriver.Chrome(executable_path= 'C:\\Users\jpaddick\Python Extentions\chromedriver.exe')
  driver.get("https://eudravigilance-human.ema.europa.eu/#/")
  
  wait = WebDriverWait(driver, 10)
  wait.until(EC.element_to_be_clickable((By.XPATH,'/html/body/nav/div/div[1]/button')))
  driver.find_element_by_xpath('/html/body/nav/div/div[1]/button').click()
  </code></pre>
  
  <p>This is basically the code im running for another project so I don't think the syntax is wrong. </p>
  
  <p>It doesnt seem to be sitting in an Iframe that I can switch to. Trying to click on the hidden login button directly doesn't seem to yield any results. No luck when using firefox instead and disabling the javascript on the site renders it inoperable.</p>
  
  <p>Any ideas guys, as always im expecting something super simple that I forgot about :)</p>
  
  <p>Cheers</p>