Created
November 28, 2020 15:29
-
-
Save szafka/14e6df83382b246c0bddb30147e500f6 to your computer and use it in GitHub Desktop.
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
import unittest | |
from selenium import webdriver | |
class MainTest(unittest.TestCase): | |
def test_1(self): | |
driver = webdriver.Chrome(executable_path=r"C:\TestFiles\chromedriver.exe") | |
driver.get('https://demobank.jaktestowac.pl/logowanie_etap_1.html') | |
title = driver.title | |
print(title) | |
assert 'Celowo wpisany zły tytuł strony' == title | |
driver.quit() | |
Results: | |
E:\Programy\IT\Demo_tests\venv\Scripts\python.exe E:/Programy/IT/Demo_tests/bla.py | |
Process finished with exit code 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment