I am new to selenium xpath and here's a code I tried. It doesn't enter the loop at all. I think the paths are right. Can someone help? Thanks in advance.
a = driver.find_elements_by_xpath('//*[@class="one"]/ul/li')
for li in a:
xval = driver.find_element_by_xpath('.div/text()')`
<div class="one">
<ul>
<li><div id="1">Hi</div></li>
<li><div id="2"> Hello</div></li>
<li><div id="3">Bye</div></li>
</ul>
</div>