Code: Select all
PWDEBUG=1 pytest -s test_saucedemo.py
< /code>
Ich erhalte Fehlermeldung < /p>
PWDEBUG=1 : The term 'PWDEBUG=1' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the
name, or if a path was included, verify that the path is correct and try again.
< Br />
Code: Select all
import pytest
from playwright.sync_api import Page,expect
def test_page_title(page:Page):
page.goto("https://www.saucedemo.com/v1/index.html") #pytest --base-url https://www.saucedemo.com
expect(page).to_have_title("Swag Labs")
page.get_by_placeholder("Username").fill("standard_user")
page.get_by_placeholder("Password").fill("secret_sauce")
page.locator("input.btn_action").click()