nightwatch icon indicating copy to clipboard operation
nightwatch copied to clipboard

shadowRoot command API[Enhancement]

Open irondev84 opened this issue 4 years ago • 4 comments

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 ?

irondev84 avatar Jun 10 '21 10:06 irondev84

We'll look into it, thanks.

beatfactor avatar Jun 15 '21 12:06 beatfactor

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?

irondev84 avatar Oct 27 '21 07:10 irondev84

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

beatfactor avatar Oct 27 '21 08:10 beatfactor

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

egarc12 avatar Jun 07 '22 21:06 egarc12