Check Broken Links in WebdriverIO
Front-end Testing with Kevin
I had a viewer ask about checking broken links in WebdriverIO. It's a great question (although WebdriverIO may not be the most appropriate solution as there are tools that can do it quicker).
It covers a lot of details, from selecting multiple elements, using 'map' and 'forEach' on the results, and integrating other node modules in to your tests.
Code: https://github.com/wdio-wed/broken-link-check
Links: WebdriverIO's getAttribute Command: http://webdriver.io/api/property/getAttribute.html
"The Internet" Test Suite: http://the-internet.herokuapp.com/
Chai's 'below' assertion: http://www.chaijs.com/api/bdd/#method_below
JS Map function: https://www.youtube.com/watch?v=bCqtb-Z5YGQ
Async/Await https://www.youtube.com/watch?v=568g8hxJJp4
Node Fetch: https://www.npmjs.com/package/node-fetch
My WebdriverIO Course https://learn.webdriver.io
WebdriverIO Wednesdays is a video series going through various WebdriverIO concepts, mainly focused around real-world test scripts. ... https://www.youtube.com/watch?v=0MFE-AMZavY
99740213 Bytes