I get this error in my python code:
Traceback (most recent call last):
File "/Users/user/Batch-image-compression/compress_pic.py", line 54, in <module>
**input_box = driver.find_element(By.XPATH,'//input[@class="_2zg9i"]')**
NameError: name 'By' is not defined
In my script I have:
from selenium.webdriver.common import By
The showing error :
from: can't read /var/mail/selenium.webdriver.common