Created
March 31, 2017 13:55
-
-
Save Wooble/b572eb29829d98d3fe0fdb2d229be6b1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
[pytest] | |
addopts = --driver Firefox |
This file contains hidden or 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
selenium | |
pytest | |
pytest-selenium |
This file contains hidden or 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
def test_title(selenium): | |
selenium.get('http://example.local/') | |
assert 'Example Site' in selenium.title |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment