Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. links = driver.find_elements_by_css_selector('div.g') # div[class="g"]
  2. link = links[0] # I am looking for the first link in the main links section
  3. next = link.find_element_by_css_selector('div[class="s"]') # location of cite tag
  4. nextB = next.find_element_by_tag_name('cite')
  5.  
  6. `<div class="s">
  7. <div>
  8. <div class="f kv _SWb" style="white-space:nowrap">
  9. <cite class="_Rm">www.fcv.org.br/</cite>
  10. `
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement