I am trying to click on the first result on the google result. Here is my code
where I am entering chennai craiglist which is read from csv file. So I am sure the first lin
The xpath you have chosen is 'ok' but probably not the best.
result = driver.find_elements_by_xpath("//ol[@id="rso"]/li")[0] //make a list of results and get the first one
result.find_element_by_xpath("./div/h3/a").click() //click its href