Edit:
package test;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.Assert;
import org.testng.ITestResult;
import org.testng.annotations.AfterClass;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
public class Plazo_Fijo {
WebDriver driver;
String urlprueba;
@BeforeClass
public void setUp() {
driver = new ChromeDriver();
urlprueba = "https://asdasd/login";
driver.manage().window().maximize();
driver.manage().timeouts().implicitlyWait(6, TimeUnit.SECONDS);
}
@Test
public void PlazoFijoTradicional() throws InterruptedException {
// Login
driver.get(urlprueba);
//Ingreso credenciales
driver.findElement(By.id("DocumentNumber")).sendKeys("11111111");
driver.findElement(By.id("UserName")).sendKeys("usuario");
driver.findElement(By.id("Password")).sendKeys("password");
driver.findElement(By.id("submitButton")).click();
//Ingreso al menú y funcionalidad
driver.findElement(By.linkText("Inversiones")).click();
WebElement NuevaInv = driver.findElement(By.cssSelector("#buttons-container > button"));
driver.findElement(By.xpath("//div[@class='box']/h3[normalize-space()='Plazo Fijo']")).click();
driver.findElement(By.xpath("//*[@id=\"btn-submit\"]")).click();
driver.findElement(By.id("ImporteVisible")).sendKeys("2000");
driver.findElement(By.xpath("//*[@id=\"btn-submit\"]")).click();
//Aquí el problema -->
List<WebElement> resultados = driver.findElements(By.name("radio"));
resultados.get(0).click();
Saludos!