Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (env) D:\Daria\Python\Python\pytest1>set PATH
- Path=D:\Daria\Python\Python\pytest1\env\Scripts;C:\Program Files (x86)\NVIDIA Co
- rporation\PhysX\Common;C:\Program Files\Common Files\Microsoft Shared\Windows Li
- ve;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\
- system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShe
- ll\v1.0\;C:\Program Files\Broadcom\Broadcom 802.11 Network Adapter\Driver;C:\Pro
- gram Files (x86)\Windows Live\Shared;C:\Program Files\WIDCOMM\Bluetooth Software
- \;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files (x86)\Sk
- ype\Phone\;C:\Program Files\Git\cmd;C:\Python36\Scripts\;C:\Python36\
- PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
- (env) D:\Daria\Python\Python\pytest1>where chromedriver
- C:\Windows\System32\chromedriver.exe
- (env) D:\Daria\Python\Python\pytest1>py.test test\test_del_group.py
- ============================= test session starts =============================
- platform win32 -- Python 3.6.5, pytest-3.5.1, py-1.5.3, pluggy-0.6.0
- rootdir: D:\Daria\Python\Python\pytest1, inifile:
- collected 1 item
- test\test_del_group.py . [100%]
- ========================== 1 passed in 72.68 seconds ==========================
- (env) D:\Daria\Python\Python\pytest1>py.test --browser=chrome test\test_del_grou
- p.py
- ============================= test session starts =============================
- platform win32 -- Python 3.6.5, pytest-3.5.1, py-1.5.3, pluggy-0.6.0
- rootdir: D:\Daria\Python\Python\pytest1, inifile:
- collected 1 item
- test\test_del_group.py EE [100%]
- =================================== ERRORS ====================================
- __________________ ERROR at setup of test_delete_some_group ___________________
- request = <SubRequest 'app' for <Function 'test_delete_some_group'>>
- @pytest.fixture
- def app(request):
- global fixture
- if fixture is None:
- browser = request.config.getoption("--browser")
- base_url = request.config.getoption("--baseUrl")
- fixture = Application(browser=browser, base_url=base_url)
- else:
- if not fixture.is_valid():
- fixture = Application()
- > fixture.session.ensure_login(username="admin", password="secret")
- conftest.py:18:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- fixture\session.py:47: in ensure_login
- if self.is_logged_in():
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <fixture.session.SessionHelper object at 0x03488430>
- def is_logged_in(self):
- wd = self.app.wd
- > return len(wd.find_elements_by_link_text("Logout")) > 0
- E TypeError: find_elements_by_link_text() missing 1 required positional ar
- gument: 'text'
- fixture\session.py:27: TypeError
- _________________ ERROR at teardown of test_delete_some_group _________________
- def fin():
- > fixture.session.ensure_logout()
- conftest.py:25:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- fixture\session.py:41: in ensure_logout
- if self.is_logged_in():
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <fixture.session.SessionHelper object at 0x03488430>
- def is_logged_in(self):
- wd = self.app.wd
- > return len(wd.find_elements_by_link_text("Logout")) > 0
- E TypeError: find_elements_by_link_text() missing 1 required positional ar
- gument: 'text'
- fixture\session.py:27: TypeError
- =========================== 2 error in 0.30 seconds ===========================
Add Comment
Please, Sign In to add comment