Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- links = driver.find_elements_by_css_selector('div.g') # div[class="g"]
- link = links[0] # I am looking for the first link in the main links section
- next = link.find_element_by_css_selector('div[class="s"]') # location of cite tag
- nextB = next.find_element_by_tag_name('cite')
- `<div class="s">
- <div>
- <div class="f kv _SWb" style="white-space:nowrap">
- <cite class="_Rm">www.fcv.org.br/</cite>
- `
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement