codeceptjs / codeceptjs/CodeceptJS

Is it possible to work with element inside another element ?

オープン
#2,780 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
4.2k
フォーク
757
平均マージ
2日 9時間
マージ済み PR(30日)
16

説明

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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。