私はWebDriverを "Breaking Things"というテキストをクリックして、xpath/css
セレクターを使用しないようにしようとしています。ここではHTMLセレンのドライバー:クリックしてxpathのために働いていない
<div class="org-option" ng-repeat="Org in Organizations" aria-label="Select Breaking Things Organization" ng-click="Org.SelectOrg()" role="button" tabindex="0">
<div class="data">
<div class="data-relative">
<!---->
<div class="image-wrapper" ng-show="Org.HasImage" ng-if="Org.HasImage" aria-hidden="false">
<img class="onboard-logo" ng-src="/apiimage/organizations/f1544944fac34442998a05890c400338-0" src="/apiimage/organizations/f1544944fac34442998a05890c400338-0">
</div>
<!---->
<div class="image-wrapper ng-hide" ng-show="!Org.HasImage" aria-hidden="true">
<div class="image-placeholder">
<div class="center-icon gicon-panorama"></div>
</div>
</div>
<div class="name-wrapper">
<div>Breaking Things</div>
は、ここで私はドライバでやっているものですされています
chromeDriver.findElement(By.xpath("//div[@class='name wrapper']//[text()='Breaking Things']")).click();
それは私が何をしないのです、クリックしたことはありませんが?私は暗黙の待ちなどを試みましたが、結果はありません。
Oooを、そうだね、それは私が手動で入力するためのものだ。構文は正しいのですか?私はそれが無効な式のエラーをスローするといくつかの異なるタイプでそれを試してみました: – potatocode