Created
May 2, 2024 10:22
-
-
Save SarahElson/eea39f4c8c6515496369dc12dc40888d to your computer and use it in GitHub Desktop.
How to Use pytest Skip Test And XFail in Selenium
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
#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