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

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ก.ค. 2024
  • In this video, I have explained about "How to Find Broken Images using Selenium WebDriver".
    Video Timeline:
    00:00 Introduction to Broken Images.
    01:20 Demo of Broken Images on Real-time application
    02:08 Some of the reasons why images don’t display?
    03:35 Java program to find the Broken images using Selenium WebDriver
    13:06 Java program to find the Broken images using Jsoup (Java HTML Parser library)
    19:30 How to find the broken images behind the Proxy?
    A broken image is an image on a website that is no longer displayed
    Broken images are images that don’t work. Some of the reasons why images don’t display:
    👉The image is no longer available
    👉The image was moved from one location to another location (directory)
    👉The image file name was modified
    Practice Websites: 👇
    www.theworldsworstwebsiteever...
    Download the jsoup library from the below location:
    jsoup.org/
    You can find the program at my GitHub repository: 👇
    bit.ly/3nttoPh
    ==============================================
    ↔️ Selenium Interview Questions Playlist Link: bit.ly/3matUB3
    ✴ Checkout my other playlists: bit.ly/3gLIAVL
    ☕ Buy me a coffee: bit.ly/33ljBWc
    👑 Join my TH-cam channel to get access to perks:👇
    / @hyrtutorials
    ==============================================
    ==============================================
    Connect us @
    🔗 Website - www.hyrtutorials.com
    🔗 Telegram - t.me/hyrtutorials
    🔗 Facebook - / hyrtutorials
    🔗 LinkedIn - / hyrtutorials
    🔗 Twitter - / hyrtutorials
    🔗 Instagram - / hyrtutorials
    ==============================================
    ==============================================
    🙏 Please Subscribe🔔 to start learning for FREE now, Also help your friends in learning the best by suggesting this channel.
    #hyrtutorials #selenium #interviewQuestions #webAutomation
    Selenium Interview Questions By Yadagiri Reddy
    h y r tutorials hyr tutorials selenium interview questions and answers selenium tutorial for beginners selenium java selenium interview questions and answers selenium tutorial for beginners selenium java
    selenium selenium java selenium tutorial for beginners automation testing selenium webdriver

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

  • @HYRTutorials
    @HYRTutorials  3 ปีที่แล้ว +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 3 ปีที่แล้ว +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  3 ปีที่แล้ว

      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

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

    Thank you

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

    Could'nt be more perfect than this !

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

    Very Nice Explanation

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

    Wow excellent tutorial ❤

  • @ilyasyar
    @ilyasyar 3 ปีที่แล้ว +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  3 ปีที่แล้ว +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 3 ปีที่แล้ว +1

      @@HYRTutorials how can I do that ? please

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

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

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

      @@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  3 ปีที่แล้ว

      @@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