以下是页面的HTML,如何获取Xpath或者是否有其他方法来自动化使用java?实际上,我们不禁要点击这个“继续”按钮。如何在硒webdriver中找到xpath
<regform-button>
<button ng-disabled="activityIndicator" ng-click="validate()" type="button">
<div template="api-loader" ng-http-loader="">
<div class="http-loader__wrapper ng-hide" ng-show="showLoader" ng-include="template">
<span class="api-loader"></span>
</div>
</div>
<ng-transclude>
</button>
</regform-button>
力的工作。在同一页面中保留.Tried:driver.findElement(By.xpath(“// regform-button/button”))。click(); – sandy
你确定这是'继续'按钮吗? – eLRuLL
是的。 In fact试图在以下链接自动注册表单。 https://uk.match.com/unlogged/landing/2016/06/02/hpv-belowthefold-3steps-geo-psc-bowling?klid=6740 – sandy