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

Get activeElement from Shadow DOM #1061

Merged

Conversation

AndreyBelym
Copy link
Contributor

@testcafe-build-bot
Copy link
Collaborator

✅ Tests for the commit 0c6f462 have passed. See details:

return isDomElement(doc.activeElement) ? doc.activeElement : doc.body;
var el = isDomElement(doc.activeElement) ? doc.activeElement : doc.body;

while (el && el.shadowRoot) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to create nested shadowRoots?
Can active element be non isDomElement?

If it is true, then add tests for following cases.

@testcafe-build-bot
Copy link
Collaborator

❌ Tests for the commit 638bbc2 have failed. See details:

Copy link
Contributor

@miherlosev miherlosev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, wait for green tests

@testcafe-build-bot
Copy link
Collaborator

❌ Tests for the commit 638bbc2 have failed. See details:

@AlexanderMoskovkin
Copy link
Contributor

Tests are ok (besides a blinking test), so I'll merge this

@AlexanderMoskovkin AlexanderMoskovkin merged commit 6ace2b9 into DevExpress:master Mar 17, 2017
AndreyBelym added a commit to AndreyBelym/testcafe-hammerhead that referenced this pull request Feb 28, 2019
* Get activeElement from Shadow DOM

* Remove isDomElement check; add a test
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

Successfully merging this pull request may close these issues.

None yet

5 participants