Advertisement
dereksir

Untitled

Mar 18th, 2024
377
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. # navigate to target website
  2. driver.get('https://httpbin.io/ip')
  3.  
  4. # retrieve text content of the page
  5. textContent = driver.find_element(By.TAG_NAME, 'body').text
  6. print(textContent)
  7.  
  8. driver.quit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement