23 lines
1.1 KiB
Plaintext
23 lines
1.1 KiB
Plaintext
### Result
|
|
{"title":"ProgCode.Ru — архив программиста","searchResults":3,"jsonOutput":"{\n \"production\": true\n}","publicTLS":"browser navigation succeeded"}
|
|
### Ran Playwright code
|
|
```js
|
|
await (async page => {
|
|
await page.setViewportSize({width:390,height:844});
|
|
await page.goto('https://progcode.ru/');
|
|
const title=await page.title();
|
|
await page.getByRole('searchbox').fill('Bitrix');
|
|
const count=await page.locator('.article-card').count();if(count!==3)throw Error('public search failed');
|
|
await page.screenshot({path:'/tmp/progcode-public-mobile.png'});
|
|
await page.goto('https://progcode.ru/tools/');
|
|
await page.locator('#json').fill('{"production":true}');
|
|
await page.getByRole('button',{name:'Проверить и форматировать'}).click();
|
|
const output=await page.getByRole('status').innerText();if(!output.includes('true'))throw Error('public tool failed');
|
|
return {title,searchResults:count,jsonOutput:output,publicTLS:'browser navigation succeeded'};
|
|
}
|
|
)(page);
|
|
```
|
|
### Page
|
|
- Page URL: https://progcode.ru/tools/
|
|
- Page Title: ProgCode.Ru — архив программиста
|