首页 > 其他 > 详细

pytest-BDD issues

时间:2021-02-10 12:46:51      阅读:50      评论:0      收藏:0      [点我收藏+]

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)

pytest-BDD issues

原文:https://www.cnblogs.com/qianjinyan/p/14395342.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!