Salve manow, mudaram os erros, agora to tomando permission denied numa pasta que o Jenkins é owner e tem permissão total kk
_________________________ ERROR at setup of test_home __________________________
@pytest.fixture(scope="module")
def browser():
# Configuração do webdriver
chrome_options = Options()
chrome_options.add_argument("--headless")
chrome_options.add_argument("--disable-gpu")
chrome_options.add_argument("--no-sandbox")
service=Service(executable_path="/home/mmelo/chrome-linux64/chrome")
> driver=webdriver.Chrome(service=service, options=chrome_options)
conftest.py:17:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3/dist-packages/selenium/webdriver/chrome/webdriver.py:45: in __init__
super().__init__(
/usr/lib/python3/dist-packages/selenium/webdriver/chromium/webdriver.py:49: in __init__
self.service.path = DriverFinder.get_path(self.service, options)
/usr/lib/python3/dist-packages/selenium/webdriver/common/driver_finder.py:43: in get_path
if path is None or not Path(path).is_file():
/usr/lib/python3.12/pathlib.py:894: in is_file
return S_ISREG(self.stat().st_mode)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = PosixPath('/home/mmelo/chrome-linux64/chrome')
def stat(self, *, follow_symlinks=True):
"""
Return the result of the stat() system call on this path, like
os.stat() does.
"""
> return os.stat(self, follow_symlinks=follow_symlinks)
E PermissionError: [Errno 13] Permission denied: '/home/mmelo/chrome-linux64/chrome'
/usr/lib/python3.12/pathlib.py:842: PermissionError
=========================== short test summary info ============================
ERROR tests/test_home.py::test_home - PermissionError: [Errno 13] Permission denied: '/home/mmelo/chrome-linux64/chrome'
Tentei também com o que está disponível em /usr/bin, mas é o mesmo erro :/
Um outro ponto interessante é, ao rodar sem especificar o chromedriver, ele continua tentando puxar da minha /home, mesmo não havendo quaisquer configurações específicas do Jenkins.