How to Find Broken Images using Selenium WebDriver? | Selenium Interview Questions |

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 พ.ย. 2024

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

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

    📌 Selenium Interview Questions Playlist Link: bit.ly/3matUB3
    ✴ Checkout my other playlists: bit.ly/3gLIAVL
    ☕ Buy me a coffee: bit.ly/33ljBWc

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

    thank you so much !!!!! You said you would make video about find broken images , and now you did it !!! Thank you so much ! You are truly nice guy !!!

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

      Thankyou 😊
      I hope you enjoyed the video, keep watching 😊

  • @KaranSharma-lm6eh
    @KaranSharma-lm6eh 2 ปีที่แล้ว +2

    Thank you so much for the wonderful tutorial, it was very much needed as i am writing Automation test case for the verification of broken images.

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

      Thats very good to hear buddy

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

    Very Nice Explanation

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

    Could'nt be more perfect than this !

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

    Wow excellent tutorial ❤

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

    Thank you

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

    Thank you so much !! this is what I need , thank you ! I have only one question ,when I use this code to test practice website of yours , it shows the broken images ,but when I use it to test my demo website ,it only shows red " null " in the console , without any other informations , do you know why and how can I fix it ?please .

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

      That might be bcz of one reason
      The image src is null, so it might be going into the catch block because for null address the url connection part will throw the exception.
      Do one thing, first print all the image src values in the console and see whether they are looking valid or not

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

      @@HYRTutorials how can I do that ? please

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

      @@ilyasyar how do u want to find the broken images?
      Using selenium or jsoup?

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

      @@HYRTutorials with selenium .I used script from your video ,it worked ,thanks a lot ,it helps me a lot .but as i said ,when I found broken images ,there was one broken image on my site ,and the console only showed that is "null" .,no further information ,like url form this broken image and so on .What can I do or how can I change some lines of your script to show all informations even there was broken image with src is null ? please

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

      @@ilyasyar I got your point.
      Now the script is showing null ryt, even that is also one broken image only.
      But the src value is not available so that's why it is showing as null.
      So we have to manually find out which one is that or you can highlight only that null src image element

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

    మీకు విరాళం చిహ్నం కూడా ఉండాలని నేను భావిస్తున్నాను.

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

      If you liked my work, you could buy some coffee for me buddy
      www.buymeacoffee.com/yadagirireddy

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

    Is it possible to find broken images in a pdf file using selenium?

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

      No buddy

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

      @@HYRTutorials Then it should possible with java?

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

      @@tanmoypaul2513 there are some libraries to read the content from pdf using java but I'm not sure whether they provide any way to do this.
      You can use PDFBox for doing this buddy.
      I have a video on how to use the pdfbox. You can play with it and see.
      If you find any option, do let me also know buddy

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

    what do httpURLConnection.connect() do

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

      Explained in the video buddy