10 lines
1.1 KiB
Plaintext
10 lines
1.1 KiB
Plaintext
### Result
|
|
{"scrollLeft":272,"scrollWidth":620,"clientWidth":348,"bodyWidth":390}
|
|
### Ran Playwright code
|
|
```js
|
|
await (async page => {await page.setViewportSize({width:390,height:900});await page.goto('http://127.0.0.1:64524/articles/новый-движок-ctfe/');const el=page.locator('.table-scroll');await el.scrollIntoViewIfNeeded();await el.focus();await page.screenshot({path:'/Users/gavrilovdev/tmp/progcode.ru/docs/rebuild-v2/evidence/candidate-401f0b06436f/table-left.png'});for(let i=0;i<12;i++)await page.keyboard.press('ArrowRight');await page.waitForFunction(()=>{const e=document.querySelector('.table-scroll');return e.scrollLeft>=e.scrollWidth-e.clientWidth-2});await page.screenshot({path:'/Users/gavrilovdev/tmp/progcode.ru/docs/rebuild-v2/evidence/candidate-401f0b06436f/table-right.png'});return await el.evaluate(e=>({scrollLeft:e.scrollLeft,scrollWidth:e.scrollWidth,clientWidth:e.clientWidth,bodyWidth:document.documentElement.scrollWidth}));})(page);
|
|
```
|
|
### Page
|
|
- Page URL: http://127.0.0.1:64524/articles/%D0%BD%D0%BE%D0%B2%D1%8B%D0%B9-%D0%B4%D0%B2%D0%B8%D0%B6%D0%BE%D0%BA-ctfe/
|
|
- Page Title: Dlang. Новый движок CTFE — ProgCode
|