nightwatchjs / nightwatch

Integrated end-to-end testing framework written in Node.js and using W3C Webdriver API. Developed at @browserstack
https://nightwatchjs.org
MIT License
11.79k stars 1.31k forks source link

shadowRoot command API[Enhancement] #2736

Open irondev84 opened 3 years ago

irondev84 commented 3 years ago

What about add shadowRoot command API ? for example like this: https://webdriver.io/docs/api/element/shadow$$ https://webdriver.io/docs/api/element/shadow$

Is it possible to add it to v2 ?

beatfactor commented 3 years ago

We'll look into it, thanks.

irondev84 commented 2 years ago

did you change your status from in progress to do, has it lost priority? how big are the chances that it will be in v2?

beatfactor commented 2 years ago

You can already do this in a custom command if you wish. We will probably add it in v2, but it's more like a wrapper around a bunch of stuff that will use the .execute() command. See https://github.com/nightwatchjs/nightwatch/issues/192#issuecomment-951730392

egarc12 commented 2 years ago

Hello everyone

Does anyone have any idea how to use the getShadowRoot command when shadowRoot elements exist inside another shadowRoot element?

For example the following HTML

Screenshot at Jun 07 15-58-32

How could I get to the element named iron-query-params?

I am using version 2.1.7 of Nightwatch