【发布时间】:2017-01-10 11:46:31
【问题描述】:
【问题讨论】:
-
模态框是否在单独的 iframe 中?
-
@cathal 感谢您的回复,据我所知,我无法识别任何 iframe,请查看附加的最新图片
-
你能告诉我你是如何选择 WebElement 的吗?
-
@cathal its: WebDriverWait wait = new WebDriverWait(driver, 30); wait.until(ExpectedConditions.elementToBeClickable(button_ClosePopupPage)); button_ClosePopupPage.click();
-
@cathal 请同时找到我的定位器:public @FindBy(css=".close") WebElement button_ClosePopupPage;
标签: java selenium selenium-webdriver webdriver