Skip to content

Latest commit

 

History

History
64 lines (43 loc) · 1.7 KB

File metadata and controls

64 lines (43 loc) · 1.7 KB
title id slug sidebar_label description number hide_table_of_contents level publish_date tags category
Broken Images
67-broken-images
/67-broken-images
Broken Images
Selenium is built to mimic human action (e.g., clicking, typing, dragging, dropping, etc.). So how do you use it to test for broken images?
67
true
3
2015-10-20
broken image
broken images
proxy
browsermob-proxy
http library
javascript
troubleshooting

How to Test for Broken Images

Intro

Selenium is built to mimic human action (e.g., clicking, typing, dragging, dropping, etc.). So how do you use it to test for broken images?

A Solution

Out of the box, Selenium is not equipped to handle this. But regardless, there are several ways to accomplish this.

We can use...

  • a proxy server
  • an HTTP library
  • JavaScript

Lets look at an example of each.

import DisplayTips from '@site/src/components/displayTips';

<DisplayTips languages={[ {label: 'Ruby', value: 'ruby'}, ]}/>

About The Author

Dave Haeffner is the original writer of Elemental Selenium -- a free, once weekly Selenium tip newsletter that's read by thousands of testing professionals. He also created and maintains the-internet (an open-source web app that's perfect for writing automated tests against).

Dave has helped numerous companies successfully implement automated acceptance testing; including The Motley Fool, ManTech International, Sittercity, and Animoto. He is also an active member of the Selenium project and has spoken at numerous conferences and meetups around the world about automated acceptance testing.

Dave Haeffner profile picture