Guest User

My test

a guest
Jan 25th, 2021
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.39 KB | None | 0 0
  1. import time
  2. from selenium import webdriver
  3. from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
  4.  
  5. driver = webdriver.Remote(
  6.     command_executor='http://127.0.0.1:4444/wd/hub',
  7.     desired_capabilities=DesiredCapabilities.CHROME
  8. )
  9.  
  10.  
  11. def test_title():
  12.     driver.get('https://www.google.com/')
  13.     assert "Google" in driver.title
  14.  
  15.  
  16. time.sleep(10)
  17. driver.quit()
Advertisement
Add Comment
Please, Sign In to add comment