にはどうすれば適切に代わりのXPathのCSSでそのテキストでセレクタを識別ん
<html>
<head>
<title>Simple Site</title>
</head>
<body>
<form>
<label>Name:</label><input type="text"></form><br/>
<label>Phone:</label><input type="text">
</form>
<div>happy</div>
<div>angry</div>
<div>sad</div>
</body>
</html>
いくつかの簡単なHTMLを設定しますが
することができませんでしたdiv[@text='happy'] #nope
html body div[@text='angry'] #nope
html body div:contains('angry') #nope
html body div[text='angry'] #nope
私は何が欠けていますか?コードの下
可能な複製(http://stackoverflow.com/questions/12323403/how- [私はセレンwebdriverを(パイソン)?で特定のテキストを含む要素を見つけるにはどうすればよいです] do-i-find-an-element-that-specific-in-selenium-webdriver-pyth) – Sanka
可能な複製http://stackoverflow.com/questions/1520429/is-there-a-css-要素を含む特定のテキスト – disinfor
http://stackoverflow.com/questions/30648554/how-to-select-a-web-element-by-text-with-selenium-webdriver-java – Sanka