我必须从表中获取下面的web元素,以验证是否创建了这样的记录,那么使用哪一个是正确的web get()元素?
表:
我编写了以下代码:
public void record_created_successfully_Mthree() throws Throwable {
String expected_opttype = "";
String actual_opttype = driver.findElement(By.)
if (expected_opttype.equals(actual_opttype)) {
System.out.println("2. Created Successfully!");
}else{
System.out.println("2. Create Unsuccessful!");
}}
软件测试软件