Skip to content

Instantly share code, notes, and snippets.

@SarahElson
Created May 2, 2024 10:22
Show Gist options
  • Save SarahElson/eea39f4c8c6515496369dc12dc40888d to your computer and use it in GitHub Desktop.
Save SarahElson/eea39f4c8c6515496369dc12dc40888d to your computer and use it in GitHub Desktop.
How to Use pytest Skip Test And XFail in Selenium
#It will be skipped when adding an addopts option in pytest.ini file -k "not 06"
def test_06(browser):
browser.get("https://www.lambdatest.com/selenium-playground/simple-form-demo")
assert browser.title == "Selenium Grid Online | Run Selenium Test On Cloud"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment