[英]Watir-Webdriver throwing Unknown Javascript Error
I'm using watir for some automation. 我正在使用watir进行一些自动化。 I want to select a value from select list so I did--
$browser.select_list(:id,"id_of_select_list").select("text")
我想从选择列表中选择一个值,所以我做了-
$browser.select_list(:id,"id_of_select_list").select("text")
this, but this is giving me error as 这个,但这给了我错误
`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]`
This error interestingly comes only in case of firefox, when I use chrome everything works fine. 有趣的是,此错误仅在使用Firefox时才出现,当我使用chrome时,一切正常。 Any thoughts...
有什么想法吗...
尝试这样的事情xyz_select_list = $ browser.select_list(:id,“ id_of_select_list”)。wait_until_present xyz_select_list.click
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.