小编qa *_*cus的帖子

AttributeError: 'bytes' 对象没有属性 'element_to_be_clickable'

AttributeError: 'bytes' 对象没有属性 'element_to_be_clickable'

from telnetlib import EC
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.action_chains import ActionChains
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from time import sleep
from selenium.webdriver.support.select import Select

select = Select(wait.until(EC.element_to_be_clickable((By.XPATH, '//*[@id="form-validation-field-0"]'))))
AttributeError: 'bytes' object has no attribute 'element_to_be_clickable'
Run Code Online (Sandbox Code Playgroud)

python selenium attributeerror pycharm selenium-webdriver

1
推荐指数
1
解决办法
1781
查看次数