-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Error: using waitForElementVisible after to have switch from 0.7.11 to 0.8.0 #903
Comments
Can you give us some details about your test? On Thu, Mar 17, 2016 at 12:09 PM, GBeauny [email protected] wrote:
|
I did the same update of the nightwatch but the version was from 0.7.9 to 0.8.0 (and 0.8.18). I got the same error in the test suit and looks like this: While I don't have failure on assertion everything it's ok, but after I got a failure in the next test cases I received an error related to |
Here an example of the test case:
Another tests using the same command just after init() passed which is really strange. In the settings, we have added also this properties: "skip_testcases_on_fail" : false. |
Hi, @beatfactor, so, apparently we have this error, only when we have .assert.containsText(); before that fail. When i execute both tests, the .assert.containsText(); fail and then i got the error on the second test with the waitForElementVisible command. I will you know i have also the error when the .assert.containsText() doesn't fail. For now, we have replaced the .assert by .verify on every assert and it works with the last version of nightwatch. |
Hi @beatfactor, An example of the test reduced: One section File, called sections.js:
The test file:
While executing the tests, you'll get an error on the first tests with the assert.contains() command. On the second tests, you'll get an error on the command waitForElementVisible, the same, i gave to you in the first message. This error appear also with Important: You can reproduce it, since the nightwatch version: 0.8.0. Thanks |
Hi @beatfactor You could reproduce the issue? Tell me if you need anything. Thanks |
Thanks, we'll look into it soon. |
Any news? Thanks. |
I think I am seeing the same thing, just to clarify, there is reported failure, but appears to just hang, and doesn't return control? |
and return an : undefined is not a function. Yes. |
Any news about this bug, this is very annoying? Thanks |
@beatfactor, plz do you have any update on this bug? The bug is still reproducible on the last version |
@GBeauny I am not sure if its the case for you, but I think I solved this by calling .end() only when all tests in a file are completed, not after each individual test. eg:
If this is your problem, a positive change to Nightwatchjs would be to throw a more readable error when .end() is called twice, something like ".end() has been called twice, .end() can only be called once per test file." |
@Jezternz Yes, thank you, it's working. But if it was working before then it's a regression. :). |
This issue has been automatically marked as stale because it has not had any recent activity. |
Hi,
We have just got an error on the command waitForElementVisible after a switch version (0.7.11 to 0.8.0).
Here:
We have added that option in global.js:
waitForConditionTimeout:10000;
abortOnAssertFailure:true;
In the test file, it's a simple call of the command: .waitForElementVisible('selector');
The nodejs version used is 0.12.7 same error with the version 0.12.9.
Have you an idea?
Thanks.
The text was updated successfully, but these errors were encountered: