Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
特定のクラスを持つすべての要素を探しています。そのクラス名を持つ複数のタイプのタグが存在する可能性があります。同じクラスの div 、 span 、 ps があり、クラスに基づいてそれらすべてを見つける必要があるとします。どうすればできますか。
私は試した:
//[contains(@class,'x')]
これは機能しません。どうすればそれを達成できるか提案してください。
これを試すことができます
//*[@class="x"]