Fix tests
This commit is contained in:
@@ -2,6 +2,7 @@ import pytest
|
||||
import logging
|
||||
import allure
|
||||
from selenium.webdriver import Chrome, ChromeOptions
|
||||
from selenium.webdriver.chrome.service import Service
|
||||
|
||||
|
||||
class Config:
|
||||
@@ -13,7 +14,7 @@ class Config:
|
||||
def driver():
|
||||
options = ChromeOptions()
|
||||
options.add_argument("--headless")
|
||||
webdriver = Chrome('/home/ashatora/yandexdriver', options=options)
|
||||
webdriver = Chrome(service=Service(executable_path='/home/ashatora/yandexdriver'), options=options)
|
||||
webdriver.implicitly_wait(2)
|
||||
yield webdriver
|
||||
allure.attach(webdriver.current_url, "last url", allure.attachment_type.URI_LIST)
|
||||
|
||||
Reference in New Issue
Block a user