Answer the question
In order to leave comments, you need to log in
Selenium XPath - how to select li element from list?
I'm trying to get the first search result on the yandex.ru page
driver.find_elements_by_xpath('//ul[@class="serp-list"]/li[@class="serp-item"]')
driver.find_elements_by_xpath('//ul[@class="serp-list"]')
driver.find_elements_by_xpath('//*[@class="serp-list"]')
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question