# CSS Selector/XPath Locator challenge - Worlds Worst Website (sorry in advance!)

**URL:** <https://club.ministryoftesting.com/t/css-selector-xpath-locator-challenge-worlds-worst-website-sorry-in-advance/55165>\
**Category:** Archive\
**Created:** [29 November 2021 12:50 UTC](https://club.ministryoftesting.com/t/css-selector-xpath-locator-challenge-worlds-worst-website-sorry-in-advance/55165 "2021-11-29T12:50:32Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![lgibbs](https://avatars.discourse-cdn.com/v4/letter/l/ba9def/32.png) [@lgibbs](https://club.ministryoftesting.com/u/lgibbs)\
**Post date:** [29 November 2021 12:50 UTC](https://club.ministryoftesting.com/t/css-selector-xpath-locator-challenge-worlds-worst-website-sorry-in-advance/55165/1 "2021-11-29T12:50:32Z")

</div>

Hi all,

I’ve been running a weekly locator challenge on my blog. I pick an element on a website, and ask everyone to create a locator using XPath or CSS Selector that will identify this element.

I’ve been particular mean this week, for 2 reasons:

1. We are looking at the worlds worst website. It is a website that will hurt your eyes.
2. I’ve not actually completed this weeks challenge. I’ve only found a solution that uses XPath. I’ve not yet solved it using CSS Selector.

Here is this weeks challenge.

Go to the tipz page on the worlds worst website:  
[https://www.theworldsworstwebsiteever.com/tipz.php](https://www.theworldsworstwebsiteever.com/tipz.php)

Create a locator using XPath or CSS Selector that will identify the tip message. It must not include the index or position number. If another paragraph element were to be added to the page, then the locator should not need editing or updating:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/ministryoftesting/original/2X/4/41d4bf16081ab529559565503e8ec6f63671da50.png)

Visit my blog for more information about this challenge:

> **[Weekly XPath/CSS Selector Challenge (29th November 2021)](https://louisegibbstest.wordpress.com/2021/11/29/weekly-xpath-css-selector-challenge-29th-november-2021/)**
>
> Challenge: Setup a locator using Xpath or CSS Selector that can be used to identify the tip on the worlds worst website. To make the challenge a little more difficult, you must not use the index or…

---

<div class="post-metadata">

**Author:** ![conrad.braam](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/conrad.braam/32/660_2.png) [@conrad.braam](https://club.ministryoftesting.com/u/conrad.braam)\
**Post date:** [29 November 2021 13:20 UTC](https://club.ministryoftesting.com/t/css-selector-xpath-locator-challenge-worlds-worst-website-sorry-in-advance/55165/2 "2021-11-29T13:20:14Z")

</div>

My browser, tells me that this is not actually a real website.

 ![Screenshot 2021-11-29 131703](https://us1.discourse-cdn.com/flex020/uploads/ministryoftesting/original/2X/6/6641b8f8317e0120f2119ec4f57405d4754e631f.png)

Curious now though, is there mutation test case data that objectively verifies the non-unbreakability of any single solution?

---

<div class="post-metadata">

**Author:** ![lgibbs](https://avatars.discourse-cdn.com/v4/letter/l/ba9def/32.png) [@lgibbs](https://club.ministryoftesting.com/u/lgibbs)\
**Post date:** [29 November 2021 13:57 UTC](https://club.ministryoftesting.com/t/css-selector-xpath-locator-challenge-worlds-worst-website-sorry-in-advance/55165/3 "2021-11-29T13:57:25Z")

</div>

Interesting, mine works. It looks like this. Horrible isn’t it, especially from an accessibility point of view.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/ministryoftesting/original/2X/7/740ed6b183d4a98fe919858272d399512b87b4b6.jpeg)

---

<div class="post-metadata">

**Author:** ![lgibbs](https://avatars.discourse-cdn.com/v4/letter/l/ba9def/32.png) [@lgibbs](https://club.ministryoftesting.com/u/lgibbs)\
**Post date:** [29 November 2021 14:21 UTC](https://club.ministryoftesting.com/t/css-selector-xpath-locator-challenge-worlds-worst-website-sorry-in-advance/55165/4 "2021-11-29T14:21:08Z")

</div>

If it helps, here is a screenshot of the elements in devtools. The grey element is the one we’re trying to identify.  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/ministryoftesting/original/2X/8/839c1af9e0bb6587c464d6c9f14b9f293b075474.png)

> [@conrad.braam](#):
>
> Curious now though, is there mutation test case data that objectively verifies the non-unbreakability of any single solution?

Not really, these are websites which I don’t really have any control over. If it was a website I was actually testing, then mutation testing would be possible. Let’s face it, as testers there are probably many changes we’d recommend for this website.

---

<div class="post-metadata">

**Author:** ![mirza](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/mirza/32/9965_2.png) [@mirza](https://club.ministryoftesting.com/u/mirza)\
**Post date:** [29 November 2021 15:47 UTC](https://club.ministryoftesting.com/t/css-selector-xpath-locator-challenge-worlds-worst-website-sorry-in-advance/55165/5 "2021-11-29T15:47:22Z")

</div>

This beast is actually responsive! 😅

 ![image](https://us1.discourse-cdn.com/flex020/uploads/ministryoftesting/original/2X/1/1f5a3a80005d312e9c5e318c8e1c975d2349223a.jpeg)

---

<div class="post-metadata">

**Author:** ![conrad.braam](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/conrad.braam/32/660_2.png) [@conrad.braam](https://club.ministryoftesting.com/u/conrad.braam)\
**Post date:** [29 November 2021 16:39 UTC](https://club.ministryoftesting.com/t/css-selector-xpath-locator-challenge-worlds-worst-website-sorry-in-advance/55165/6 "2021-11-29T16:39:12Z")

</div>

ha ha they left an actual email address! wonder if it actually works.

---

<div class="post-metadata">

**Author:** ![simon\_tomes](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/simon_tomes/32/14009_2.png) [@simon\_tomes](https://club.ministryoftesting.com/u/simon_tomes)\
**Post date:** [29 November 2021 17:14 UTC](https://club.ministryoftesting.com/t/css-selector-xpath-locator-challenge-worlds-worst-website-sorry-in-advance/55165/7 "2021-11-29T17:14:00Z")

</div>

Wowzers to that website! 😅

Reminds me of [https://www.lingscars.com/](https://www.lingscars.com/)
