Replies: 2 comments
-
You might need to do some more debugging to see on which expression it is hanging? Perhaps It's possible that But I would step through and debug to test these hypotheses first. |
Beta Was this translation helpful? Give feedback.
-
I was debugging it. my problem is not, that button is not visible, but the test is freezing in this step and not continue. I expected that after 30s test will continue, in case button is not visible by catch error, but this did not happen. |
Beta Was this translation helpful? Give feedback.
-
I am using taiko: Version: 1.3.2 (Chromium: 100.0.4874.0)
During testing, scenario was passed. The same scenario as part of bigger specification, test is stuck in step, which is implemented in taiko with typescript:
@step("Click button ")
public async clickButtonWithText(txt: string): Promise {
try {
await waitFor(async () => await button(txt).isVisible(), 30000); //in this step is stuck
await click(button(txt));
} catch (err) {
Gauge.writeMessage(
Button ${txt} was not visible
);}
}
How I can avoid freezing test?
Beta Was this translation helpful? Give feedback.
All reactions