Skip to content
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

You can't run getters after actions and waits. Please put your getters in a callback or at the beginning of the test. #242

Closed
beshoo opened this issue Apr 24, 2019 · 2 comments

Comments

@beshoo
Copy link

@beshoo beshoo commented Apr 24, 2019

I am testing funcunit against facebook wall, I include funcunit :
Now when i run

$(document).ready(function() 
{
F("#js_g > div > div > div").visible(function(){
console.log('found');
})
});

i got this console error :
You can't run getters after actions and waits. Please put your getters in a callback or at the beginning of the test.

please advice

@chasenlehara

This comment has been minimized.

Copy link
Member

@chasenlehara chasenlehara commented Apr 24, 2019

That error is thrown here:

console && console.error("You can't run getters after actions and waits. Please put your getters in a callback or at the beginning of the test.")

FuncUnit is built for running tests for your own site, not simulating actions on another site. I believe the way you’re trying to use it is unsupported.

@beshoo

This comment has been minimized.

Copy link
Author

@beshoo beshoo commented Apr 25, 2019

No that not the case, we are testing on our account...

And i know that the thrown place, but how to use gater in correct way?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.