I'm taking my first steps in selenium, and am facing a strange problem right now. I want to navigate on a website and enter text in a search box as well as click the "enter"-button to proceed to the next page. In general, I know how to do this, and it works seamlessly on other websites, but this one seems to cause trouble somehow. When I search the textbox and button by name, it just can't find them. Same problem if I try to access them via xPath or ID... The website is: http://www.dsv.de/schwimmen/wettkampf-national/schwimmerabfrage/ (Database of German Swimming Association)
My code so far looks like the following:
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
url = "http://www.dsv.de/schwimmen/wettkampf-national/schwimmerabfrage/"
driver = webdriver.Chrome()
driver.get(url)
submit_button = driver.find_element_by_name("_submitButton")
fistname_textbox = driver.find_element_by_xpath('//*[@id="_firstnameTextBox"]')
lastname_textbox = driver.find_element_by_xpath('//*[@id="_lastnameTextBox"]')
regid_textbox = driver.find_element_by_id("_regidTextBox")
fistname_textbox.send_Keys("String 1")
lastname_textbox.send_keys("String 2")
submit_button.click()
driver.close()
If any of you could help me and find out what causes this problem, I would be super grateful :) I'm getting more and more confused right now