[Solved] FileNotFoundError: [Errno 2] No such file or directory | OS Module |

Опубликовано: 05 Октябрь 2024
на канале: Learn With Rubel
814
4

Today we will learn how to solved FileNotFoundError: [Errno 2] No such file or directory using python os module:
"""""
NOTE: If you want to become a Software Test Engineer and want to learn with real time environment, you can checkout my course on udemy:
https://www.udemy.com/course/end-to-e...
email me if you want a free coupon.
""""""

code:
from selenium import webdriver
import os

root_dir=os.path.abspath(os.path.dirname(__file__))

driver_path=os.path.join(root_dir, 'drivers/chromedrivepr')

driver = webdriver.Chrome(executable_path=driver_path)
driver.get("https://www.google.com/")

Udemy:
https://www.udemy.com/course/end-to-e...