有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java当我点击该区域时显示的文本不正确

单击该区域的方法是:

public CovTextContentDialog goToCovTextContentDialog(int index) {
    log.info("Click on Text area inside of preview");
    String parentWindowHandle = driver.getWindowHandle();
    WebElement textAreaElement;
    CovTextContentDialog covTextContentDialog;
    try {
        wait.until(ExpectedConditions
            .frameToBeAvailableAndSwitchToIt(contentFrameBy));            
        wait.until(ExpectedConditions
            .visibilityOfElementLocated(getTextImageAreaByIndexBy(index)));
        textAreaElement = driver.findElement(By.xpath(
            "//div[@id='detailscontent']/map/area[contains(@href, 'geomOrder=" + index + "&')]"));
        textAreaElement.click();

显示的文本为Geoloorder 16,但应显示 the text of geomOrder 14

是否有其他方法单击正确的区域


共 (0) 个答案