Each of the "7-pack" search results here contains an address and a phone number for each entry down the right hand side thus:
For each, I want to extract (i) the address and (ii) the phone number. The problem is, here is how these elements are defined in HTML:
<div style="width:146px;float:left;color:#808080;line-height:18px"><span>Houston, TX</span><br><span>United States</span><br><nobr><span>(713) 766-6663</span></nobr></div>
So there is no class name, css selector, or id from which I can use a find_element_by*(), I won't know the link text, so I can't use find_element_by_partial_link_text(), and WebDriver does not provide a method for finding by style, as far as I am aware. How do we work around this? I need to reliably be able to extract the right data every time, for each search result, for varying queries.
Language binding to WebDriver is Python.