Setting timeout values not working for custom assertions #2613
Replies: 3 comments 4 replies
-
You're probably trying to override the default value when it's already defined. I think what you should do is to specify the element as an object, where you can also specify the timeout as a property. See Element Properties. |
Beta Was this translation helpful? Give feedback.
-
Honestly speaking it would be nice if assertion timeout could be decreased. |
Beta Was this translation helpful? Give feedback.
-
On similar line i have few test which checks element not present as per the user roles and it has more than 50 checks so when we had bug in one of the feature and that check failed so the test time was changed dramatically as for every assert it waited for 5 seconds :( . |
Beta Was this translation helpful? Give feedback.
-
I wrote a custom assertion and I'm trying to figure out how to override the default assertion timeout. I know that I can set the retryAssertionTimeout and waitForConditionTimeout values in the nightwatch config file but I don't want to set these values globally. Rather, I want to set the timeout value for only one specific call to my custom assertion. I've tried ...
... but none of these are overriding the default value (5000ms). Is there a way to override the default assertion timeout value for a single call to a custom assertion?
Nightwatch v. 1.5.0
Beta Was this translation helpful? Give feedback.
All reactions