I am new to python and I am writing a code for fb automation using selenium webdriver.
(我是python的新手,我正在使用selenium webdriver编写fb自动化代码。)
I wrote the following command: (我写了以下命令:)
driver.find_element_by_class_name('_1frb').send_keys(keys.ENTER)
and also included the library:
(并且还包括库:)
from selenium.webdriver.common.keys import Keys
it shows the following error:
(它显示以下错误:)
NameError: name 'keys' is not defined
Why am I getting this error?
(为什么会出现此错误?)
What changes can I make to resolve this? (我可以进行哪些更改来解决此问题?)
ask by Pragya translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…