根据您的声明, 我希望在executescript中没有值,但是 您可以通过 Java 变量来引用 Sting 值的 java 变量:
String myValue = "80120804076";WebElement pesel = driver.findElement(fldPesel);jse.executescript("arguments[0].value='" + myValue + "';", pesel);
根据您的声明, 我希望在executescript中没有值,但是 您可以通过 Java 变量来引用 Sting 值的 java 变量:
String myValue = "80120804076";WebElement pesel = driver.findElement(fldPesel);jse.executescript("arguments[0].value='" + myValue + "';", pesel);