Skip to content

Instantly share code, notes, and snippets.

@SarahElson
Created April 5, 2023 13:11
Pytest Django Tutorial: Testing Your Django Apps With Selenium Pytest
from selenium import webdriver
import pytest
@pytest.fixture
def webPage():
driver = webdriver.Chrome()
driver.get("https://www.lambdatest.com/automation-demos")
return driver.title
@pytest.fixture
def titleString():
return "Selenium"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment