You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// An object with page and test must be passed into every call
const aiArgs = { page, test };
const headerText = await ai('Get the header text', aiArgs);
await page.goto('https://www.google.com/');
await ai(Type "${headerText}" in the search box, aiArgs);
await ai('Press enter', aiArgs);
})
Zerostep api key is used in environment variable and its returning after doing echo in dev IDE(Visual studio code)
Error:
Running 1 test using 1 worker
✘ 1 ai_test.spec.ts:4:5 › zerostep example (3.1s)
ai_test.spec.ts:4:5 › zerostep example › zerostep.ai 'Get the header text' ────────────────────
'An unknown error occurred.'
1 failed
ai_test.spec.ts:4:5 › zerostep example ─────────────────────────────────────────────────────────
The text was updated successfully, but these errors were encountered:
@naveencha seems you are getting 401 - try disconnecting from VPN /disable firewall that is blocking your token,I was facing this issue and resolved by disconnecting VPN
Code used :
import { test } from '@playwright/test';
import { ai } from '@zerostep/playwright';
test('zerostep example', async ({ page }) => {
await page.goto('https://zerostep.com/');
// An object with page and test must be passed into every call
const aiArgs = { page, test };
const headerText = await ai('Get the header text', aiArgs);
await page.goto('https://www.google.com/');
await ai(
Type "${headerText}" in the search box
, aiArgs);await ai('Press enter', aiArgs);
})
Zerostep api key is used in environment variable and its returning after doing echo in dev IDE(Visual studio code)
Error:
Running 1 test using 1 worker
✘ 1 ai_test.spec.ts:4:5 › zerostep example (3.1s)
1 failed
ai_test.spec.ts:4:5 › zerostep example ─────────────────────────────────────────────────────────
The text was updated successfully, but these errors were encountered: