How to handle

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ม.ค. 2025

ความคิดเห็น • 119

  • @shankumondal2881
    @shankumondal2881 3 ปีที่แล้ว +8

    From no other available internet resources we can get a so clear explanation ever.
    Thank you Naveen.
    👍

  • @vijaysajjan1131
    @vijaysajjan1131 หลายเดือนก่อน +1

    debugged two days with no luck, after your video able to find web element. thank you 🥰

  • @najiriyas7394
    @najiriyas7394 11 หลายเดือนก่อน +2

    Very good explanation about shadow dom.. Thank you so much 😊

  • @a_l_o_k_1991
    @a_l_o_k_1991 2 ปีที่แล้ว +1

    That's the right way how to explain concepts...Thanks for this video

  • @manikandansankar5943
    @manikandansankar5943 3 หลายเดือนก่อน +2

    Thank you so much sir, 🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏. Finally got the solution

  • @naveenautomationlabs
    @naveenautomationlabs  4 ปีที่แล้ว

    GIT REPO FOR THIS EXAMPLE:
    github.com/naveenanimation20/ShadowDOMHandle

    • @jaganathanellappan4244
      @jaganathanellappan4244 2 ปีที่แล้ว

      Hi Naveen
      Script was working but ...text which passed as attributes were not displayed as text and looks like predefined text...any idea on it...

  • @tarang692
    @tarang692 2 ปีที่แล้ว

    Thank You Sir ji...very informative...I was lost and your videos helped me understand.

  • @MrDottyrock
    @MrDottyrock 2 ปีที่แล้ว +3

    After 12 hrs of debugging SF, I learnt what shadow doms are and got my CI tests working.

  • @KuldeepKumar-wu7xx
    @KuldeepKumar-wu7xx 4 ปีที่แล้ว +2

    Thanks for sharing Naveen, its very helpful..!!

  • @SarangHoley
    @SarangHoley 4 ปีที่แล้ว +3

    Awaited topic got covered, Thanks Naveen For this 😊👍

  • @saurabhk2327
    @saurabhk2327 4 ปีที่แล้ว +1

    Most awaited topic... Thanks Naveen 👌

  • @kavishautomationfactory170
    @kavishautomationfactory170 4 ปีที่แล้ว +1

    Thanks Naveen. This is new concept for me. Learned new things today

  • @adurianvesh7225
    @adurianvesh7225 2 ปีที่แล้ว

    Thanks, Naveen. This is a new concept for me. Learned new things.

  • @swapnilgujar6398
    @swapnilgujar6398 ปีที่แล้ว +1

    Thanks Naveen for this video. It helped me a lot

  • @luikanungo5859
    @luikanungo5859 6 หลายเดือนก่อน

    Thank you Naveen!! This helps me a lot 🙏🏻could run my application successfully 😇

  • @arpitarjaria2784
    @arpitarjaria2784 2 ปีที่แล้ว

    Amazing explanation of shadow dom. Thanks Naveen

  • @samitbh87
    @samitbh87 4 ปีที่แล้ว +1

    Learned a new and much awaited topic !! Thanks Naveen :)

  • @velun4047
    @velun4047 3 ปีที่แล้ว

    Very helpful for accept all cookies banner.. Thanks Naveen...

  • @rahultripathi2005
    @rahultripathi2005 2 ปีที่แล้ว

    Beautifully explained in details..

  • @vivekn9856
    @vivekn9856 3 ปีที่แล้ว

    That's great!! Thank you, Naveen for the video. Please demonstrate how to scroll inside shadowroot element

  • @girishchandramoharana2
    @girishchandramoharana2 4 ปีที่แล้ว +1

    Thanks a lot Naveen.....👍👍👍

  • @saurabhgupta3542
    @saurabhgupta3542 4 ปีที่แล้ว +1

    I wanted to automate chrome:downloads section once, but I never knew why I was not able to interact with the element. With this video now I know the reason.
    Thank you for the video Naveen ❤️

  • @ppk24
    @ppk24 4 ปีที่แล้ว +4

    Request you to please explain how to locating elements in shadow DOM using selenium *python*. Thank you Naveen..!!

  • @rssaiganesh
    @rssaiganesh 2 ปีที่แล้ว

    Thank you very much for this video. Helped me a lot

  • @arunbarma1002
    @arunbarma1002 11 หลายเดือนก่อน +1

    Excellent 👌

  • @afrinfakir7313
    @afrinfakir7313 4 ปีที่แล้ว +1

    This is so amazing... Thank you so much Sir

  • @mandeeparora5652
    @mandeeparora5652 4 ปีที่แล้ว +1

    Thanks for this topic... Really helpful

  • @samuel.patrick.grace779
    @samuel.patrick.grace779 14 วันที่ผ่านมา

    Hi @naveenautomationlabs i did the same, i am unable to click on the element. It is throwing: javascript error: cant read properties of null(reading 'shadowRoot').

  • @vikalpandey937
    @vikalpandey937 4 ปีที่แล้ว

    Thanks for your quick response 👍 👏 👌 😀

  • @nagarathnadesai
    @nagarathnadesai ปีที่แล้ว

    Hello,
    I have a drop-down value in shadow root that I need to select.
    Tried with JS path like you suggested, but the value keeps changing, as it is dynamic.
    Any way that I can search the value through text?
    Please let me know.
    Thank you in advance.
    Below is my output from console :
    document.querySelector(‘eds-select’).shadowRoot.querySelector(‘div > ng-select > ng-dropdown-panel > div > div > div > span’)
    Span contains the text that I am trying to select

  • @DinuVijayan
    @DinuVijayan 3 ปีที่แล้ว +5

    Thanks Naveen for this wonderful video. But a question, while using document.querySelector should we traverse through each node or can we use something relative like relative XPath?

  • @asifsaleem7086
    @asifsaleem7086 3 ปีที่แล้ว +5

    Javascript error : cannot read property 'shadowroot' of null ............... i facing this all the time plzzz help

    • @devashishrawat6555
      @devashishrawat6555 3 ปีที่แล้ว +1

      I am getting the same error. Please help me with the solution if you found it.

    • @fabiofinco7017
      @fabiofinco7017 หลายเดือนก่อน

      You have to add the thread.sleep in order to have the shadow doom uploaded.

  • @MrutyunjayDravid
    @MrutyunjayDravid ปีที่แล้ว

    Hey Naveen, how to apply webdriver wait or any other wait for that instance for shadowDOM elements? PLEASE HELP. My webpage is not loaded and the script is already performing click function

  • @27shivang27
    @27shivang27 2 หลายเดือนก่อน

    How to give waits for these elements, especially Explicit Wait?
    Because when I try to change the Shadow root element to WebElement( so that I can give wait), the script fails as it does not able to find the element. But I'm trying to give wait until expected condition, visibility of element is matched. 😢

  • @NehaKumari-hn4uk
    @NehaKumari-hn4uk ปีที่แล้ว

    If anyone reading this comment please reply I am automating rahulshetty ecommerce website when I don't use page object model its work perfectly but when I try to automate using page object design pattern the same program doesn't work

  • @sunrisesoft7952
    @sunrisesoft7952 3 ปีที่แล้ว +1

    Great!!!! thank you so much!

  • @pandudamera7211
    @pandudamera7211 4 ปีที่แล้ว +1

    Thank you so much made that video brother

  • @lattikajagannathan1137
    @lattikajagannathan1137 3 ปีที่แล้ว +1

    Shadow-root ( user-agent) is open shadow-root or closed. Can we automate shadow-root (user-agent) elements??

  • @jimmatrix7244
    @jimmatrix7244 8 หลายเดือนก่อน

    Is youtube ad video an example of shadow DOM? If yes, what element is it referencing?

  • @keerthika_11
    @keerthika_11 5 วันที่ผ่านมา

    Hi, any suggestions to handle dynamic shadow Doms

  • @pavankumar-wn9to
    @pavankumar-wn9to 3 ปีที่แล้ว +1

    Hi Naveen,. I can see shadow root element is opened but still seeing can not read property 'shadowRoot' of null...any idea on this?

    • @abhisrag
      @abhisrag 9 หลายเดือนก่อน

      Same error did you find a solution ?

  • @paulr7765
    @paulr7765 3 ปีที่แล้ว

    Dude I love you. You saved me

  • @GoBiNaThArumugam17
    @GoBiNaThArumugam17 13 วันที่ผ่านมา

    Thanks Very useful

  • @varadatiwari1343
    @varadatiwari1343 2 ปีที่แล้ว

    Thanks Naveen. It's a very informative video. I followed this and it worked perfectly for me in chrome but the same code doesn't seem to work for Safari. It would be really helpful if you can make a similar video for Safari as well.

  • @suprabathj7843
    @suprabathj7843 4 ปีที่แล้ว +1

    Good one👍

  • @alifurRahman-xn9ns
    @alifurRahman-xn9ns 4 หลายเดือนก่อน

    for me js xpath is disable what should do for copy for direct

  • @rohithrasamalla3723
    @rohithrasamalla3723 5 หลายเดือนก่อน

    does protractor and cypress with TypeScript support shadow DOM?

  • @YOGESHKUMAR-ce9cd
    @YOGESHKUMAR-ce9cd ปีที่แล้ว

    Even though I follow the same steps in my project the "Check button" is not clicking. Kindly help me on this. what will be the issue?

  • @lakshmisuprajamaggie
    @lakshmisuprajamaggie ปีที่แล้ว

    If input is uploading a file,how can we handle inside nested shadow in python selenium

  • @therealistoptimistic
    @therealistoptimistic 3 ปีที่แล้ว +2

    Getting error - org.openqa.selenium.JavascriptException: javascript error: Cannot read property 'click' of null

  • @ScotlandSiva
    @ScotlandSiva 4 ปีที่แล้ว

    Thanks for covering this topic

  • @ronakraskar5843
    @ronakraskar5843 6 หลายเดือนก่อน

    Thanks Naveen.... This is very helpful....
    Does this work in headless mode..?
    It's working in UI mode but I am facing issue while executing this in headless mode in chrome...

  • @rajeshrj67
    @rajeshrj67 2 ปีที่แล้ว

    Can you help me please... I need to open one downloaded file by clicking on it but that is not working...

  • @macharlaanilkumar6363
    @macharlaanilkumar6363 ปีที่แล้ว

    can you please help me in this, iam getting this elow error-------- raise exception_class(message, screen, stacktrace)
    selenium.common.exceptions.JavascriptException: Message: javascript error: Cannot read properties of null (reading 'shadowRoot')

  • @rahulgada
    @rahulgada ปีที่แล้ว

    Hello Naveen...I am able to enter the value but i am not able to see them in input field on UI but when i go and see in the inspector, under value tag the value is getting stored but not displaying on UI
    what could be the issue, appreciate anyone's help🙏🙏🙏

    • @piju6036
      @piju6036 ปีที่แล้ว

      Since you already got the WebElement by casting the shadow DOM object you can use .sendKeys() method with it.

  • @rahulpatil5990
    @rahulpatil5990 2 ปีที่แล้ว

    How can get list of elements by document.queryselectorAll() with selenium ?

  • @piyushkotiyal9964
    @piyushkotiyal9964 2 ปีที่แล้ว

    how can we use waits without driver as we using JSE,pl help naveen

  • @tulasiramsunkara
    @tulasiramsunkara 4 ปีที่แล้ว

    Excellent Naveen.... I would like to know what is the purpose of shadow elements...

  • @swapnilkawade
    @swapnilkawade 2 ปีที่แล้ว

    Naveen Sir.
    I'm trying tp automate Service Now developer Instance.
    However when I login and come to Start Building page, the Shadow root does not handle.
    I tried with same method - putting in console and checking out
    but getting error: javascript error: Cannot read properties of null (reading 'shadowRoot')
    Kindly suggest....

  • @nisarAhmed_Syed
    @nisarAhmed_Syed 3 ปีที่แล้ว

    Hi there, I have a test that, I have to select an icon (web element) which will be displayed only when I mouse hover to it , then I have to inspect it.can someone help me out how to do it...before mouse hover to it, it shows another data, by mouse hovering to it I get a icon, which I should click and carry out other process

  • @sanjibkumar2390
    @sanjibkumar2390 2 ปีที่แล้ว

    It's such a helpful video thanks Naveen a lot., Team, Please tell me how use get text from a shadow.please it's urgent!!!

  • @vikalpandey937
    @vikalpandey937 4 ปีที่แล้ว

    Thank you so much naveen

  • @najiriyas7394
    @najiriyas7394 11 หลายเดือนก่อน

    Hi sir.. after using the same way am getting JavascriptException in the console...

  • @gordonmccarthy5152
    @gordonmccarthy5152 2 ปีที่แล้ว +2

    when i use this code i got exception " org.openqa.selenium.JavascriptException: javascript error: Cannot read properties of null (reading 'shadowRoot') any solution for that

    • @macharlaanilkumar6363
      @macharlaanilkumar6363 ปีที่แล้ว

      same problem facing , pls explain me if you have already solved

  • @snehakakade4504
    @snehakakade4504 2 ปีที่แล้ว

    Hi Naveen .In application we used Angular and web component with Shadow DOM. Can you please suggest which tool is good for this UI automation

  • @developerscentre
    @developerscentre 2 ปีที่แล้ว

    Thank you for the video! How to use waits for dynamically loading elements present under Shadow DOM?

  • @SingaporeChinnodu
    @SingaporeChinnodu 4 ปีที่แล้ว

    HI Naveen, Telegram link provided in description is not working. Could u tell the group name.

  • @bhushandeshpande6246
    @bhushandeshpande6246 3 ปีที่แล้ว +1

    Great topic coverage Naveen !!! Thanks a lot... I followed the steps and created JS query in my project, it is working in console, but in test script it is failing with error "Cannot read properties of null (reading 'shadowRoot')". I'm working on selenium 3 with Java. Can you please help??

    • @shankarlingam4702
      @shankarlingam4702 2 ปีที่แล้ว

      Hi Bhushan, I am also getting the same error may i know whether the issue is fixed and if yes could pls share how it got fixed?

  • @kirankumar-ek5mr
    @kirankumar-ek5mr 4 ปีที่แล้ว

    Hi Naveen how to open real web cam.. fake camera not working for me.. it just masks with green color in camera.. will you please help me out.. tried all kind of stuffs..

  • @piyushkotiyal9964
    @piyushkotiyal9964 2 ปีที่แล้ว

    great sir!! cud u pl let me kno how can we use webdriverwait with jse as we are not using driver directly

  • @ravishankarharish1345
    @ravishankarharish1345 2 ปีที่แล้ว

    Hi naveen,this was good session.Using this iam trying to operate on drop down but its not woking. It will be good if the session is made on the drop down with out using the select tag inside a shadow root. Thank you

  • @amaraa42
    @amaraa42 ปีที่แล้ว

    Hi Naveen, thank you for the great video it helps a loooot. But I still have problem. I have many shadow root like this DOM. I click one element then navigate to other page. then I was going to locate element. but some reason I cannot locate any element on that new page. I tried reasign jse again or created new one still cannot locate any element from that page. What should I do?
    Can you advise?

  • @yogeshkale4398
    @yogeshkale4398 ปีที่แล้ว

    How to make list of shadow root elements.
    Is it possible?

  • @shilpamadabhavi7718
    @shilpamadabhavi7718 4 ปีที่แล้ว

    Hi Naveen
    i tried this shadow dom in my application its working for textbox when tried it on select item its working could you please give me some idea on this

  • @sampurnagadipudi9925
    @sampurnagadipudi9925 3 ปีที่แล้ว

    Hi Naveen, can u pls share a video on how to perform scroll if we have shadow dom

  • @tejalgulati8085
    @tejalgulati8085 7 หลายเดือนก่อน

    can you please explain, how it can be done for Webdriver IO?

  • @sunrisesoft7952
    @sunrisesoft7952 3 ปีที่แล้ว

    Hello @Naveen
    I'm facing an issue about the stale element under shadow root, do you have any idea/suggestion? thank you in advance!

  • @rsudarsan6690
    @rsudarsan6690 2 ปีที่แล้ว

    hi Sir, is it possible to create one video like this using python and selenium webdriver and another one with Python Robot Keyword framework as well

  • @box4aza
    @box4aza 2 หลายเดือนก่อน

    Thank you 🙏

  • @snehalatabehera7303
    @snehalatabehera7303 ปีที่แล้ว

    Thanks Naveen for explaining it so well. But in my DOM case, after shadow-root I have all the html tags with section only as below
    Shadow-root (open)

    Goes on...
    I need to select the section part 2..how can I do that?? Could you please help me with this??

    • @snehalatabehera7303
      @snehalatabehera7303 ปีที่แล้ว

      It worked with section.2... Please ignore the question. Thank You!

  • @swatishreesahoo2670
    @swatishreesahoo2670 ปีที่แล้ว

    Hi Naveen, I followed the steps mentioned to write the path for shado dom element. but getting "org.openqa.selenium.JavascriptException: javascript error: Cannot read properties of null (reading 'shadowRoot')" error

  • @gilsonsouza8159
    @gilsonsouza8159 3 ปีที่แล้ว

    Hi Naveen, How are you?
    I have a question, lets say that inside the shadow-root there is a also.
    it is a text box where I have to paste a text message. I am facing problems to get there. do you have any idea on how to do it?
    Also I am trying to handle a dropdown, which I now how to do it with normal xpath elements using JAVA API, but how to do it using JS path?
    Please help me :)
    Have a good day Naveen, thank you so much for your videos, it has been helping me a lot

  • @ishannavgire6575
    @ishannavgire6575 3 ปีที่แล้ว

    Hi Naveen,
    Thank you for covering this topic. Accessing elements inside a shadow DOM works fine for Chrome browser, but it fails for firefox with error “circular object reference”. Did you come across this error by any chance? If yes, how did you resolve it?

  • @kirankumar193
    @kirankumar193 4 ปีที่แล้ว

    Hello sir, How to do gettext of shadow dom element?

  • @useme8196
    @useme8196 2 ปีที่แล้ว

    Hi Naveen,
    How Can we use shadow root in Implicitly/Explicitly wait.

  • @KonduVenkat1995
    @KonduVenkat1995 4 ปีที่แล้ว

    Thank's naveen for this video and your're QA community support, and one more I unable to join you're telegram group . How I would join you're Telegram group

  • @snehabhat4446
    @snehabhat4446 2 ปีที่แล้ว

    Hi Naveen, Could you please teach how to insert shadow DOM elements in list. This is required for my work. Please help. I am using JSPath to identify the shadow DOM elements.

  • @cristianvargas7176
    @cristianvargas7176 3 ปีที่แล้ว

    There is no better way to get the elements? I think there are too many chain calls

  • @vasudhakalyane3294
    @vasudhakalyane3294 3 ปีที่แล้ว

    Thank you so much

  • @rahultiwari9376
    @rahultiwari9376 3 ปีที่แล้ว

    I tried the same way but neither it is throwing error nor entering any text in the textbox

    • @traveller_enfield
      @traveller_enfield 3 ปีที่แล้ว

      Hi Rahul, I am getting the same username cannot be empty. You resolved it?

  • @poonamsharma7026
    @poonamsharma7026 3 ปีที่แล้ว

    Hi Naveen, can we automate shadow-root(user-agent)?

  • @akshaygawand8
    @akshaygawand8 9 หลายเดือนก่อน

    Sir please create a video where script is selecting shadow root drop-down options.

  • @gokulnathps8246
    @gokulnathps8246 ปีที่แล้ว

    Great

  • @RoyerAdames
    @RoyerAdames 3 ปีที่แล้ว

    Thank you that helps

  • @KARTHIKPANCH97
    @KARTHIKPANCH97 3 ปีที่แล้ว

    Hi Naveen Please share some websites where shadow DOM is Implemented

  • @richiestark4921
    @richiestark4921 2 ปีที่แล้ว

    How to come out from shadow root after driver switch inside?

  • @bihari1422
    @bihari1422 2 ปีที่แล้ว

    copy js path is life saviour :)

  • @mahapol8812
    @mahapol8812 4 ปีที่แล้ว +1

    How to do shadow dom with python selenium?

  • @kamalkishoresingh9532
    @kamalkishoresingh9532 3 ปีที่แล้ว

    HI Naveen can we do similar in webdriverio

  • @nishantshekhar7447
    @nishantshekhar7447 ปีที่แล้ว

    Need same flow but with Shadow Dome close