codeceptjs / codeceptjs/CodeceptJS
Is it possible to work with element inside another element ?
Đang mở
- Ngôn ngữ chính
- JavaScript
- Star
- 4.2k
- Fork
- 757
- Merge trung bình
- 2 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 16
Mô tả
I am wondering if it is possible to work with elements inside of other elements.
For example :
```
const blocks = await Playwright._locate(blocksSelector);
for(let i = 0; i < blocks.length; i++) {
const element = blocks[i]
// How can i grab text for all h2 (or other selectors) inside element ?
// Something like
// let text = element.grabTextFrom('h2');
// console.log(text)
}
```
The documentations only gives us example for `element.click()`
Thanks
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.