I m trying to use UISpec4J to test a file chooser. A button is supposed to make the file chooser pop up. I found an example for a file chooser that pops up from a menu option:
WindowInterceptor
.run(openMenu.triggerClick())
.process(FileChooserHandler.init()
.titleEquals("Select a template file")
.assertAcceptsFilesOnly()
.select("/home/bond/file.txt"))
.run();
但是,我似乎无法以简单明了的点击来工作——我知道这或许是一个真正简单的问题,但我似乎无法找到其他文件来工作,我很 st......。 谁能解释如何检验? 感谢!