点击页面的“继续”按钮时出现问题。我尝试了很多选项,但仍然没有单击按钮。
我尝试了一些类似的选项,但是没有用
WebDriverWait wait = new WebDriverWait(driver, 30);
WebElement element = wait.until(ExpectedConditions.elementToBeClickable(By.xpath('//button[@id="cont_to_ins"]/span[contains(.,"Continue Booking")]')));
element.click()
这是HTML代码
<button wn-validation-dom="prepaidcards-details" class="orange-btn btn btn-sm bold ng-scope" ng-if="!areOtherAddOnsAfterPrepaidCardsIndexAvailableInAccordion()" id="cont_to_ins" ng-click="continueBooking()">
<span translate="Resources.AddOns.PrepaidCards.Button_ContinueBooking" class="ng-scope">Continue Booking</span>
<i class="material-icons "></i></button>
<span translate="Resources.AddOns.PrepaidCards.Button_ContinueBooking"
class="ng-scope">Continue Booking</span>
我希望一旦单击此按钮,就应该显示下一页