我正在使用watir进行自动化。我想从选择列表中选择一个值,所以我做了 -
$browser.select_list(:id,"id_of_select_list").select("text")
这个,但是这给了我错误
`Selenium::WebDriver::Error::UnknownError: '[JavaScript Error: "a is null" {file:"file:///tmp/webdriver-profile20131118-31369-q5lb08/extensions/fxdriver@googlecode.com/components/command_processor.js" line: 7677}]' when calling method: [nsICommandProcessor::execute]`
这个错误有趣的只出现在firefox的情况下,当我使用chrome时一切正常。 有任何想法......
答案 0 :(得分:0)
尝试这样的事情 xyz_select_list = $ browser.select_list(:id,“id_of_select_list”)。wait_until_present xyz_select_list.click