0

Syntax error with selenium in pycharm

SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape I have tried to use double slashes and making the string raw by placing an r before it. driver = webdriver.Chrome('C:\Users\jerem\Downloads\chromedriver_win32')

2nd May 2020, 6:04 PM
Jeremy Cruz
Jeremy Cruz - avatar
1 ответ
0
You should type is in this way, driver = webdriver.Chrome('C:/Users/jerem/Downloads/chromedriver_win32') Don't use backslashes as it would show an error. Use forward slashes
4th May 2020, 1:26 PM
Ahnaf
Ahnaf - avatar