我正在使用 rcptt 来自动化我的应用程序。一个测试用例是,
- add a file
- then my app will read info from that file and proceed further if
i click on next button.
为此,我使用以下代码
set-dialog-result File [concat [get-workspace-location | str] "/proj/folder/sample-file.txt"]
get-editor "editor" | get-button Add | click
get-button "Save (M1+S)" | click
它可以添加文件,但当我继续进行时,它无法从文件中读取信息。
它显示错误
could not be opened for reading
但是当我手动检查时,文件就在那里。
我在做什么错?
谢谢