Displaying AttributeError: 'TerminalWriter' object has no attribute '_write_source' | Selenium Python Forum
P
poornima Posted on 30/03/2020

Shows up the below error message while executing the script.

 

 

INTERNALERROR> AttributeError: 'TerminalWriter' object has no attribute '_write_source'
Python version: 3.7.4

Pytest Version: 5.4.1

code:

def test_first():
path="C:\\Users\\lenova\\Desktop\\chromedriver.exe"
driver=webdriver.Chrome(executable_path=path) #from where need to execute the path #
# driver=webdriver.Chrome()
driver.get("https:\\www.clubfactory.com\\")
driver.implicitly_wait(10) # It will wait till the browser and the url is loaded. Take the time is sec#
driver.maximize_window()
time.sleep(3) #import time package to check the browser is completely opened#
driver.quit()