-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default Timeouts #129
Comments
Hmm, it could be nice to have something like that. Are you suggesting to make this available as part of the |
That would seem like a reasonable approach to me - use the global setting unless someone has specified the timeout on the method. If neither of those are specified we could change the error to have some useful feedback, or going one step further we could pick a reasonable default for people. My vote would probably be to implement the first piece and then see if we get any more feedback around it.... |
Allowing a global setting to be defined which will be used if no time On Tue, Apr 8, 2014 at 2:59 PM, Jonathan Haggarty
|
{ "operationTimeout": 5000 } or perhaps... {
"nightwatch": {
"waitOperationTimeout": 5000
}
} One small issue with the name is that it might be suggestive that the pause command would respect it, whereas it just waits indefinitely (which is fairly useful for debugging) |
how about waitForConditionTimeout? On Tue, Apr 8, 2014 at 4:14 PM, Jonathan Haggarty
|
Looks like a good idea :) |
* 'master' of github.com:beatfactor/nightwatch: added results and errors properties on the test object available from inside tearDown to satisfy #135 updated tests for waitForElementPresent added waitForConditionPollInterval also, changed the set milliseconds logic a bit and updated the api doc Fixed an issue where the set locateStrategy wasn't used correctly in the case of xpath Fixed an issue when the selenium server wasn't being stopped after a session create error added <no such element> to array of DO_NOT_LOG_ERRORS add missing semicolon add global timeout for waitFor commands. Fixes #129 Standardize return - important for callbacks.
is this default setting called 'waitForConditionTimeout'? |
Would this setting apply for the pages/chai expect command? page.expect.element('@element').to.be.present.after(xxxx)??? |
I'm wondering the same. Is this applicable for expectations? |
Yes.
…On Fri, 7 Jun 2019 at 17:30, Rhuan ***@***.***> wrote:
I'm wondering the same. Is this applicable for expectations?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#129?email_source=notifications&email_token=AADGNMWFDXBHKVZBK2FRQNLPZJ5ITA5CNFSM4AOCGOK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXGFO6I#issuecomment-499931001>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADGNMUSEYF7GT7XXYIGIBLPZJ5ITANCNFSM4AOCGOKQ>
.
|
Any thoughts on having default timeouts around some of the commands? For example, I find myself littering tests with the same timeout for
waitForElementPresent
The below example is fairly simplistic but the default timeout could easily be 5000ms perhaps? Or set as a global?
The text was updated successfully, but these errors were encountered: