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

Generating Galen @objects with Javascript #632

Open
riffdr opened this issue Jan 17, 2020 · 0 comments
Open

Generating Galen @objects with Javascript #632

riffdr opened this issue Jan 17, 2020 · 0 comments

Comments

@riffdr
Copy link

riffdr commented Jan 17, 2020

My Team and I are working with Web Components and trying to think of a plausible way of testing them when they feature Shadow root. Since in Selenium the only way to do this is by generating Galen objects out of a JS selector (i.e: document.querySelector('a-web-component').shadowRoot.querySelector('div')) ,maybe there is a way we can inject js to generate the Galen object, being this the ideal scenario:

HTML
<a-web-component> #shadow-root (open) <div>Some text</div> </a-web-component>

GALEN.GSPEC
@objects web-component js document.querySelector('a-web-component').shadowRoot.querySelector('div')

Since this is not available now... is there any way of pushing elements into the @object Map by using a JS selector or through script injection?

Thank you in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant