The cookie is used to store the user consent for the cookies in the category "Analytics". This cookie is set by GDPR Cookie Consent plugin. These cookies ensure basic functionalities and security features of the website, anonymously. Necessary cookies are absolutely essential for the website to function properly. # To make sure all the opened web browser instances are closed properly
#Use pytest for python3 mac code
# This section of the code runs after all the tests autouse=True)ĭata = load_xlsx("./data/nopcommerce_test_data.xlsx") Print("User profile data being created.") Print('-' * 10 + 'Driver - Setup' + '-' * 10)īrowser_name = ("browser_name")ĭriver = webdriver.Chrome(ChromeDriverManager().install())ĭriver = webdriver.Firefox(executable_path=GeckoDriverManager().install())ĭriver = webdriver.Edge(EdgeChromiumDriverManager().install()) "-browser_name", action="store", driver_setup(request): # This section of coded is added to provide browser name from command line as parameter = 1 error in 0.50s =įrom webdriver_manager.chrome import ChromeDriverManagerįrom webdriver_manager.firefox import GeckoDriverManagerįrom webdriver_manager.microsoft import EdgeChromiumDriverManagerįrom utilities.loaders import load_xlsx, write_data_dic_to_file = short test summary info =ĮRROR tests/test_home_page_title.py::TestHomePageTitle::test_login_page_title - ValueError: Could not get version for Chrome with this command: google-c. INFO WDM:logger.py:12 = WebDriver manager = usr/local/lib/python3.9/site-packages/webdriver_manager/utils.py:155: ValueError
Metadata: ')Į ValueError: Could not get version for Chrome with this command: google-chrome -version || google-chrome-stable -version pomproject # py.test -s -v -capture=tee-sys tests/test_home_page_title.py
(venv) C:PycharmProjectspomproject>docker run -ti pomproject:1.0 /bin/sh