18 lines
546 B
TypeScript
18 lines
546 B
TypeScript
import { test, expect } from '@playwright/test';
|
|
|
|
test('Verify no broken floating images in "Our Geographic Reach" section', async ({ page }) => {
|
|
// Navigate to the service page
|
|
await page.goto('https://linkstalent.com/service/');
|
|
|
|
// Locate all floating images inside the container
|
|
const images = page.locator('div#float-parallax-7fecf33 img');
|
|
const count = await images.count();
|
|
|
|
for (let i = 0; i < count; i++) {
|
|
const img = images.nth(i);
|
|
|
|
// Get the alt attribute
|
|
const alt = await img.getAttribute('alt');
|
|
}
|
|
});
|