线程“主要” org.openqa.selenium.ElementClickInterceptedException中的异常:元素单击被拦截:

时间:2020-07-08 14:00:49

标签: java

    System.setProperty("webdriver.chrome.driver", "C:\\Users\\rakesh.s\\Desktop\\sowmya jars\\chromedriver.exe");
    WebDriver driver = new ChromeDriver();
    driver.get("https://cai.tools.sap");
    
    driver.findElement(By.xpath("//*[@id='root']/div/div[1]/div[3]/div[3]/a[2]/div")).click();
    
    WebElement element;
    
    WebDriverWait wait = new WebDriverWait(driver, 100);
    element= wait.until(ExpectedConditions.elementToBeClickable(By.id("IDS_UI_Window")));
    
    driver.switchTo().frame(driver.findElement(By.id("IDS_UI_Window")));
            
    driver.findElement(By.id("firstName")).sendKeys("John");
    driver.findElement(By.name("lastName")).sendKeys("lennon");
    
    
    driver.findElement(By.name("mail")).sendKeys("john123@gmail.com");
    driver.findElement(By.name("password")).sendKeys("john456");
    driver.findElement(By.name("passwordConfirm")).sendKeys("john456");
    driver.findElement(By.id("pdAccept")).click();
    driver.findElement(By.name("touAccept")).click();
    driver.findElement(By.id("sapStoreRegisterFormSubmit")).click();

0 个答案:

没有答案