Skip to content

Commit de19dca

Browse files
committed
Nordstrom test
1 parent 0a0790d commit de19dca

3 files changed

Lines changed: 23 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ These test scripts are provided for **educational purposes** and to **demonstrat
234234
| **[Cloudflare](tests/tests/antibots/cloudflare.spec.ts)** | [▶️ BookDemo](//botswin.github.io/BotBrowser/video_player/index.html?video=antibots-cloudflare-bookdemo), [▶️ Turnstile](//botswin.github.io/BotBrowser/video_player/index.html?video=antibots-cloudflare-turnstile), [▶️ Challenge](//botswin.github.io/BotBrowser/video_player/index.html?video=antibots-cloudflare-challenge), [▶️ TaxSlayer](//botswin.github.io/BotBrowser/video_player/index.html?video=antibots-cloudflare-taxslayer), [▶️ Chegg](//botswin.github.io/BotBrowser/video_player/index.html?video=antibots-cloudflare-chegg) |
235235
| **[Akamai](tests/tests/antibots/akamai.spec.ts)** | [▶️ PlayStation](//botswin.github.io/BotBrowser/video_player/index.html?video=antibots-akamai-playstation), [▶️ WizzAir](//botswin.github.io/BotBrowser/video_player/index.html?video=antibots-kasada-wizzair), [▶️ StubHub](//botswin.github.io/BotBrowser/video_player/index.html?video=antibots-akamai-stubhub), [▶️ AirCanada](//botswin.github.io/BotBrowser/video_player/index.html?video=antibots-akamai-aircanada) |
236236
| **[Kasada](tests/tests/antibots/kasada.spec.ts)** | [▶️ Kick](//botswin.github.io/BotBrowser/video_player/index.html?video=antibots-kasada-kick), [▶️ PlayStation](//botswin.github.io/BotBrowser/video_player/index.html?video=antibots-akamai-playstation), [▶️ Twitch](//botswin.github.io/BotBrowser/video_player/index.html?video=antibots-kasada-twitch), [▶️ WizzAir](//botswin.github.io/BotBrowser/video_player/index.html?video=antibots-kasada-wizzair) |
237-
| **[F5 Shape](tests/tests/antibots/shape.spec.ts)** | [▶️ Southwest](//botswin.github.io/BotBrowser/video_player/index.html?video=antibots-shape-southwest), [▶️ Target](//botswin.github.io/BotBrowser/video_player/index.html?video=antibots-shape-target), [▶️ Temu](//botswin.github.io/BotBrowser/video_player/index.html?video=websites-temu-temu) |
237+
| **[F5 Shape](tests/tests/antibots/shape.spec.ts)** | [▶️ Southwest](//botswin.github.io/BotBrowser/video_player/index.html?video=antibots-shape-southwest), [▶️ Target](//botswin.github.io/BotBrowser/video_player/index.html?video=antibots-shape-target), [▶️ Temu](//botswin.github.io/BotBrowser/video_player/index.html?video=websites-temu-temu), [▶️ Nordstrom](//botswin.github.io/BotBrowser/video_player/index.html?video=antibots-shape-nordstrom) |
238238
| **[reCAPTCHA](tests/tests/antibots/recaptcha.spec.ts)** | [▶️ reCAPTCHA v3](//botswin.github.io/BotBrowser/video_player/index.html?video=antibots-recaptcha-v3), [▶️ reCAPTCHA v2](//botswin.github.io/BotBrowser/video_player/index.html?video=antibots-recaptcha-v2) |
239239
| **[PerimeterX](tests/tests/antibots/perimeterx.spec.ts)** | [▶️ TextNow](//botswin.github.io/BotBrowser/video_player/index.html?video=antibots-perimeterx-textnow), [▶️ Grubhub](//botswin.github.io/BotBrowser/video_player/index.html?video=antibots-perimeterx-grubhub), [▶️ Zillow](//botswin.github.io/BotBrowser/video_player/index.html?video=antibots-perimeterx-zillow) |
240240
| **[Imperva (Incapsula)](tests/tests/antibots/incapsula.spec.ts)** | [▶️ CopaAir](//botswin.github.io/BotBrowser/video_player/index.html?video=antibots-incapsula-copaair), [▶️ TAROM](//botswin.github.io/BotBrowser/video_player/index.html?video=antibots-incapsula-tarom) |
Binary file not shown.

tests/tests/antibots/shape.spec.ts

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { expect, test } from '../global-setup';
2-
import { generateRandomEmail, generateRandomPassword, getDateFormatted, sleep } from '../utils';
2+
import { generateRandomEmail, generateRandomPassword, generateRandomUsername, getDateFormatted, sleep } from '../utils';
33

44
test('southwest', async ({ page }) => {
55
const tomorrowDate = getDateFormatted(1);
@@ -47,3 +47,24 @@ test('target', async ({ page }) => {
4747
await page.locator('button#createAccount').click();
4848
await page.locator('h1 >> text=Verification code sent').waitFor();
4949
});
50+
51+
test('nordstrom', async ({ page }) => {
52+
test.setTimeout(120_000);
53+
await page.goto('https://www.nordstrom.com/');
54+
await sleep(3_000);
55+
await page.goto('https://www.nordstrom.com/signin');
56+
const email = generateRandomEmail();
57+
await page.locator('input[name="email"]').pressSequentially(email, { delay: 20 });
58+
await page.keyboard.press('Enter');
59+
const firstName = generateRandomUsername();
60+
await page.locator('input[name="firstName"]').pressSequentially(firstName, { delay: 20 });
61+
const lastName = generateRandomUsername();
62+
await page.locator('input[name="lastName"]').pressSequentially(lastName, { delay: 20 });
63+
const password = generateRandomPassword();
64+
await page.locator('input[name="password"]').pressSequentially(password, { delay: 20 });
65+
await page.locator('button[alt="create account button"]').click();
66+
await page.locator("h1 >> text=Get rewarded—it's free").waitFor();
67+
await page.goto(
68+
'https://www.nordstrom.com/s/the-perfect-t-shirt/7031683?origin=category-personalizedsort&breadcrumb=Home%2FNew%20Arrivals%2FWomen%2FClothing&color=019'
69+
);
70+
});

0 commit comments

Comments
 (0)