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

问题描述 投票:-1回答:1

AttributeError:“字节”对象没有属性'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'
python selenium selenium-webdriver pycharm attributeerror
1个回答
0
投票
© www.soinside.com 2019 - 2024. All rights reserved.