Guest User

Untitled

a guest
Nov 20th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. <p>
  2. <strong>Telephone:</strong>
  3. 1(111)234-11111
  4.  
  5. text = driver.find_element_by_xpath("//p[strong = 'Telephone:']").text.strip()
  6. phone_number = text.split(":")[-1].strip()
  7. print(phone_number)
Add Comment
Please, Sign In to add comment