C:\Users\gramy\PycharmProjects\pythonProject1\venv\Scripts\python.exe C:/Users/gramy/PycharmProjects/pythonProject1/okey.py Traceback (most recent call last): File "C:/Users/gramy/PycharmProjects/pythonProject1/okey.py", line 4, in driver = webdriver.Chrome(options=options,executable_path=(r"C:\Users\gramy\PycharmProjects\pythonProject1\chromedriver.exe")) NameError: name 'options' is not defined
https://pastebin.com/apdQX9U1
Https://google.com
spróbuj też dodać linie
from selenium import webdriver
Komentarz usunięty przez autora
File "C:/Users/gramy/PycharmProjects/pythonProject1/okey.py", line 4
driver = webdriver.Chrome(options=options,executable_path=('C:\Users\gramy\PycharmProjects\pythonProject1\chromedriver.exe'))
^
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
Process finished with exit code 1
@hejter2019: driver = webdriver.Chrome(options=options,executable_path=(r"C:\Users\gramy\PycharmProjects\pythonProject1\chromedriver.exe"))
Traceback (most recent call last):
File "C:/Users/gramy/PycharmProjects/pythonProject1/okey.py", line 4, in
driver = webdriver.Chrome(options=options,executable_path=(r"C:\Users\gramy\PycharmProjects\pythonProject1\chromedriver.exe"))
NameError: name 'options' is not defined
print('fgffgfg\fgfgfgfgf)
a potem
print(r'fgffgfg\fgfgfgfgf) lub print('fgffgfg\fgfgfgfgf)
File "C:/Users/gramy/PycharmProjects/pythonProject1/okey.py", line 4
print('fgffgfg\fgfgfgfgf)
^
SyntaxError: EOL while scanning string literal
Process finished with exit code 1
C:\Users\gramy\PycharmProjects\pythonProject1\venv\Scripts\python.exe C:/Users/gramy/PycharmProjects/pythonProject1/okey.py
File "C:/Users/gramy/PycharmProjects/pythonProject1/okey.py", line 4
print(r'fgffgfg\fgfgfgfgf)
^
SyntaxError: EOL while scanning string literal
C:\Users\gramy\PycharmProjects\pythonProject1\venv\Scripts\python.exe C:/Users/gramy/PycharmProjects/pythonProject1/okey.py
File "C:/Users/gramy/PycharmProjects/pythonProject1/okey.py", line 4
print('fgffgfg\fgfgfgfgf)
^
SyntaxError: EOL while scanning string literal
from selenium.webdriver.chrome.options import Options
options = Options()
@hejter2019: nie zamykasz stringa wewnątrz nawiasu
C:\Users\gramy\PycharmProjects\pythonProject1\venv\Scripts\python.exe C:/Users/gramy/PycharmProjects/pythonProject1/okey.py
File "C:/Users/gramy/PycharmProjects/pythonProject1/okey.py", line 5
driver = webdriver.Chrome(options=options,executable_path=('C:\Users\gramy\PycharmProjects\pythonProject1\chromedriver.exe'))
^
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
masz
driver = webdriver.Chrome(options=options,executablepath=('C:\Users\gramy\PycharmProjects\pythonProject1\chromedriver.exe'))
a
https://pastebin.com/FxarrT2Z
Komentarz usunięty przez autora