小编Mat*_*hew的帖子

Selenium WebDriver从输入字段获取文本

我正在编写一个测试来断言<input>标签中的默认文本值.但是,它不是在打球:

Assert.assertThat(webDriver.findElement(By.id("inputTag")).getText(), Matchers.is("2"));
Run Code Online (Sandbox Code Playgroud)

selenium

6
推荐指数
1
解决办法
1万
查看次数

标签 统计

selenium ×1