Learn to write selectors for shadow DOM elements: SelectorsHub

preview_player
Показать описание
Want to be expert in XPath, Selectors, WebElement, DOM, SelectorsHub & TestCase Studio, join my training. Registration Link-

This video will help you to learn
1. What is shadow dom
2. Which all selectors possible for shadow dom elements.
3. How to write selectors for shadow dom elements
4. What are the possible solution to write and verify selectors for shadow dom elements.

SelectorsHub helps to generate, write and verify the XPath & cssSelector.
SelectorsHub is the complete new way to generate, write and verify the XPath and cssSelectors.

Checkout SelectorsHub primary Sponsor TestProject- A FREE end-to-end test automation tool.

Please be a patron and support SelectorsHub to run it FREE forever.
Even 1-5$ (a coffee cost) per month will be a great help.

SelectorsHub-
1) It suggests all possible XPath and cssSelector functions while typing like smart editor along with their occurrences to complete Selectors quickly. Now you need not to copy and paste attribute values from DOM anymore to build XPath and cssSelector.
2) Generate all types of possible selectors in single click.
3) Copy XPath, cssSelector and JS path from the context menu itself. No need to open DevTools and SelectorsHub tab anymore.
4) Feature to customise contextMenu.
5) Feature to disable and enable SelectorsHub in contextMenu
6) It gives robust unique relative cssSelector and XPath.
7) It also supports shadowDOM, iframe, frame and SVG elements.
8) It gives the proper error message like what is wrong in your xpath and cssSelector.
9) It also gives the index based xpath in auto suggest.
10) It has the feature to generate selector with the desired attribute.
11) You can also generate selectors with driver command.
12) You can customise the UI as you want.
13) All the config will be saves in local so next time when you open it, it open with your configs.
14) To copy the Selector's value, just click on copy icon or the Selector's Header.
15) To edit Selector's value, just click on selector's value, it will put the value in box where you can edit it and verify.

Please follow video tutorial to make the best use of SelectorsHub.

Please find the change log here-

For more details please checkout homepage-

Very simple steps to use the tool-
1. Open DevTools.
2. On right side, the last sidebar tab is SelectorsHub. Click on it.
3. Here it show all possible selectors for inspected element. For whichever element you want to generate selector, just inspect that and it will generate all possible selectors for that element.
4. To build own XPath or cssSelector, start typing in the selector input box.
5. SelectorsHub will automatically suggest all attributes and everything to complete Selectors quickly. Now you need not to copy and paste attribute values anymore. With this you can save huge amount of time.
6. After typing just press enter.
7. It will high light all matching node and list down them in the SelectorsHub tab.
8. It will also scroll the web element to viewable area.
9. To copy selectors value, click on copy icon.
10. To edit selector value, click on that selector value.
Рекомендации по теме
Комментарии
Автор

Want to be expert in XPath, Selectors, WebElement, DOM, SelectorsHub & TestCase Studio, join my training. Registration Link-

SelectorsHub
Автор

Selectorshub have invested so much time and developed this masterpiece, Thank you Selectorshub from SDET community.
No locator tool is able to tell you if an element is in shadow. But Selectorshub has done it and gives CSS too for further help. Thank you.

lokeshsinha
Автор

I was ignorant until this.. I don't know their is something called Shadow element .. Thank your enlighten me.. This is wonderful extension.. I like.. the way you display whether the element is in iFrame and the syntax error..

kaleemuddinmohammedabdul
Автор

Very informative and much much useful for all the web testers and developers. I guess this is the only solution for Shadow DOM in the planet. Not sure why this video has less view.

James-dnpw
Автор

This is so useful. Thank You Sanjay 👍🏻

rushikeshdeshmukh
Автор

Sir, Really great Lecture for a long time i am searching this and i finaly i got the idea for this

forpractice
Автор

Thanks for the info. Could you please give an example by overriding the shadow style? Because following this I was not able to override.

binny
Автор

how can we use webdriver wait in shadow dom where we typecasted driver into javascriptexecutor

piyushkotiyal
Автор

@Sanjay, I hope you are doing well today. Thank you for this plugin. I have a question about my Selectorshub plugin, it does not identify ShadowDom elements when I am testing. Kindly assist.

olaojeyinka
Автор

if u make a video on shadow DOM testing in Katalon Studio that will be very helpful

sharankumarbhorale
Автор

Hi sanjay! Could you pls tell how we can write locators for shadow dom using text and index number?

yedidimounika
Автор

What the hell is wrong here. Why does this video have so little likes and views. It is such an amazing and innovative utility. This needs more outreach among the SDET community. Thanks a zillion Sanjay.

manzurulqayyum
Автор

I need to select a value from the dropdown, it has no attributes just it has <Select> </select> and it has shadow root as parent. Could you suggest how can I select value in this case in Cypress

bhargavisai
Автор

Hi sir can you please help me how can we get JavaScript code from selector hub I am getting different code while copying

bhargavi-phdr
Автор

I am using calcite component suppose eg. calcite-flow-item this calcite-flow-item will create header tag inside #shadow-root (open), how can I hide the header tag present inside the shadow-root??

wpgszhz
Автор

how to style the elements inside the shadow DOM without any inline css

ekdbdcv
Автор

This is an awesome innovation Sanjay. i already got a glimpse of this during one of the live LocatorsChallenge 4. So just wanted to know if this will be supported in selenium Automation to identify the locators.or ro we need separate extensions to be added to our project.

ankeshkumar
Автор

What about shadowroot(user-agent), can we automate it?

poonamsharma
Автор

how can we override the CSS of element which is inside shadow Dom

sanku
Автор

Awesome! But could you perhaps do a version for Python code as well? Right now you can only extract the Java code from the SelectorsHub plug-in :)

truefluekiller