zoukankan      html  css  js  c++  java
  • selenium.common.exceptions.ElementNotVisibleException: Message: element not interactable (Session info: chrome=74.0.3729.108) (Driver info: chromedriver=2.43.600210

    解决此问题方法:与浏览器窗口有关,我把浏览器窗口设置为最大化,解决了此问题

    下面上代码

    import pytest
    from selenium import webdriver
    from page.ddll_login import Login
    @pytest.fixture(scope="session")
    def int_start():
        """"""
        """初始化一个浏览器"""
        driver = webdriver.Chrome()
        login = Login(driver)  # 初始化登录
        driver.maximize_window()
        yield login,driver
        # driver.quit()s
    @pytest.fixture(scope="class")
    def login_success(int_start):
        """登录成功的方法"""
        login = Login(int_start[1])  # 注意。整个测试里只能出现一次(只能初始化一次浏览器) webdriver.Chrome()
        yield login.to_login("18684720553", "python")
  • 相关阅读:
    细节决定成败,为什么他能挣15亿
    GLSL Notes
    Connecting Physics Bodies
    Pylint
    Physicals
    Advanced Scene Processing
    Working with Other Node Types II
    OperateParticleWithCodes
    SpriteParticle II
    Working with Other Node Types
  • 原文地址:https://www.cnblogs.com/tzxy/p/13178526.html
Copyright © 2011-2022 走看看