2015-09-30 186 views

回答

0

您需要使用SelectElement。

例子:

Select foo = new Select(Driver.findElement(By.id("foo"))); 
foo.selectByVisibleText("abc"); 
+0

元素應該是「選擇」,但是「div」:異常即將到來 – Ruby

+0

然後,您應該先點擊div,然後等待,直到顯示您想要點擊的元素。這應該工作。 – Tedesco

相關問題