账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    python 自动发布错误raise TimeoutException(message, screen, stacktrace)
    3
    0
    这个是错误提示:Downloading video...Downloaded video!Challenge the Game discussed mental health, equality and love for the game! - @tiktok - For YouStarting upload...Traceback (most recent call last): File "main.py", line 263, in <module> main() File "main.py", line 240, in main upload_file( File "main.py", line 107, in upload_file _set_basic_settings(driver, title, description, thumbnail_path) File "main.py", line 147, in _set_basic_settings title_input: WebElement = driver.switch_to.frame(WebDriverWait(driver, 20).until( File "C:\Users\mawanyan\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\support\wait.py", line 80, in until raise TimeoutException(message, screen, stacktrace)selenium.common.exceptions.TimeoutException: Message:这个是代码def _set_basic_settings(driver: WebDriver, title: str, description: str, thumbnail_path: str = None): title_input: WebElement = WebDriverWait(driver, 20).until( EC.element_to_be_clickable( ( By.XPATH, '//ytcp-mention-textbox[@label="Title"]//div[@id="textbox"]', ) ) ) # Input meta data (title, description, etc ... ) description_input: WebElement = driver.find_element_by_xpath( '//ytcp-mention-textbox[@label="Description"]//div[@id="textbox"]' ) thumbnail_input: WebElement = driver.find_element_by_css_selector( "input#file-loader" ) title_input.clear() title_input.send_keys(title) description_input.send_keys(description) if thumbnail_path: thumbnail_input.send_keys(thumbnail_path) driver.find_element_by_css_selector("#toggle-button").click() WebDriverWait(driver, 20).until(EC.element_to_be_clickable( (By.NAME, "NOT_MADE_FOR_KIDS") )).click()无法运行,求解!添加了iframe框架也是这个错误。
    0
    打赏
    收藏
    点击回答
        全部回答
    • 0
    更多回答
    扫一扫访问手机版

    回答动态

    跟紧步伐:发布了悬赏问题9414754预计能赚取 0积分收益
    俗野.:发布了悬赏问题9414754预计能赚取 0积分收益
    wowei:发布了悬赏问题9414754预计能赚取 0积分收益
    若愛只如初見:发布了悬赏问题9414754预计能赚取 11积分收益
    懒得讨好:发布了悬赏问题9414754预计能赚取 0积分收益
    [浅殇]:发布了悬赏问题9414754预计能赚取 0积分收益
    盛夏微凉冬甚暖:发布了悬赏问题9414754预计能赚取 0积分收益
    地主的狗:发布了悬赏问题9414754预计能赚取 0积分收益
    救赎丶上帝:发布了悬赏问题9414754预计能赚取 11积分收益
    图标小王子:发布了悬赏问题9414754预计能赚取 0积分收益