I am right now learning Selenium via python webdriver with Chrome web-browser. I have written a test as in the course and I have got error Will be glad if anyone can help please:
from selenium import webdriver
driver = webdriver.Chrome(executable_path="C:\Python27\chromedriver.exe")
driver.maximize_window()
driver.get("https://makemytrip.com")
driver.find_element_by_css_selector("label[for='fromCity']").click()
driver.find_element_by_css_selector("input[placeholder='From']").send_keys("Del")
cities =driver.find_elements_by_css_selector("p[class*='blackText']")
for city in cities
if city.text =="Del Rio, United States":
city.click()
The error appears to be next to cities in line 9. thanks.