在处理下拉框的时候,可以通过selectByVisibleText()选择左边公司,但是不能通过selectByVisibleText()的方式选择右边的部门,但是右边的部门下面“”sele部门0“”并不是隐藏元素,请各位大神帮助,谢谢
Select branchid = new Select(driver.findElement(By.name("branchid")));
branchid.selectByVisibleText("公司名称");
Select deptid = new Select(driver.findElement(By.name("deptid")));
deptid.selectByVisibleText("sele部门0");(这里获取不到)