有人可以帮忙吗
如何使用 webdriver 获取只读模式文本框的值...我尝试使用 gettext 但它不起作用....
我给了一个代码如下
String Streetnumbercopare = driver.findElement(By.id("ctl00_ctl00_ContentPlaceHolder1_ContentPlaceHolderInNestedMP_uclRiskInfo_txtStreetNumber")).getText();
if (StreetNumberTextValue.equals(Streetnumbercopare)) {
System.out.println("Streetnumber matches --- Pass");
}else {
System.out.println("Street number doesn't match --- Fail");
}