Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/285.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
python Seleniu发送_键表情符号字符_Python_Selenium_Selenium Webdriver - Fatal编程技术网

python Seleniu发送_键表情符号字符

python Seleniu发送_键表情符号字符,python,selenium,selenium-webdriver,Python,Selenium,Selenium Webdriver,我需要发送带有selenium的表情符号,例如: ���������✊ 这就是我所做的 #-*-编码:utf-8-*- 从selenium导入webdriver driver=webdriver.Chrome() 司机,上车https://google.com') text=u“我是用xpath实现的 通过导入从selenium.webdriver.common.by导入 从selenium.webdriver.support将预期的_条件导入为EC 从selenium.webdriver.co

我需要发送带有selenium的表情符号,例如:

���������✊ 这就是我所做的

#-*-编码:utf-8-*-
从selenium导入webdriver
driver=webdriver.Chrome()
司机,上车https://google.com')
text=u“我是用xpath实现的

通过导入从selenium.webdriver.common.by导入 从selenium.webdriver.support将预期的_条件导入为EC 从selenium.webdriver.common.keys导入密钥 inp_xpath='/*[@id=“main”]/xxxxxxxxx' input_box=wait.until(位于((By.XPATH,inp_XPATH))的_元素的EC.presence_)
text='您应该尝试使用
encode('utf-8')
。如果没有密码,我们在这里帮不了什么忙…是的,我尝试了,并给出了相同的错误,错误是什么?'ascii'编解码器无法解码第48位的字节0xef:序号不在范围(128)内。此外,您的字符似乎编码不正确…您可以尝试一下
'