zoukankan      html  css  js  c++  java
  • pytest-BDD issues

    1. Step definition is not found

    E pytest_bdd.exceptions.StepDefinitionNotFoundError: Step definition is not found: When "xxxudiences"". Line 15 in scenario "xxxx" in the feature "/Users/jasqia/qe/features/lsh/cp/add_audience.feature

    原因是: 没有在执行的文件中引入这个step.py文件  

    from steps.ui.lsh.audience_steps import *  should add this import to tests folder

    2. stale element reference: element is not attached to the page document

    selenium.common.exceptions.StaleElementReferenceException: Message: stale element reference: element is not attached to the page document
    E (Session info: chrome=88.0.4324.150)

    我原本是想执行一个拖拽的操作,从左边将数据文件拖拽到右边,但是拖拽到右边的时候,貌似右边元素发生了变化

    3. element not interactable

    E selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable
    E (Session info: chrome=88.0.4324.150)

    ------------------------- A little Progress a day makes you a big success... ----------------------------
  • 相关阅读:
    jQuery实现图片前进后退
    jQuery写日历
    python列表模拟栈
    python 列表去重
    Linux的文件系统
    新建vss数据库
    关于业务用例和系统用例
    从零开始使用Linux命令
    svn的安装与配置
    数塔 动态规划
  • 原文地址:https://www.cnblogs.com/qianjinyan/p/14395342.html
Copyright © 2011-2022 走看看