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)
原文:https://www.cnblogs.com/qianjinyan/p/14395342.html