# XPath/CSS Selector Challenge

**URL:** <https://club.ministryoftesting.com/t/xpath-css-selector-challenge/54764>\
**Category:** Archive\
**Created:** [9 November 2021 13:30 UTC](https://club.ministryoftesting.com/t/xpath-css-selector-challenge/54764 "2021-11-09T13:30:26Z")\
**Posts on this page:** 3\
**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:** [9 November 2021 13:30 UTC](https://club.ministryoftesting.com/t/xpath-css-selector-challenge/54764/1 "2021-11-09T13:30:26Z")

</div>

A place I used to work at used to send out weekly XPath writing challenges. I’ve decided to do the same thing on my blog, only to include both CSS Selectors and XPaths.

Each week, I will post a website and a element on that website and ask everyone to write create either a CSS Selector or XPath to locate that element.

For the first week, I chose the button from Day 21 of the 30 days of testing challenge.  
Write an XPath or CSS Selector that will allow you to locate and click the button on the following webpage.  
[https://ministryoftesting.github.io/the-button/](https://ministryoftesting.github.io/the-button/)

Post your answers either here or on my blog. I’ll provide my own answer plus a new challenge next week.

> **[Weekly XPath/CSS Selector Challenge (8th November 2021)](https://louisegibbstest.wordpress.com/2021/11/08/weekly-xpath-css-selector-challenge-8th-november-2021/)**
>
> Challenge: Setup a locator using XPath or CSS Selector for the Click Me button on the following website Comment below with your answer. I’ll be posting my own response next week. Locators are…

---

<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:** [15 November 2021 16:06 UTC](https://club.ministryoftesting.com/t/xpath-css-selector-challenge/54764/2 "2021-11-15T16:06:26Z")

</div>

As promised, I’ve launched another XPath/CSS Selector challenge.

**Challenge: Setup a locator using XPath or CSS Selector for the Next Output cell in the Generator 6 row of the table**  
[https://remarkablegames.org/button-clicker/](https://remarkablegames.org/button-clicker/)

> **[Weekly XPath/CSS Selector Challenge (15th November 2021)](https://louisegibbstest.wordpress.com/2021/11/15/weekly-xpath-css-selector-challenge-15th-november-2021/)**
>
> Challenge: Setup a locator using XPath or CSS Selector for the Next Output cell in the Generator 6 row of the table below with your answer. I’ll be posting my own response next week. This wee…

---

<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:** [23 November 2021 14:49 UTC](https://club.ministryoftesting.com/t/xpath-css-selector-challenge/54764/3 "2021-11-23T14:49:22Z")

</div>

Here we have week 3 of the locator challenge. For this week, we need a locator that can identify the 2nd list On this day list item on the main wikipedia page. Good luck!

> **[Weekly XPath/CSS Selector Challenge (22nd November 2021)](https://louisegibbstest.wordpress.com/2021/11/22/weekly-xpath-css-selector-challenge-22nd-november-2021/)**
>
> Challenge: Setup a locator using Xpath or CSS Selector that can be used to identify the 2nd item in the On This Day list on WikipediaComment below with your answer. I’ll be posting my own res…
