Incosistent behaviour of grabElementBoundingRect in iframe
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 35/100
- Issue 類型
- 缺陷
- 描述清晰度
- 需要釐清
- 活躍度
- 停滯
- 技術堆疊
- javascript, node.js, playwright
- 領域
- testing-qa
研究方向
首先,使用 Playwright 和 WebDriver 在 iframe 內重現提供的 grabElementBoundingRect 呼叫,並比較傳回的座標。當兩種整合都一致地回報相對於預期 viewport 的 iframe 元素位置時,該 issue 即已解決。
由索引模型根據 Issue 內容生成。
描述
What are you trying to achieve?
I have an iframe somewhere on my page, with some elements inside it. I am using grabElementBoundingRect to check if an element in the iframe is within the current viewport of the iframe (ie if i have to scroll down to see the element).
I am running my tests mostly with Playwright, but also with WebDriver on some platforms (hello, IE users!)
What do you get instead?
The values returned by grabElementBoundingRect on elements within iframes differ between these WebDriver and Playwright. Playwright returns an absolute x/y position on the screen, while WebDriver returns an x/y position within the iframe.
const elemRect = await within({frame: "#myIframe"}, () => {
return this.grabElementBoundingRect("#myElement");
});
Details
- CodeceptJS version: 3.0.4
- NodeJS Version: v14.15.4
- Operating System: Ubuntu 18.04
- 主要語言
- JavaScript
- 星號
- 4.2k
- 分支
- 756
- 平均合併
- 2 天 9 小時
- 30 天內合併 PR
- 16
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
codeceptjs/CodeceptJS 的其他 Issue
-
stale
難度 2/5 1-3 小時 新手友好度 72/100
codeceptjs/CodeceptJS#5420 · 1 則留言 ·
-
stale
難度 2/5 1-3 小時 新手友好度 76/100
codeceptjs/CodeceptJS#5358 · 1 則留言 ·
-
stale
難度 2/5 1-3 小時 新手友好度 78/100
codeceptjs/CodeceptJS#4958 · 10 則留言 · 2 個 reaction ·
-
stale
難度 1/5 1 小時以內 新手友好度 72/100
codeceptjs/CodeceptJS#4778 · 3 則留言 ·
-
stale
難度 4/5 3-5 天 新手友好度 38/100
codeceptjs/CodeceptJS#5618 · 1 則留言 ·
查看 codeceptjs/CodeceptJS 的全部 Issue
相似的 Issue
-
documentation
難度 2/5 1-3 小時 新手友好度 88/100
githubnext/gh-aw-workshop#3692 ·
-
agent/guide documentation hive/hosted-available-lke648397-260827-5n31
難度 2/5 1-3 小時 新手友好度 90/100
-
Add: BuyPass TV 未關閉channels:add check:passed
難度 2/5 1-3 小時 新手友好度 75/100
-
S: triage
難度 1/5 1 小時以內 新手友好度 85/100
-
bug
難度 1/5 1 小時以內 新手友好度 90/100
apache/cloudstack#14222 ·