1
driver.findElement(By.linkText("Add User")).click();
// ERROR: Caught exception [unknown command [readCSV]]
// ERROR: Caught exception [unknown command [while]]
// ERROR: Caught exception [unknown command [storeCellValue]]
System.out.println("${AddUser}");
driver.findElement(By.id("userid")).clear();
driver.findElement(By.id("userid")).sendKeys("${AddUser}");
// ERROR: Caught exception [unknown command [storeCellValue]]
System.out.println("${AddUserType}");
new Select(driver.findElement(By.id("userType"))).selectByVisibleText("${AddUser}");
// ERROR: Caught exception [ERROR: Unsupported command [isTextPresent | PG Admin | ]]
// ERROR: Caught exception [unknown command [storeCellValue]]
System.out.println("${Firstname}");
driver.findElement(By.id("firstName")).clear();
driver.findElement(By.id("firstName")).sendKeys("${AddUser}");
// ERROR: Caught exception [unknown command [storeCellValue]]
System.out.println("${MiddleName}");
driver.findElement(By.id("middleName")).clear();
driver.findElement(By.id("middleName")).sendKeys("${AddUser}");
// ERROR: Caught exception [unknown command [storeCellValue]]


new Select(driver.findElement(By.id("userRole"))).selectByVisibleText("${AddUser}");
// ERROR: Caught exception [ERROR: Unsupported command [getEval | ${i}+1 | ]]
// ERROR: Caught exception [ERROR: Unsupported command [addSelection | id=institutionAllowed | label=ALL]]
driver.findElement(By.id("btnAdd")).click();
driver.findElement(By.xpath("//input[@value='Add']")).click();
assertTrue(isElementPresent(By.xpath("html/body/div[5]/div/div[6]")));
// ERROR: Caught exception [ERROR: Unsupported command [captureEntirePageScreenshot | D:\Selenium\seleniumIDE\Screenshot\test${i}.png | ]]
driver.findElement(By.linkText("Click Here to add more")).click();
// ERROR: Caught exception [unknown command [endWhile]]**
  • 1
    I haven't looked at the exporter for a while, but when I did last look, the exporter wasn't full functioned. It basically didn't support anything that didn't have a direct 1:1 mapping between the IDE and Webdriver commands. – ernie Aug 3 '17 at 15:54
  • So what is the proposed solution in this case ? Please advice. – Ramkrishna Bhandare Aug 9 '17 at 12:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.