Na aula URL do servidor e teste falha, onde deve fazer com o webdriver do chrome abra a página da alura, estou obtendo o seguinte erro:
(venv) sh-5.1$ python manage.py test
Creating test database for alias 'default'...
System check identified no issues (0 silenced).
E
======================================================================
ERROR: test_para_verificar_se_a_janela_do_browser_esta_ok (setup.tests.AnimaisTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/leonardo/Documentos/Dropbox/6-ALURA/DJANGO/TDD-TEST DRIVEN DEVELOPMENT/setup/tests.py", line 8, in setUp
self.browser = webdriver.Chrome('/home/leonardo/Documentos/Dropbox/6-ALURA/DJANGO/TDD-TEST DRIVEN DEVELOPMENT')
File "/home/leonardo/Documentos/Dropbox/6-ALURA/DJANGO/TDD-TEST DRIVEN DEVELOPMENT/venv/lib/python3.10/site-packages/selenium/webdriver/chrome/webdriver.py", line 81, in __init__
super().__init__(
File "/home/leonardo/Documentos/Dropbox/6-ALURA/DJANGO/TDD-TEST DRIVEN DEVELOPMENT/venv/lib/python3.10/site-packages/selenium/webdriver/chromium/webdriver.py", line 103, in __init__
self.service.start()
File "/home/leonardo/Documentos/Dropbox/6-ALURA/DJANGO/TDD-TEST DRIVEN DEVELOPMENT/venv/lib/python3.10/site-packages/selenium/webdriver/common/service.py", line 106, in start
self.assert_process_still_running()
File "/home/leonardo/Documentos/Dropbox/6-ALURA/DJANGO/TDD-TEST DRIVEN DEVELOPMENT/venv/lib/python3.10/site-packages/selenium/webdriver/common/service.py", line 117, in assert_process_still_running
return_code = self.process.poll()
AttributeError: 'Service' object has no attribute 'process'
----------------------------------------------------------------------
Ran 1 test in 0.504s
FAILED (errors=1)
Destroying test database for alias 'default'...
(venv) sh-5.1$
o arquivo tests.py é o seguinte:
from django.test import LiveServerTestCase
from selenium import webdriver
class AnimaisTestCase(LiveServerTestCase):
def setUp(self):
"""Configura o WebDriver"""
self.browser = webdriver.Chrome('/home/leonardo/Documentos/Dropbox/6-ALURA/DJANGO/TDD-TEST DRIVEN DEVELOPMENT')
def tearDown(self):
"""Fecha o Navegador"""
self.browser.quit()
def test_para_verificar_se_a_janela_do_browser_esta_ok(self):
self.browser.get('https://www.alura.com.br')
A estrutura do projeto é a seguinte:
Estou utilizando o Linux Mint 21 x86_64
Como eu resolvo este erro?