title: Link doesnt work in xpath Selenium Webdriver (Ajax-container)
body: <pre><code>class ClickAndSendKeys():
  
      def test(self):
          # Driverlocation
          driverLocation = "C:/Users/Dennis.Pieruschka/Documents/chromedriver.exe"
          os.environ["webdriver.chrome.driver"] = driverLocation
          # Instantiate Chrome Browser Command
          driver = webdriver.Chrome(driverLocation)
          driver.maximize_window()
          url = "http://www.visservanbaars.nl/vacatures"
          driver.get(url)
          driver.find_element_by_xpath("//div[@id='ajax-container']//form//div//input").click()
          time.sleep(3)
          driver.find_element_by_xpath("//div[@id='ajax-container']//form//div//input").send_keys("Bi Consultant")
          time.sleep(3)
          driver.find_element_by_xpath("//div[@id='ajax-container']//form//div/span/button").click()
  
  ff = ClickAndSendKeys()
  ff.test()
  </code></pre>
  
  <p>When I run this code, Selenium doesn't go to the next page </p>
  
  <p>xpath is correct but when it clicks it closes the window directly.<br>
  Does anyone know how to work with it?</p>