testcafe-vue-selectors icon indicating copy to clipboard operation
testcafe-vue-selectors copied to clipboard

Can't get access to global Vue (Nuxt) object, fails with error.

Open souljorje opened this issue 6 years ago • 1 comments

Hi! I'm trying to get access to root Vue (Nuxt) instance, but I can't:

const nuxt = await VueSelector();
const vm = await nuxt.getVue();
console.log(vm);

it fails with error:

1) getVue cannot return DOM elements. Use Selector functions for this purpose.

But recently, when I tried to use it with [email protected] it worked well, I could get root Vue (Nuxt) instance and read properties.

No matter if I use testcafe-vue-selectors or https://github.com/kartojal/testcafe-nuxt-selectors it fails in same way. Tried to dive deeper to TestCafe code, but didn't succeed.

Here's repo with reproduction instructions: https://github.com/souljorje/TestCafe-nuxt-issue

Hope for your help! Cheerz, Georgiy 🙌

souljorje avatar May 14 '19 13:05 souljorje

@souljorje

Hello,

Thank you for the repository.

I've reproduced this issue under Windows 10 / Chrome 74 / [email protected] / testcafe-nuxt-selectors / testcafe-vue-selectors. Our team will research it and check for a suitable solution.

Farfurix avatar May 15 '19 09:05 Farfurix

This issue has been automatically marked as stale because it has not had any activity for a long period. It will be closed and archived if no further activity occurs. However, we may return to this issue in the future. If it still affects you or you have any additional information regarding it, please leave a comment and we will keep it open.

github-actions[bot] avatar Dec 10 '22 01:12 github-actions[bot]

We're closing this issue after a prolonged period of inactivity. If it still affects you, please add a comment to this issue with up-to-date information. Thank you.

github-actions[bot] avatar Dec 21 '22 01:12 github-actions[bot]