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)

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章