cannot be , it returns error validation error message. The () is for the

Properties obj = new Properties();
    FileInputStream objfile = new FileInputStream(System.getProperty("user.dir")+"\application.properties");
    obj.load(objfile);

 // Navigate to link Mobile Testing and Back

    driver.findElement(By.xpath(obj.getProperty("MobileTesting"))).click();
    driver.navigate().back();

 // Enter Data into Form

    driver.findElement(By.id(obj.getProperty("EmailTextBox"))).sendKeys("[email protected]");
    driver.findElement(By.id(obj.getProperty("SignUpButton"))).click();



Source link https://sqa.stackexchange.com/questions/34648/while-reading--properties-file-the-method-click-is-undefined-for-the

LEAVE A REPLY

Please enter your comment!
Please enter your name here