Created
April 5, 2023 13:11
Pytest Django Tutorial: Testing Your Django Apps With Selenium Pytest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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